소스 검색

Complex quieter;

bjorn 10 년 전
부모
커밋
fb918220a9
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      game.lua

+ 3 - 1
game.lua

@@ -25,7 +25,9 @@ function Game:load()
 
   self.map:spawnHuts()
 
-  ctx.sound:loop('background')
+  ctx.sound:loop('background', function(sound)
+    sound:setVolume(.5)
+  end)
 
   self.world:setContactFilter(function(fixtureA, fixtureB)
     local a, b = fixtureA:getBody():getUserData(), fixtureB:getBody():getUserData()