|
@@ -75,7 +75,11 @@ function Pigeon:init()
|
|
self.rightWhirr:stop()
|
|
self.rightWhirr:stop()
|
|
end
|
|
end
|
|
|
|
|
|
- self.leftWhirr = ctx.sound:play('whirr')
|
|
|
|
|
|
+ self.leftWhirr = ctx.sound:play('whirr', function(sound)
|
|
|
|
+ sound:setVolume(.35)
|
|
|
|
+ sound:setPitch(.95 + love.math.random(.1))
|
|
|
|
+ end)
|
|
|
|
+
|
|
ctx.sound:play('impact', function(sound)
|
|
ctx.sound:play('impact', function(sound)
|
|
sound:setVolume(.5)
|
|
sound:setVolume(.5)
|
|
end)
|
|
end)
|
|
@@ -98,7 +102,11 @@ function Pigeon:init()
|
|
self.leftWhirr:stop()
|
|
self.leftWhirr:stop()
|
|
end
|
|
end
|
|
|
|
|
|
- self.rightWhirr = ctx.sound:play('whirr')
|
|
|
|
|
|
+ self.rightWhirr = ctx.sound:play('whirr', function(sound)
|
|
|
|
+ sound:setVolume(.35)
|
|
|
|
+ sound:setPitch(.95 + love.math.random(.1))
|
|
|
|
+ end)
|
|
|
|
+
|
|
ctx.sound:play('impact', function(sound)
|
|
ctx.sound:play('impact', function(sound)
|
|
sound:setVolume(.5)
|
|
sound:setVolume(.5)
|
|
end)
|
|
end)
|