From 3647797bc60c0c2ffd28b14d14fed8b246e09254 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 13 Mar 2025 15:01:24 +0800 Subject: feat(audio): add background music for some rooms --- data/enemyData.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/enemyData.lua') 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 } } -- cgit v1.2.3