summaryrefslogtreecommitdiff
path: root/Global.gd
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-02-10 23:53:06 +0100
committerDaniel Weipert <code@drogueronin.de>2021-02-10 23:53:06 +0100
commitc62cf258a8ba1c8f40c69208a28a82c5afc71343 (patch)
treeec906ee025b59487d8ee3d8716dc8a59b68eea6d /Global.gd
parente216bf93e77ceb42c8c5dc5e77ebff6e1968faa3 (diff)
Adds GameOver screen
Diffstat (limited to 'Global.gd')
-rw-r--r--Global.gd7
1 files changed, 2 insertions, 5 deletions
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()