summaryrefslogtreecommitdiff
path: root/scenes/levels/base_level.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/levels/base_level.gd')
-rw-r--r--scenes/levels/base_level.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd
index b53acf8..f712ba7 100644
--- a/scenes/levels/base_level.gd
+++ b/scenes/levels/base_level.gd
@@ -42,7 +42,9 @@ func _add_hooks():
func _on_Level_level_finished():
_load_next_level()
-func _on_Level_lost_heart():
+func _on_Level_lost_heart(instakill):
+ if instakill:
+ _health = 0
_health -= 1
if _health == 0:
pass # TODO: lose scenario