소스 검색

Background;

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

+ 2 - 0
game.lua

@@ -25,6 +25,8 @@ function Game:load()
 
   self.map:spawnHuts()
 
+  ctx.sound:loop('background')
+
   self.world:setContactFilter(function(fixtureA, fixtureB)
     local a, b = fixtureA:getBody():getUserData(), fixtureB:getBody():getUserData()
     if not a or not b then return true end

BIN
media/sounds/background.ogg


+ 1 - 1
person.lua

@@ -135,7 +135,7 @@ function Person.dead:enter()
     self.screamed = true
   elseif love.math.random() < .1 then
     self.screamSound = ctx.sound:play('scream3', function(sound)
-      sound:setVolume(.75)
+      sound:setVolume(.5)
       sound:setPitch(.8 + love.math.random() * .4)
     end)
     self.screamed = true