parent
ea53c6d677
commit
f42bd21939
|
@ -0,0 +1,5 @@
|
|||
function quick_distance(x1,y1,x2,y2)
|
||||
return abs(x1-x2)+abs(y1-y2)
|
||||
end
|
||||
|
||||
--a very basic manhatten distance function that works fast enough to be used a lot.
|
Loading…
Reference in New Issue