From 2062aaf394ee6581161add4bcb23076475e236ac Mon Sep 17 00:00:00 2001 From: "George L. Albany" Date: Mon, 27 Feb 2023 11:26:54 -0500 Subject: Refactor SFX into a SoundManager (#45) * Refactor SFX into a SoundManager Add SoundManager able to play arbitrary sound streams Make SoundManager use only one AudioStreamPlayer per bus Add StyleBoxWithSound Add Kenney UI Audio click3.wav Removed sound play via pressed signals in MainMenu Make Button_MainMenu pressed style StyleBoxWithSound with click3.wav sound * Add playing mp3 files by name to the SoundManager * Fix missing quotation --- game/src/MainMenu/MainMenu.gd | 5 ----- 1 file changed, 5 deletions(-) (limited to 'game/src/MainMenu') diff --git a/game/src/MainMenu/MainMenu.gd b/game/src/MainMenu/MainMenu.gd index 7cd02cf..1e15d10 100644 --- a/game/src/MainMenu/MainMenu.gd +++ b/game/src/MainMenu/MainMenu.gd @@ -21,28 +21,23 @@ func _ready(): # REQUIREMENTS: # * UIFUN-32 func _on_new_game_button_pressed(): - SFX.play("click") print("Start a new game!") new_game_button_pressed.emit() 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() -- cgit v1.2.3-56-ga3b1