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, 2 insertions, 2 deletions
diff --git a/scenes/levels/base_level.gd b/scenes/levels/base_level.gd
index 66085c5..29f72d7 100644
--- a/scenes/levels/base_level.gd
+++ b/scenes/levels/base_level.gd
@@ -47,8 +47,8 @@ func _on_Level_lost_heart(instakill):
if instakill:
_health = 0
_health -= 1
- if _health == 0:
- pass # TODO: lose scenario
+ if _health <= 0:
+ get_tree().change_scene("res://scenes/game_over.tscn")
_health_bar.set_health(_health)
func _load_next_level():