1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-06-17 23:21:43 +00:00

reactive speaker to gamevolume on desktop

This commit is contained in:
Cameron Taylor 2024-06-11 12:13:10 -04:00
parent 817c216d06
commit 37a15e0a0f

View file

@ -101,6 +101,10 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
{
var animFrame:Int = Math.round(levels[i].value * 5);
#if desktop
animFrame = Math.round(animFrame * FlxG.sound.volume);
#end
animFrame = Math.floor(Math.min(5, animFrame));
animFrame = Math.floor(Math.max(0, animFrame));