mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2025-07-06 22:54:36 -04:00
Created title screen and set it as starting scene
This commit is contained in:
10
scripts/title_screen.gd
Normal file
10
scripts/title_screen.gd
Normal 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()
|
Reference in New Issue
Block a user