bjorn 10 年 前
コミット
3696ed81b9
1 ファイル変更2 行追加0 行削除
  1. 2 0
      pigeon.lua

+ 2 - 0
pigeon.lua

@@ -75,6 +75,7 @@ function Pigeon:init()
         self.rightWhirr:stop()
       end
 
+      love.math.setRandomSeed(love.timer.getTime())
       self.leftWhirr = ctx.sound:play('whirr', function(sound)
         sound:setVolume(.35)
         sound:setPitch(.9 + love.math.random() * .2)
@@ -102,6 +103,7 @@ function Pigeon:init()
         self.leftWhirr:stop()
       end
 
+      love.math.setRandomSeed(love.timer.getTime())
       self.rightWhirr = ctx.sound:play('whirr', function(sound)
         sound:setVolume(.35)
         sound:setPitch(.9 + love.math.random() * .2)