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


func _ready() -> void:
	Network.connected.connect(_on_connected)
	
	%HostButton.grab_focus()


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