diff options
Diffstat (limited to 'game/src/MainMenu')
-rw-r--r-- | game/src/MainMenu/MainMenu.gd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/game/src/MainMenu/MainMenu.gd b/game/src/MainMenu/MainMenu.gd index 0a551e0..7cd02cf 100644 --- a/game/src/MainMenu/MainMenu.gd +++ b/game/src/MainMenu/MainMenu.gd @@ -1,6 +1,7 @@ extends Control signal options_button_pressed +signal new_game_button_pressed @export var _new_game_button : BaseButton @@ -17,10 +18,12 @@ func _ready(): _new_game_button.grab_focus() +# REQUIREMENTS: +# * UIFUN-32 func _on_new_game_button_pressed(): SFX.play("click") print("Start a new game!") - get_tree().change_scene_to_file("res://src/SampleGame.tscn") + new_game_button_pressed.emit() func _on_continue_button_pressed(): |