parent
9ab133b88d
commit
de99c73ece
|
@ -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