From 1a6b183f2b3457b62b7a403209bec6184c6c6106 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 10 Feb 2017 00:13:01 +0100 Subject: Cheer sound played on last naut being killed --- player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player.lua') diff --git a/player.lua b/player.lua index 6195da6..f08ca19 100644 --- a/player.lua +++ b/player.lua @@ -439,8 +439,8 @@ function Player:respawn() end -- Sounds -function Player:playSound(sfx) - if self.alive then +function Player:playSound(sfx, force) + if self.alive or force then local source = love.audio.newSource(self.sfx[sfx]) source:play() end -- cgit v1.1 From 21184b6b9e3441064960ebf5af910afa6c7ffd1e Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 10 Feb 2017 13:51:45 +0100 Subject: Added new sounds and modified old ones --- player.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player.lua') diff --git a/player.lua b/player.lua index f08ca19..5e75e68 100644 --- a/player.lua +++ b/player.lua @@ -205,6 +205,7 @@ function Player:controlpressed(set, action, key) if self.jumpnumber > 0 then -- General jump logics self.jumpactive = true + self:playSound(6) -- Spawn proper effect if not self.inAir then self:createEffect("jump") @@ -436,6 +437,7 @@ function Player:respawn() self.body:setPosition(self.world:getSpawnPosition()) self.body:setActive(true) self:createEffect("respawn") + self:playSound(7) end -- Sounds -- cgit v1.1 From 044313ea34209417f6f3837ff3b0402a8eeb7ed5 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 24 Feb 2017 22:53:19 +0100 Subject: Disabled jumping sound for now --- player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player.lua') diff --git a/player.lua b/player.lua index 5e75e68..775dd60 100644 --- a/player.lua +++ b/player.lua @@ -205,7 +205,7 @@ function Player:controlpressed(set, action, key) if self.jumpnumber > 0 then -- General jump logics self.jumpactive = true - self:playSound(6) + --self:playSound(6) -- Spawn proper effect if not self.inAir then self:createEffect("jump") -- cgit v1.1