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)