Skip to content

Commit

Permalink
Update intersections.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Clower committed Apr 11, 2016
1 parent 288062e commit 59cfc7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions intersections.lua
@@ -1,4 +1,8 @@
-- check if at intersection
-- useful for running logic only
-- when an object is at an intersection
-- to preserve CPU cycles
-- by Scathe (@clowerweb)
function int(a)
return (flr(a.x)%8==0 and
flr(a.y)%8==0)
Expand Down

0 comments on commit 59cfc7b

Please sign in to comment.