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 --- assets/sounds/attack.ogg | Bin 4487 -> 8288 bytes assets/sounds/death.ogg | Bin 12111 -> 20380 bytes assets/sounds/hit.ogg | Bin 5877 -> 7640 bytes assets/sounds/jump.ogg | Bin 0 -> 14436 bytes assets/sounds/land.ogg | Bin 4733 -> 0 bytes assets/sounds/spawn.ogg | Bin 0 -> 7302 bytes assets/sounds/step.ogg | Bin 0 -> 6363 bytes player.lua | 2 ++ sounds.lua | 6 ++++-- 9 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 assets/sounds/jump.ogg delete mode 100644 assets/sounds/land.ogg create mode 100644 assets/sounds/spawn.ogg create mode 100644 assets/sounds/step.ogg diff --git a/assets/sounds/attack.ogg b/assets/sounds/attack.ogg index c4e1123..5cae4f3 100644 Binary files a/assets/sounds/attack.ogg and b/assets/sounds/attack.ogg differ diff --git a/assets/sounds/death.ogg b/assets/sounds/death.ogg index 64c717f..dd4881d 100644 Binary files a/assets/sounds/death.ogg and b/assets/sounds/death.ogg differ diff --git a/assets/sounds/hit.ogg b/assets/sounds/hit.ogg index f44ad06..1e85257 100644 Binary files a/assets/sounds/hit.ogg and b/assets/sounds/hit.ogg differ diff --git a/assets/sounds/jump.ogg b/assets/sounds/jump.ogg new file mode 100644 index 0000000..4566031 Binary files /dev/null and b/assets/sounds/jump.ogg differ diff --git a/assets/sounds/land.ogg b/assets/sounds/land.ogg deleted file mode 100644 index 2804476..0000000 Binary files a/assets/sounds/land.ogg and /dev/null differ diff --git a/assets/sounds/spawn.ogg b/assets/sounds/spawn.ogg new file mode 100644 index 0000000..1becd40 Binary files /dev/null and b/assets/sounds/spawn.ogg differ diff --git a/assets/sounds/step.ogg b/assets/sounds/step.ogg new file mode 100644 index 0000000..73ee27f Binary files /dev/null and b/assets/sounds/step.ogg differ 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 diff --git a/sounds.lua b/sounds.lua index 6c888e1..c30af16 100644 --- a/sounds.lua +++ b/sounds.lua @@ -1,7 +1,9 @@ return { love.sound.newSoundData("assets/sounds/death.ogg"), love.sound.newSoundData("assets/sounds/hit.ogg"), - love.sound.newSoundData("assets/sounds/land.ogg"), + love.sound.newSoundData("assets/sounds/step.ogg"), love.sound.newSoundData("assets/sounds/attack.ogg"), - love.sound.newSoundData("assets/sounds/cheer.ogg") + love.sound.newSoundData("assets/sounds/cheer.ogg"), + love.sound.newSoundData("assets/sounds/jump.ogg"), + love.sound.newSoundData("assets/sounds/spawn.ogg"), } \ No newline at end of file -- cgit v1.1