summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-19 11:10:30 +0800
committerEltrac <hi@guhub.cn>2025-02-19 11:10:30 +0800
commit033a27c9baf32bf2d5f38581dad699ca7333fdb6 (patch)
treed336f3fde9cf2ac79600102f00699f2e47f0705f /main.lua
parent4e889cae1848a0e589f4fe94e83fbd91c1f9fcc2 (diff)
fix: player got caught between doors
- can't leave if a room's not cleared - move player slightly forwards so that it won't touch door area after entering
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 63a2147..ae58da0 100644
--- a/main.lua
+++ b/main.lua
@@ -48,6 +48,8 @@ function love.update(dt)
enemies.beingShot()
loot.beingPicked()
+ map.update()
+
if not player.isAlive() then
print("Out of hearts. You died!")
initGame()