summaryrefslogtreecommitdiff
path: root/main.gd
blob: 9d5d1571dcdf73656d25dd48e593bc1ef1a96ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extends Control


func _ready() -> void:
	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 _on_connected() -> void:
	get_tree().change_scene_to_file("res://stage/stage.tscn")