summaryrefslogtreecommitdiff
path: root/world.lua
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-12-21 15:46:30 -0600
committerthe lemons <citrons@mondecitronne.com>2022-12-21 17:45:51 -0600
commita06622361d858c4d9c78c15323fc0d0e17e94110 (patch)
tree52aa25c53874a4c597cf0cab0824c9ed9ccb7bcb /world.lua
parent619c46c37731df55bd2f50b7bb126c016734796e (diff)
collision detection and correction
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/world.lua b/world.lua
index c153a70..0607225 100644
--- a/world.lua
+++ b/world.lua
@@ -43,7 +43,7 @@ function world.all()
end)
end
-function world.iterate(x1, y1, x2, y2)
+function world.in_box(x1, y1, x2, y2)
return coroutine.wrap(function()
for x = x1, x2 + world.chunk_size, world.chunk_size do
for y = y1, y2 + world.chunk_size, world.chunk_size do