diff options
author | Aki <nthirtyone@gmail.com> | 2017-02-10 13:51:45 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-02-10 13:51:45 +0100 |
commit | 21184b6b9e3441064960ebf5af910afa6c7ffd1e (patch) | |
tree | 8f8a7f2681e52b0908ce8b10f76840ab2e9b1f91 | |
parent | 1a6b183f2b3457b62b7a403209bec6184c6c6106 (diff) | |
download | roflnauts-21184b6b9e3441064960ebf5af910afa6c7ffd1e.zip roflnauts-21184b6b9e3441064960ebf5af910afa6c7ffd1e.tar.gz roflnauts-21184b6b9e3441064960ebf5af910afa6c7ffd1e.tar.bz2 |
Added new sounds and modified old ones
-rw-r--r-- | assets/sounds/attack.ogg | bin | 4487 -> 8288 bytes | |||
-rw-r--r-- | assets/sounds/death.ogg | bin | 12111 -> 20380 bytes | |||
-rw-r--r-- | assets/sounds/hit.ogg | bin | 5877 -> 7640 bytes | |||
-rw-r--r-- | assets/sounds/jump.ogg | bin | 0 -> 14436 bytes | |||
-rw-r--r-- | assets/sounds/land.ogg | bin | 4733 -> 0 bytes | |||
-rw-r--r-- | assets/sounds/spawn.ogg | bin | 0 -> 7302 bytes | |||
-rw-r--r-- | assets/sounds/step.ogg | bin | 0 -> 6363 bytes | |||
-rw-r--r-- | player.lua | 2 | ||||
-rw-r--r-- | sounds.lua | 6 |
9 files changed, 6 insertions, 2 deletions
diff --git a/assets/sounds/attack.ogg b/assets/sounds/attack.ogg Binary files differindex c4e1123..5cae4f3 100644 --- a/assets/sounds/attack.ogg +++ b/assets/sounds/attack.ogg diff --git a/assets/sounds/death.ogg b/assets/sounds/death.ogg Binary files differindex 64c717f..dd4881d 100644 --- a/assets/sounds/death.ogg +++ b/assets/sounds/death.ogg diff --git a/assets/sounds/hit.ogg b/assets/sounds/hit.ogg Binary files differindex f44ad06..1e85257 100644 --- a/assets/sounds/hit.ogg +++ b/assets/sounds/hit.ogg diff --git a/assets/sounds/jump.ogg b/assets/sounds/jump.ogg Binary files differnew file mode 100644 index 0000000..4566031 --- /dev/null +++ b/assets/sounds/jump.ogg diff --git a/assets/sounds/land.ogg b/assets/sounds/land.ogg Binary files differdeleted file mode 100644 index 2804476..0000000 --- a/assets/sounds/land.ogg +++ /dev/null diff --git a/assets/sounds/spawn.ogg b/assets/sounds/spawn.ogg Binary files differnew file mode 100644 index 0000000..1becd40 --- /dev/null +++ b/assets/sounds/spawn.ogg diff --git a/assets/sounds/step.ogg b/assets/sounds/step.ogg Binary files differnew file mode 100644 index 0000000..73ee27f --- /dev/null +++ b/assets/sounds/step.ogg @@ -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 @@ -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 |