Comets.gd/scripts/title_screen.gd

11 lines
234 B
GDScript3
Raw Normal View History

extends Control
func _ready() -> void:
$Panel/StartButton.grab_focus()
func _on_start_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/game.tscn")
func _on_quit_button_pressed() -> void:
get_tree().quit()