17 lines
421 B
GDScript
17 lines
421 B
GDScript
extends Control
|
|
|
|
const SHIP_SELECTION_SCENE := "res://scenes/ui/ship_selection.tscn"
|
|
|
|
@onready var start_button: Button = %StartButton
|
|
@onready var exit_button: Button = %ExitButton
|
|
|
|
func _ready() -> void:
|
|
start_button.pressed.connect(_start_game)
|
|
exit_button.pressed.connect(_exit_game)
|
|
|
|
func _start_game() -> void:
|
|
get_tree().change_scene_to_file(SHIP_SELECTION_SCENE)
|
|
|
|
func _exit_game() -> void:
|
|
get_tree().quit()
|