mirror of
https://github.com/taxicomics/Pico8-and-Picotron-Snippets.git
synced 2024-06-08 15:27:33 +02:00
Create quick_distance.lua
2nd upload in the right folder
This commit is contained in:
parent
9ab133b88d
commit
de99c73ece
5
lua_scripts/quick_distance.lua
Normal file
5
lua_scripts/quick_distance.lua
Normal file
@ -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…
x
Reference in New Issue
Block a user