mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 13:25:58 +00:00
30 lines
629 B
GDScript3
30 lines
629 B
GDScript3
|
extends Control
|
||
|
|
||
|
|
||
|
# Declare member variables here. Examples:
|
||
|
# var a = 2
|
||
|
# var b = "text"
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
$VBoxContainer/Singleplayer.grab_focus()
|
||
|
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
#func _process(delta):
|
||
|
# pass
|
||
|
|
||
|
|
||
|
func _on_Singleplayer_pressed():
|
||
|
get_tree().change_scene("res://scenes/Gameplay.tscn")
|
||
|
|
||
|
func _on_Multiplayer_pressed():
|
||
|
get_tree().change_scene("res://scenes/Gameplay.tscn")
|
||
|
|
||
|
func _on_Options_pressed():
|
||
|
get_tree().change_scene("res://scenes/Options.tscn")
|
||
|
|
||
|
func _on_Quit_pressed():
|
||
|
get_tree().quit()
|