aboutsummaryrefslogtreecommitdiff
path: root/src/phys.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-12 20:12:42 +0100
committerne_mene <[email protected]>2026-03-12 20:12:42 +0100
commitbea27cd7f979ce3544b4c73855190efc2a9565ac (patch)
treeb2aeb9693b8607854d34264eb413ffabe3899a9e /src/phys.lua
parent48ca262c88edeb29579fe3c9a38036677e446e71 (diff)
pull pls
Diffstat (limited to 'src/phys.lua')
-rw-r--r--src/phys.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/phys.lua b/src/phys.lua
index d35f612..8cf0613 100644
--- a/src/phys.lua
+++ b/src/phys.lua
@@ -107,7 +107,7 @@ function collision_check(box)
for _, layer in ipairs(box.mask) do
for _, other in ipairs(world.layers[layer] or {}) do
if other == box then
- goto continue
+ goto collision_check_continue
end
other_x, other_y, other_width, other_height = other:get_rect()
@@ -117,7 +117,7 @@ function collision_check(box)
) then
return true
end
- ::continue::
+ ::collision_check_continue::
end
end
return false
@@ -133,6 +133,7 @@ function phys.Box:update(velx, vely, dt)
-- this block is fat. much like a certain croatian...
-- not anymore :D
-- shut up
+ -- welc
for i = 1, steps do
local p = i / steps
local before