re-add lerp to load screen

This commit is contained in:
Cameron Taylor 2024-05-13 21:06:41 -04:00
parent 54f337fe9c
commit 259df760bc
1 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,8 @@ class LoadingState extends MusicBeatSubState
{
targetShit = FlxMath.remapToRange(callbacks.numRemaining / callbacks.length, 1, 0, 0, 1);
loadBar.setGraphicSize(Std.int(FlxG.width * targetShit), loadBar.height);
var lerpWidth:Int = Std.int(FlxMath.lerp(loadBar.width, FlxG.width * targetShit, 0.2));
loadBar.setGraphicSize(lerpWidth, loadBar.height);
loadBar.updateHitbox();
FlxG.watch.addQuick('percentage?', callbacks.numRemaining / callbacks.length);
}