summaryrefslogtreecommitdiff
path: root/main.gd
diff options
context:
space:
mode:
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")