Created title screen and set it as starting scene

This commit is contained in:
2024-05-13 20:01:29 -04:00
parent 35af1d3d29
commit 3912de50b9
3 changed files with 97 additions and 1 deletions

10
scripts/title_screen.gd Normal file
View File

@ -0,0 +1,10 @@
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()