summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index ebef333..392fa05 100644
--- a/main.lua
+++ b/main.lua
@@ -68,7 +68,9 @@ function love.draw()
end
end
-- draw all possibly visible objects
- for o in world.iterate(cx1 - 20, cy1 - 20, cx2 + 20, cy2 + 20) do
+ for o in world.in_box(
+ cx1 - obj.max_size, cy1 - obj.max_size,
+ cx2 + obj.max_size, cy2 + obj.max_size) do
set_color(1, 1, 1)
o:draw()
end