summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-14 09:33:26 +0800
committerEltrac <hi@guhub.cn>2025-03-14 09:33:26 +0800
commit1065dc41e5c223ceed4530b8958ce163bcb0a355 (patch)
tree25ba06138d6f57fa27bee9600a16e5b5da4c188d
parent5f8ea036eb7ac672639901108a8ececc3fdb7995 (diff)
feat(audio): add party music to some room
-rw-r--r--README.md1
-rw-r--r--data/roomData.lua5
-rw-r--r--resources/music/disco_fight.wavbin0 -> 28105914 bytes
-rw-r--r--utils/audio.lua1
4 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 79aa00c..17c7f04 100644
--- a/README.md
+++ b/README.md
@@ -21,3 +21,4 @@ mostly from freesound
- `briskFight` - [8-bit Brisk Music Loop.wav](https://freesound.org/people/EVRetro/sounds/583613/)
- `beginning` - [Pixel Flute Melody Loop](https://freesound.org/people/orginaljun/sounds/531459/)
+- `discoFight` - [Raising heartbeats (Spicy version)](https://freesound.org/people/Victor_Natas/sounds/642313/)(CC0)
diff --git a/data/roomData.lua b/data/roomData.lua
index c331670..5bcbfa3 100644
--- a/data/roomData.lua
+++ b/data/roomData.lua
@@ -19,10 +19,14 @@ local roomData = {
{"lancer", "topLeft"},
{"lancer", "bottomRight"},
{"lancer", "bottomLeft"},
+ {"lancer", "center"},
+ {"lancer", "center"},
+ {"lancer", "center"},
},
obstacles = {
{"pillar", "center"}
},
+ music = "discoFight"
},
blueberries = {
name = "Blueberries",
@@ -60,6 +64,7 @@ local roomData = {
{"pillar", "leftCenter"},
{"pillar", "rightCenter"},
},
+ music = "discoFight"
},
library = {
name = "Library",
diff --git a/resources/music/disco_fight.wav b/resources/music/disco_fight.wav
new file mode 100644
index 0000000..7fe1fdc
--- /dev/null
+++ b/resources/music/disco_fight.wav
Binary files differ
diff --git a/utils/audio.lua b/utils/audio.lua
index 73f9da4..30f4137 100644
--- a/utils/audio.lua
+++ b/utils/audio.lua
@@ -14,6 +14,7 @@ local soundResources = {
local musicResources = {
briskFight = "brisk_fight.wav",
intenseFight = "intense_fight.wav",
+ discoFight = "disco_fight.wav",
beginning = "beginning.wav"
}