소스 검색

Fix whirr;

bjorn 10 년 전
부모
커밋
a47818c777
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pigeon.lua

+ 2 - 2
pigeon.lua

@@ -77,7 +77,7 @@ function Pigeon:init()
 
       self.leftWhirr = ctx.sound:play('whirr', function(sound)
         sound:setVolume(.35)
-        sound:setPitch(.95 + love.math.random(.1))
+        sound:setPitch(.95 + love.math.random() * .1)
       end)
 
       ctx.sound:play('impact', function(sound)
@@ -104,7 +104,7 @@ function Pigeon:init()
 
       self.rightWhirr = ctx.sound:play('whirr', function(sound)
         sound:setVolume(.35)
-        sound:setPitch(.95 + love.math.random(.1))
+        sound:setPitch(.95 + love.math.random() * .1)
       end)
 
       ctx.sound:play('impact', function(sound)