diff options
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 |
commit | 2062aaf394ee6581161add4bcb23076475e236ac (patch) | |
tree | adb1a6e5fe4c7d06c778188961a6e660ee911413 /game/addons | |
parent | 150c11376765af5dc0c180de9cf7bbcc8fa9b99b (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/addons')
-rw-r--r-- | game/addons/kenney_ui_audio/LICENSE.txt | 21 | ||||
-rw-r--r-- | game/addons/kenney_ui_audio/click3.wav | bin | 0 -> 15694 bytes | |||
-rw-r--r-- | game/addons/kenney_ui_audio/click3.wav.import | 24 |
3 files changed, 45 insertions, 0 deletions
diff --git a/game/addons/kenney_ui_audio/LICENSE.txt b/game/addons/kenney_ui_audio/LICENSE.txt new file mode 100644 index 0000000..f1f770a --- /dev/null +++ b/game/addons/kenney_ui_audio/LICENSE.txt @@ -0,0 +1,21 @@ + + + UI SFX Set + + by Kenney Vleugels (Kenney.nl) + + ------------------------------ + + License (Creative Commons Zero, CC0) + http://creativecommons.org/publicdomain/zero/1.0/ + + You may use these assets in personal and commercial projects. + Credit (Kenney or www.kenney.nl) would be nice but is not mandatory. + + ------------------------------ + + Donate: http://support.kenney.nl + Request: http://request.kenney.nl + + Follow on Twitter for updates: + @KenneyNL
\ No newline at end of file diff --git a/game/addons/kenney_ui_audio/click3.wav b/game/addons/kenney_ui_audio/click3.wav Binary files differnew file mode 100644 index 0000000..73dc62e --- /dev/null +++ b/game/addons/kenney_ui_audio/click3.wav diff --git a/game/addons/kenney_ui_audio/click3.wav.import b/game/addons/kenney_ui_audio/click3.wav.import new file mode 100644 index 0000000..1212f15 --- /dev/null +++ b/game/addons/kenney_ui_audio/click3.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bsldcs3l8s7ug" +path="res://.godot/imported/click3.wav-191e18de041e05b52c4992cf5dba790b.sample" + +[deps] + +source_file="res://addons/kenney_ui_audio/click3.wav" +dest_files=["res://.godot/imported/click3.wav-191e18de041e05b52c4992cf5dba790b.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 |