summaryrefslogtreecommitdiffhomepage
path: root/player.lua
diff options
context:
space:
mode:
Diffstat (limited to 'player.lua')
-rw-r--r--player.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/player.lua b/player.lua
index b2a73d8..53f138c 100644
--- a/player.lua
+++ b/player.lua
@@ -286,6 +286,8 @@ end
-- Draw of `Player`
function Player:draw(offset_x, offset_y, scale, debug)
+ -- draw only alive
+ if not self.alive then return end
-- locals
local offset_x = offset_x or 0
local offset_y = offset_y or 0