diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-13 15:01:24 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-13 15:01:24 +0800 |
| commit | 3647797bc60c0c2ffd28b14d14fed8b246e09254 (patch) | |
| tree | a8c2489cf8081f3c9c22c27cfa3154f302670799 /data/enemyData.lua | |
| parent | 4c327ced8e8ed90b04042bd4e0807aa93e9219d0 (diff) | |
feat(audio): add background music for some rooms
Diffstat (limited to 'data/enemyData.lua')
| -rw-r--r-- | data/enemyData.lua | 3 |
1 files changed, 3 insertions, 0 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 } } |
