From c62cf258a8ba1c8f40c69208a28a82c5afc71343 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 10 Feb 2021 23:53:06 +0100 Subject: Adds GameOver screen --- Global.gd | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Global.gd') diff --git a/Global.gd b/Global.gd index 3c8a3a3..7f7582c 100644 --- a/Global.gd +++ b/Global.gd @@ -110,11 +110,8 @@ func end_game(): emit_signal("game_ended") -func _on_Network_game_ended(winning_player): - # TODO: change scene for all to win scene and set winning player id, - # so it can be displayed with self.players - print(winning_player) - get_tree().change_scene("res://Network/Lobby.tscn") +func _on_Network_game_ended(): + get_tree().change_scene("res://UI/GameOver.tscn") self.Level_Map = [] self.init() -- cgit v1.2.3