Browse Source

2 more screams;

bjorn 10 years ago
parent
commit
da5cf1af74
3 changed files with 12 additions and 0 deletions
  1. BIN
      media/sounds/scream3.ogg
  2. BIN
      media/sounds/scream4.ogg
  3. 12 0
      person.lua

BIN
media/sounds/scream3.ogg


BIN
media/sounds/scream4.ogg


+ 12 - 0
person.lua

@@ -134,6 +134,18 @@ function Person.dead:enter()
       sound:setPitch(.8 + love.math.random() * .4)
     end)
     self.screamed = true
+  elseif love.math.random() < .1 then
+    self.screamSound = ctx.sound:play('scream3', function(sound)
+      sound:setVolume(.75)
+      sound:setPitch(.8 + love.math.random() * .4)
+    end)
+    self.screamed = true
+  elseif love.math.random() < .1 and self.gender == 'male' then
+    self.screamSound = ctx.sound:play('scream4', function(sound)
+      sound:setVolume(.75)
+      sound:setPitch(.8 + love.math.random() * .4)
+    end)
+    self.screamed = true
   end
 end