summaryrefslogtreecommitdiff
path: root/main.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-02-12 20:05:59 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-02-12 20:05:59 +0100
commit218748f67a6a6b35efc4a732ad11426d0f528709 (patch)
treee58504dd758ce6525844872007221cda2a8b6926 /main.gd
parentf6c81b065cf4d7f1302a50f2f72cfab32204a1ec (diff)
next commitHEADmain
Diffstat (limited to 'main.gd')
-rw-r--r--main.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.gd b/main.gd
index 8c5a476..9d5d157 100644
--- a/main.gd
+++ b/main.gd
@@ -2,16 +2,17 @@ extends Control
func _ready() -> void:
- Network.current_player_changed.connect(_current_player_changed)
+ Network.connected.connect(_on_connected)
func _on_button_pressed() -> void:
Network.host()
+ get_tree().change_scene_to_file("res://stage/stage.tscn")
func _on_button_2_pressed() -> void:
Network.join()
-func _current_player_changed() -> void:
+func _on_connected() -> void:
get_tree().change_scene_to_file("res://stage/stage.tscn")