mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
colors wip
This commit is contained in:
parent
0ed4f87bdb
commit
8b1fa3fb31
1 changed files with 11 additions and 2 deletions
|
@ -29,7 +29,16 @@ class FreeplayState extends MusicBeatState
|
|||
var lerpScore:Int = 0;
|
||||
var intendedScore:Int = 0;
|
||||
|
||||
var coolColors:Array<Int> = [0xff223344, 0xff123456, 0xFFFFFFFF, 0xFFADAD];
|
||||
var coolColors:Array<Int> = [
|
||||
0xff9271fd,
|
||||
0xff9271fd,
|
||||
0xff223344,
|
||||
0xFF941653,
|
||||
0xFFfc96d7,
|
||||
0xFFa0d1ff,
|
||||
0xffff78bf,
|
||||
0xfff6b604
|
||||
];
|
||||
|
||||
private var grpSongs:FlxTypedGroup<Alphabet>;
|
||||
private var curPlaying:Bool = false;
|
||||
|
@ -196,7 +205,7 @@ class FreeplayState extends MusicBeatState
|
|||
}
|
||||
|
||||
lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.4));
|
||||
bg.color = FlxColor.interpolate(bg.color, coolColors[curSelected % coolColors.length], 0.045);
|
||||
bg.color = FlxColor.interpolate(bg.color, coolColors[songs[curSelected].week % coolColors.length], 0.045);
|
||||
|
||||
if (Math.abs(lerpScore - intendedScore) <= 10)
|
||||
lerpScore = intendedScore;
|
||||
|
|
Loading…
Reference in a new issue