From 1e9953b3b73485ce0daf63214abf7b20deedc222 Mon Sep 17 00:00:00 2001 From: Simon Kellet Date: Sun, 21 Apr 2024 13:38:32 +0100 Subject: [PATCH] sounds init --- bullet.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bullet.lua b/bullet.lua index a8119ec..73525f0 100644 --- a/bullet.lua +++ b/bullet.lua @@ -27,6 +27,7 @@ function Bullet:update(dt) and UserPlayer2.y < self.y + self.height then UserPlayer2.health = UserPlayer2.health - 1 + GameSounds.hit:play() Bullets1 = {} end end @@ -40,6 +41,7 @@ function Bullet:update(dt) and UserPlayer1.y < self.y + self.height then UserPlayer1.health = UserPlayer1.health - 1 + GameSounds.hit:play() Bullets2 = {} end end @@ -52,6 +54,7 @@ function Bullet:update(dt) elseif self.p == 2 then Bullets2 = {} end + GameSounds.hit:play() end end end