bjorn 10 years ago
parent
commit
f909c1b068
2 changed files with 3 additions and 0 deletions
  1. BIN
      media/sounds/jump.ogg
  2. 3 0
      pigeon.lua

BIN
media/sounds/jump.ogg


+ 3 - 0
pigeon.lua

@@ -490,6 +490,9 @@ function Pigeon.walk:update()
   self:recoverFuel()
   self:recoverFuel()
 
 
   if love.keyboard.isDown('up') then
   if love.keyboard.isDown('up') then
+    ctx.sound:play('jump', function(sound)
+      sound:setVolume(.85)
+    end)
     return self:changeState('air')
     return self:changeState('air')
   elseif love.keyboard.isDown(' ') then
   elseif love.keyboard.isDown(' ') then
     self:changeState('peck')
     self:changeState('peck')