summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-13 15:01:24 +0800
committerEltrac <hi@guhub.cn>2025-03-13 15:01:24 +0800
commit3647797bc60c0c2ffd28b14d14fed8b246e09254 (patch)
treea8c2489cf8081f3c9c22c27cfa3154f302670799 /data
parent4c327ced8e8ed90b04042bd4e0807aa93e9219d0 (diff)
feat(audio): add background music for some rooms
Diffstat (limited to 'data')
-rw-r--r--data/enemyData.lua3
-rw-r--r--data/roomData.lua191
2 files changed, 99 insertions, 95 deletions
diff --git a/data/enemyData.lua b/data/enemyData.lua
index e319305..40a7de3 100644
--- a/data/enemyData.lua
+++ b/data/enemyData.lua
@@ -1,4 +1,5 @@
require "data.directions"
+local audio = require "utils.audio"
local enemyData = {
lancer = {
@@ -122,6 +123,8 @@ local enemyData = {
local Loot = require "objects.loot"
local lootItem = Loot:new("brokenheart", shot.x, shot.y)
table.insert(G.currentRoom.objects.loots, lootItem)
+
+ audio.play("hitGlass")
end
}
}
diff --git a/data/roomData.lua b/data/roomData.lua
index 3a7abaa..1625cb6 100644
--- a/data/roomData.lua
+++ b/data/roomData.lua
@@ -9,100 +9,100 @@ local roomData = {
enemies = {},
manualPlacementOnly = true
},
- -- lancerParty = {
- -- name = "Lancers' Party",
- -- type = roomType.COMBAT,
- -- width = config.defaultRoomW,
- -- height = config.defaultRoomH,
- -- enemies = {
- -- {"lancer", "topRight"},
- -- {"lancer", "topLeft"},
- -- {"lancer", "bottomRight"},
- -- {"lancer", "bottomLeft"},
- -- },
- -- obstacles = {
- -- {"pillar", "center"}
- -- },
- -- },
- -- blueberries = {
- -- name = "Blueberries",
- -- type = roomType.COMBAT,
- -- width = config.defaultRoomW,
- -- height = config.defaultRoomH,
- -- enemies = {
- -- {"lancer", "leftCenter"},
- -- {"lancer", "rightCenter"},
- -- {"citrusLitulon", "topCenter"},
- -- {"citrusLitulon", "center"},
- -- {"citrusLitulon", "bottomCenter"},
- -- },
- -- obstacles = {
- -- {"pillar", "topRight"},
- -- {"pillar", "bottomLeft"},
- -- {"pillar", "topLeft"},
- -- {"pillar", "bottomRight"},
- -- },
- -- },
- -- spigerCave = {
- -- name = "Spiger Cave",
- -- type = roomType.COMBAT,
- -- width = config.defaultRoomW,
- -- height = config.defaultRoomH,
- -- enemies = {
- -- {"spiger", "leftCenter"},
- -- {"spiger", "rightCenter"},
- -- {"spiger", "center"},
- -- },
- -- obstacles = {
- -- {"pillar", "topCenter"},
- -- {"pillar", "bottomCenter"},
- -- },
- -- },
- -- library = {
- -- name = "Library",
- -- type = roomType.COMBAT,
- -- width = config.defaultRoomW,
- -- height = config.defaultRoomH,
- -- enemies = {
- -- {"librarian", "topCenter"},
- -- {"librarian", "bottomCenter"},
- -- {"lancer", "center"},
- -- },
- -- obstacles = {
- -- {"pillar", "topRight"},
- -- {"pillar", "bottomLeft"},
- -- {"pillar", "topLeft"},
- -- {"pillar", "bottomRight"},
- -- },
- -- },
- -- bookstore = {
- -- name = "Book Store",
- -- type = roomType.COMBAT,
- -- width = config.defaultRoomW,
- -- height = config.defaultRoomH,
- -- enemies = {
- -- {"librarian", "topRight"},
- -- {"librarian", "bottomRight"},
- -- {"librarian", "topLeft"},
- -- {"librarian", "bottomLeft"},
- -- },
- -- obstacles = {
- -- {"pillar", "center"},
- -- },
- -- },
- -- fireflyForest = {
- -- name = "Firefly Forest",
- -- type = roomType.COMBAT,
- -- width = config.defaultRoomW,
- -- height = config.defaultRoomH,
- -- enemies = {
- -- {"citrusLitulon","random"},
- -- {"citrusLitulon","random"},
- -- {"citrusLitulon","random"},
- -- {"citrusLitulon","random"},
- -- {"citrusLitulon","random"},
- -- }
- -- },
+ lancerParty = {
+ name = "Lancers' Party",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"lancer", "topRight"},
+ {"lancer", "topLeft"},
+ {"lancer", "bottomRight"},
+ {"lancer", "bottomLeft"},
+ },
+ obstacles = {
+ {"pillar", "center"}
+ },
+ },
+ blueberries = {
+ name = "Blueberries",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"lancer", "leftCenter"},
+ {"lancer", "rightCenter"},
+ {"citrusLitulon", "topCenter"},
+ {"citrusLitulon", "center"},
+ {"citrusLitulon", "bottomCenter"},
+ },
+ obstacles = {
+ {"pillar", "topRight"},
+ {"pillar", "bottomLeft"},
+ {"pillar", "topLeft"},
+ {"pillar", "bottomRight"},
+ },
+ },
+ spigerCave = {
+ name = "Spiger Cave",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"spiger", "leftCenter"},
+ {"spiger", "rightCenter"},
+ {"spiger", "center"},
+ },
+ obstacles = {
+ {"pillar", "topCenter"},
+ {"pillar", "bottomCenter"},
+ },
+ },
+ library = {
+ name = "Library",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"librarian", "topCenter"},
+ {"librarian", "bottomCenter"},
+ {"lancer", "center"},
+ },
+ obstacles = {
+ {"pillar", "topRight"},
+ {"pillar", "bottomLeft"},
+ {"pillar", "topLeft"},
+ {"pillar", "bottomRight"},
+ },
+ },
+ bookstore = {
+ name = "Book Store",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"librarian", "topRight"},
+ {"librarian", "bottomRight"},
+ {"librarian", "topLeft"},
+ {"librarian", "bottomLeft"},
+ },
+ obstacles = {
+ {"pillar", "center"},
+ },
+ },
+ fireflyForest = {
+ name = "Firefly Forest",
+ type = roomType.COMBAT,
+ width = config.defaultRoomW,
+ height = config.defaultRoomH,
+ enemies = {
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ {"citrusLitulon","random"},
+ }
+ },
daddyAndSon = {
name = "Daddies and Sons",
type = roomType.COMBAT,
@@ -115,7 +115,8 @@ local roomData = {
{"lancer", "bottomCenter"},
{"pokob", "center"},
{"lancer", "center"},
- }
+ },
+ music = "briskFight"
},
}