summaryrefslogtreecommitdiff
path: root/Spatial.gd
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-11-15 02:28:24 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-11-15 02:28:24 +0100
commitd1c1684cf146020755ae43fcb20e0cfb3654f03d (patch)
tree20c8b6408c13418226b32a0b2dd56f61a2d08caf /Spatial.gd
parentb81e08abe033cdbd9f1e2560a95bd130902a104e (diff)
downloadnj26-d1c1684cf146020755ae43fcb20e0cfb3654f03d.tar.gz
Draw + stop timer on game over
Diffstat (limited to 'Spatial.gd')
-rw-r--r--Spatial.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/Spatial.gd b/Spatial.gd
index a59fc5b..8eb07a8 100644
--- a/Spatial.gd
+++ b/Spatial.gd
@@ -118,6 +118,7 @@ func _on_powerup(node):
remove_child(node)
func _on_cat_killed(zombie):
+ $game_time.stop()
get_tree().root.add_child(gameover)
gameover.set_winner(blue_points, pink_points, zombie.get_team())
remove_child(running_cat)
@@ -144,7 +145,9 @@ func _on_powerup_timeout():
$powerup_timer.start(randi() % 16 + 5)
func game_over():
- pass
+ $game_time.stop()
+ get_tree().root.add_child(gameover)
+ gameover.set_winner(blue_points, pink_points, null)
func _process(_delta):
var text = "Time left: "