Files
imnotsick/title_screen.gd
T
2025-06-06 17:29:14 +02:00

25 lines
614 B
GDScript

extends Control
signal new_game_pressed
signal quit_game
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
self.get_node("MenuContainer/NewGame").pressed.connect(_on_new_game_pressed)
self.get_node("MenuContainer/QuitGame").pressed.connect(_on_quit_game_pressed)
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_new_game_pressed() -> void:
new_game_pressed.emit()
print("Starting New Game...")
pass # Replace with function body.
func _on_quit_game_pressed():
get_tree().quit()