summaryrefslogtreecommitdiff
path: root/Network/Network.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 /Network/Network.gd
parente216bf93e77ceb42c8c5dc5e77ebff6e1968faa3 (diff)
Adds GameOver screen
Diffstat (limited to 'Network/Network.gd')
-rw-r--r--Network/Network.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/Network/Network.gd b/Network/Network.gd
index fbef800..d58de75 100644
--- a/Network/Network.gd
+++ b/Network/Network.gd
@@ -22,6 +22,7 @@ var player = {
name = "",
character = "Tux",
}
+var winning_player = player
# Dictionary { id = { idx: 1, name: "" } }
var players = {}
@@ -111,8 +112,8 @@ func _on_Global_game_won(winning_player):
sync func _end_game(winning_player):
- print("winning_player")
- emit_signal("game_ended", winning_player)
+ self.winning_player = winning_player
+ emit_signal("game_ended")
func _player_connected(_id):