From a06622361d858c4d9c78c15323fc0d0e17e94110 Mon Sep 17 00:00:00 2001 From: the lemons Date: Wed, 21 Dec 2022 15:46:30 -0600 Subject: collision detection and correction --- world.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'world.lua') 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 -- cgit v1.2.3