This commit is contained in:
AlexGamingSW 2024-10-30 15:56:29 -04:00 committed by GitHub
commit 53b72abd9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -102,9 +102,7 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
var animFrame:Int = Math.round(levels[i].value * 5);
#if desktop
// Web version scales with the Flixel volume level.
// This line brings platform parity but looks worse.
// animFrame = Math.round(animFrame * FlxG.sound.volume);
animFrame = Math.round(animFrame * (Math.round(FlxG.sound.logToLinear(FlxG.sound.volume) * 10) / 10));
#end
animFrame = Math.floor(Math.min(5, animFrame));

View file

@ -111,9 +111,7 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
var animFrame:Int = Math.round(levels[i].value * 12);
#if desktop
// Web version scales with the Flixel volume level.
// This line brings platform parity but looks worse.
// animFrame = Math.round(animFrame * FlxG.sound.volume);
animFrame = Math.round(animFrame * (Math.round(FlxG.sound.logToLinear(FlxG.sound.volume) * 10) / 10));
#end
animFrame = Math.floor(Math.min(12, animFrame));