1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Merge pull request #618 from FunkinCrew/speaker-volume-desktop

[funk-378] reactive speaker to gamevolume on desktop
This commit is contained in:
Cameron Taylor 2024-06-11 16:16:02 -04:00 committed by GitHub
commit c325fdaa1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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));