summaryrefslogtreecommitdiff
path: root/main.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-02-08 23:44:34 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-02-08 23:44:34 +0100
commitf6c81b065cf4d7f1302a50f2f72cfab32204a1ec (patch)
tree7690bae73a7bf54ed973a8c8480ba104d8ab413f /main.gd
parentd24180c58e9e1d6149f0ac41d4f4bbaf674bdbd3 (diff)
next commit
Diffstat (limited to 'main.gd')
-rw-r--r--main.gd17
1 files changed, 17 insertions, 0 deletions
diff --git a/main.gd b/main.gd
new file mode 100644
index 0000000..8c5a476
--- /dev/null
+++ b/main.gd
@@ -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")