diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-01-02 15:31:54 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-01-02 15:31:54 +0100 |
commit | 7920e8758506cd46c58ea4889c9f4fb704abfd16 (patch) | |
tree | c64c8cf57ef906123d6989742baaee97dcc7947d /Network | |
parent | ebae6d04ffc95c6648e863d3de71835f6cd4be96 (diff) |
Level Map HUD and game end trigger
Diffstat (limited to 'Network')
-rw-r--r-- | Network/Network.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Network/Network.gd b/Network/Network.gd index 0f007b4..77630a7 100644 --- a/Network/Network.gd +++ b/Network/Network.gd @@ -82,11 +82,15 @@ sync func _start_game(): func end_game(winning_player): + emit_signal("game_ended", winning_player) + rpc("_end_game", winning_player) + + +sync func _end_game(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") - pass func _player_connected(id): |