diff options
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") |