Added startGame signal and emit a signal on pressing the start button in the main menu

This commit is contained in:
Willow Behar
2024-05-07 17:16:02 -05:00
parent d6d77498df
commit f016e576ed

View File

@ -1,22 +1,17 @@
extends Control
signal startGame
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_exit_pressed():
get_tree().quit()
func _on_start_pressed():
pass # Replace with function body.
emit_signal("startGame")
func _on_settings_pressed():