bjorn 10 lat temu
rodzic
commit
3696ed81b9
1 zmienionych plików z 2 dodań i 0 usunięć
  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)