From 97d0cb4ca51ae2ed22da246caaf1795b7ffdc5a7 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 16 Mar 2025 22:25:52 +0800 Subject: feat(audio): play spring bouncy sound when purple heart hits --- data/bulletData.lua | 1 + resources/sound/spring.wav | Bin 0 -> 19342 bytes utils/audio.lua | 1 + 3 files changed, 2 insertions(+) create mode 100644 resources/sound/spring.wav 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 Binary files /dev/null and b/resources/sound/spring.wav 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 = { -- cgit v1.2.3