summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-16 22:25:52 +0800
committerEltrac <hi@guhub.cn>2025-03-16 22:25:52 +0800
commit97d0cb4ca51ae2ed22da246caaf1795b7ffdc5a7 (patch)
tree19d33209dd9f0a1d03ae1b7d59fa1f9c1430a80a
parentbdc0a753e5f45d1e0f132578a4f911dc5f9d0e4d (diff)
feat(audio): play spring bouncy sound when purple heart hits
-rw-r--r--data/bulletData.lua1
-rw-r--r--resources/sound/spring.wavbin0 -> 19342 bytes
-rw-r--r--utils/audio.lua1
3 files changed, 2 insertions, 0 deletions
diff --git a/data/bulletData.lua b/data/bulletData.lua
index ba801e3..85198d3 100644
--- a/data/bulletData.lua
+++ b/data/bulletData.lua
@@ -97,6 +97,7 @@ local bulletData = {
afterShot = function ()
end,
afterHit = function (x, y, enemyType)
+ audio.play("spring")
end
},
brokenheart = {
diff --git a/resources/sound/spring.wav b/resources/sound/spring.wav
new file mode 100644
index 0000000..838d8e8
--- /dev/null
+++ b/resources/sound/spring.wav
Binary files differ
diff --git a/utils/audio.lua b/utils/audio.lua
index ed2874b..5a4ab64 100644
--- a/utils/audio.lua
+++ b/utils/audio.lua
@@ -12,6 +12,7 @@ local soundResources = {
punch = "punch.wav",
door = "door.wav",
fart = "fart.wav",
+ spring = "spring.wav"
}
local musicResources = {