Advertisement
Cavitt

Untitled

Feb 7th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.11 KB | None | 0 0
  1. function getDistanceBetween(pos1, pos2)
  2.     return math.max(math.abs(pos1.x - pos2.x), math.abs(pos1.y - pos2.y))
  3. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement