diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-02-08 23:44:34 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-02-08 23:44:34 +0100 |
commit | f6c81b065cf4d7f1302a50f2f72cfab32204a1ec (patch) | |
tree | 7690bae73a7bf54ed973a8c8480ba104d8ab413f /main.gd | |
parent | d24180c58e9e1d6149f0ac41d4f4bbaf674bdbd3 (diff) |
next commit
Diffstat (limited to 'main.gd')
-rw-r--r-- | main.gd | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +extends Control + + +func _ready() -> void: + Network.current_player_changed.connect(_current_player_changed) + + +func _on_button_pressed() -> void: + Network.host() + + +func _on_button_2_pressed() -> void: + Network.join() + + +func _current_player_changed() -> void: + get_tree().change_scene_to_file("res://stage/stage.tscn") |