aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu/MainMenu.gd
diff options
context:
space:
mode:
author BrickPi <49528459+BrickPi@users.noreply.github.com>2023-02-26 17:09:13 +0100
committer GitHub <noreply@github.com>2023-02-26 17:09:13 +0100
commita37c5085c3b7ee515789d681c8c18d71071fb771 (patch)
tree7b57a387e008c168c9f4a39b123681dc684cadf2 /game/src/MainMenu/MainMenu.gd
parent17270d65023184bd1eed10aea223f91947bea8e8 (diff)
Add Sound Effect Manager (#25)
Diffstat (limited to 'game/src/MainMenu/MainMenu.gd')
-rw-r--r--game/src/MainMenu/MainMenu.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/src/MainMenu/MainMenu.gd b/game/src/MainMenu/MainMenu.gd
index 000dc69..cd333a3 100644
--- a/game/src/MainMenu/MainMenu.gd
+++ b/game/src/MainMenu/MainMenu.gd
@@ -12,23 +12,28 @@ func _ready():
func _on_new_game_button_pressed():
+ SFX.play("click")
print("Start a new game!")
get_tree().change_scene_to_file("res://src/SampleGame.tscn")
func _on_continue_button_pressed():
+ SFX.play("click")
print("Continue last game!")
func _on_multi_player_button_pressed():
+ SFX.play("click")
print("Have fun with friends!")
func _on_options_button_pressed():
+ SFX.play("click")
print("Check out some options!")
options_button_pressed.emit()
func _on_exit_button_pressed():
+ await SFX.play("click")
print("See you later!")
get_tree().quit()