0.0.1
This commit is contained in:
commit
fadea22b9d
26 changed files with 741 additions and 0 deletions
12
ui/main_menu.gd
Normal file
12
ui/main_menu.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
class_name MainMenu
|
||||
extends Control
|
||||
|
||||
func _on_host_game_button_pressed() -> void:
|
||||
Multiplayer.host_server()
|
||||
if get_tree().change_scene_to_file("res://ui/host_game.tscn") != OK:
|
||||
print("Failed to change to scene.")
|
||||
|
||||
func _on_join_game_button_pressed() -> void:
|
||||
Multiplayer.join_server()
|
||||
if get_tree().change_scene_to_file("res://ui/join_game.tscn") != OK:
|
||||
print("Failed to change to scene.")
|
Loading…
Add table
Add a link
Reference in a new issue