From c80deca77394890e4083724b7d29fea4e54b6be4 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 13 Mar 2025 16:11:23 +0800 Subject: feat(audio): "gets hit" sound --- objects/Player.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'objects') diff --git a/objects/Player.lua b/objects/Player.lua index b1f43f4..a91be76 100644 --- a/objects/Player.lua +++ b/objects/Player.lua @@ -98,6 +98,7 @@ function Player:onContact(other, contact) -- if collision occurs, take it as an attack if other.objectType == "enemy" then if not (other.stunned or self:isShielded()) then + audio.play("getsHit") table.remove(self.hearts) -- shield this player self.shieldedTill = G.time + config.playerShieldTime -- cgit v1.2.3