SFX and BGM are now separate sliders

This commit is contained in:
Ishaan Bhardwaj
2020-12-20 15:26:32 -05:00
parent f4675da0b0
commit 548612123a
3 changed files with 12 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ function fadeoutBGM(time)
end
function resetBGMFadeout(time)
current_bgm:setVolume(config.sfx_volume)
current_bgm:setVolume(config.bgm_volume)
fading_bgm = false
current_bgm:play()
end
@@ -59,7 +59,7 @@ function processBGMFadeout(dt)
fadeout_time = 0
fading_bgm = false
end
current_bgm:setVolume(fadeout_time * config.sfx_volume / total_fadeout_time)
current_bgm:setVolume(fadeout_time * config.bgm_volume / total_fadeout_time)
end
end