aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu/MainMenu.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-02-27 17:26:54 +0100
committer GitHub <noreply@github.com>2023-02-27 17:26:54 +0100
commit2062aaf394ee6581161add4bcb23076475e236ac (patch)
treeadb1a6e5fe4c7d06c778188961a6e660ee911413 /game/src/MainMenu/MainMenu.gd
parent150c11376765af5dc0c180de9cf7bbcc8fa9b99b (diff)
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
Diffstat (limited to 'game/src/MainMenu/MainMenu.gd')
-rw-r--r--game/src/MainMenu/MainMenu.gd5
1 files changed, 0 insertions, 5 deletions
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()