bjorn 10 년 전
부모
커밋
eaee5e27e3
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. BIN
      media/sounds/wilhelm.ogg
  2. 6 0
      person.lua

BIN
media/sounds/wilhelm.ogg


+ 6 - 0
person.lua

@@ -128,6 +128,12 @@ function Person.dead:enter()
       sound:setPitch(.8 + love.math.random() * .4)
     end)
     self.screamed = true
+  elseif love.math.random() < .02 then
+    self.screamSound = ctx.sound:play('wilhelm', function(sound)
+      sound:setVolume(.75)
+      sound:setPitch(.8 + love.math.random() * .4)
+    end)
+    self.screamed = true
   end
 end