summaryrefslogtreecommitdiff
path: root/UI/GameOver.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 /UI/GameOver.gd
parente216bf93e77ceb42c8c5dc5e77ebff6e1968faa3 (diff)
Adds GameOver screen
Diffstat (limited to 'UI/GameOver.gd')
-rw-r--r--UI/GameOver.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/UI/GameOver.gd b/UI/GameOver.gd
new file mode 100644
index 0000000..6340e89
--- /dev/null
+++ b/UI/GameOver.gd
@@ -0,0 +1,9 @@
+extends Panel
+
+
+func _ready():
+ $Winner.text = Network.winning_player.name + " won!"
+
+
+func _on_BackToLobby_pressed():
+ get_tree().change_scene("res://Network/Lobby.tscn")