From 1d1bdefdcaef27338ef8fc0f70dcbc62160cf1a5 Mon Sep 17 00:00:00 2001 From: Jacobus Burger Date: Thu, 28 May 2020 18:15:22 -0700 Subject: [PATCH] fixed bug --- main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index a8cd8b1..69979fe 100644 --- a/main.lua +++ b/main.lua @@ -184,9 +184,9 @@ function love.update(dt) score = score + 1 enemies.anger = enemies.anger + 1 end - if pl.hp < 0 then -- end game if player dies - love.event.push("game_over") - end + end + if pl.hp < 0 then -- end game if player dies + love.event.push("game_over") end -- apply powerups to player on pickup