ソースを参照

Randomize pitch;

bjorn 10 年 前
コミット
6ec509ccab
1 ファイル変更1 行追加0 行削除
  1. 1 0
      person.lua

+ 1 - 0
person.lua

@@ -125,6 +125,7 @@ function Person.dead:enter()
   if self.gender == 'male' and love.math.random() < .75 then
     self.screamSound = ctx.sound:play('scream2', function(sound)
       sound:setVolume(.75)
+      sound:setPitch(.8 + love.math.random() * .4)
     end)
     self.screamed = true
   end