@@ -25,7 +25,7 @@ function Game:load()
self.map:spawnHuts()
- ctx.sound:loop('background', function(sound)
+ self.backgroundSound = ctx.sound:loop('background', function(sound)
sound:setVolume(.25)
end)
@@ -182,6 +182,7 @@ function Pigeon:update()
if not ctx.hud.win.active then
ctx.hud:activateWin()
ctx.sound:play('win')
+ ctx.backgroundSound:setVolume(.1)
end