diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-19 11:10:30 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-19 11:10:30 +0800 |
| commit | 033a27c9baf32bf2d5f38581dad699ca7333fdb6 (patch) | |
| tree | d336f3fde9cf2ac79600102f00699f2e47f0705f /main.lua | |
| parent | 4e889cae1848a0e589f4fe94e83fbd91c1f9fcc2 (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.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() |
