diff options
| author | Jonas Bernard <public.jbernard@web.de> | 2021-04-26 18:45:58 +0200 |
|---|---|---|
| committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-26 18:45:58 +0200 |
| commit | ed567bda49ed674c8995309fb905d6df10185724 (patch) | |
| tree | 47ccad66f53b1d618d62deee5214061e2f19341f /scenes/levels | |
| parent | 773f698e255df6b9614bb3bbab49c9562ae5c262 (diff) | |
| download | ldjam48-ed567bda49ed674c8995309fb905d6df10185724.tar.gz ldjam48-ed567bda49ed674c8995309fb905d6df10185724.tar.bz2 ldjam48-ed567bda49ed674c8995309fb905d6df10185724.zip | |
Game Over
Diffstat (limited to 'scenes/levels')
| -rw-r--r-- | scenes/levels/base_level.gd | 4 |
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(): |
