mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 08:13:45 +00:00
difficulty stuff lol!
This commit is contained in:
parent
c5196e715c
commit
d51fffd6d1
|
@ -9,6 +9,7 @@ import flixel.addons.display.FlxGridOverlay;
|
||||||
import flixel.addons.transition.FlxTransitionableState;
|
import flixel.addons.transition.FlxTransitionableState;
|
||||||
import flixel.group.FlxGroup.FlxTypedGroup;
|
import flixel.group.FlxGroup.FlxTypedGroup;
|
||||||
import flixel.group.FlxGroup;
|
import flixel.group.FlxGroup;
|
||||||
|
import flixel.group.FlxSpriteGroup;
|
||||||
import flixel.input.touch.FlxTouch;
|
import flixel.input.touch.FlxTouch;
|
||||||
import flixel.math.FlxAngle;
|
import flixel.math.FlxAngle;
|
||||||
import flixel.math.FlxMath;
|
import flixel.math.FlxMath;
|
||||||
|
@ -44,6 +45,8 @@ class FreeplayState extends MusicBeatSubstate
|
||||||
var lerpScore:Float = 0;
|
var lerpScore:Float = 0;
|
||||||
var intendedScore:Int = 0;
|
var intendedScore:Int = 0;
|
||||||
|
|
||||||
|
var grpDifficulties:FlxSpriteGroup;
|
||||||
|
|
||||||
var coolColors:Array<Int> = [
|
var coolColors:Array<Int> = [
|
||||||
0xff9271fd,
|
0xff9271fd,
|
||||||
0xff9271fd,
|
0xff9271fd,
|
||||||
|
@ -197,6 +200,22 @@ class FreeplayState extends MusicBeatSubstate
|
||||||
grpCapsules = new FlxTypedGroup<SongMenuItem>();
|
grpCapsules = new FlxTypedGroup<SongMenuItem>();
|
||||||
add(grpCapsules);
|
add(grpCapsules);
|
||||||
|
|
||||||
|
grpDifficulties = new FlxSpriteGroup(-300, 100);
|
||||||
|
add(grpDifficulties);
|
||||||
|
|
||||||
|
grpDifficulties.add(new FlxSprite().loadGraphic(Paths.image('freeplay/freeplayEasy')));
|
||||||
|
grpDifficulties.add(new FlxSprite().loadGraphic(Paths.image('freeplay/freeplayNorm')));
|
||||||
|
grpDifficulties.add(new FlxSprite().loadGraphic(Paths.image('freeplay/freeplayHard')));
|
||||||
|
|
||||||
|
grpDifficulties.group.forEach(function(spr)
|
||||||
|
{
|
||||||
|
spr.visible = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
grpDifficulties.group.members[curDifficulty].visible = true;
|
||||||
|
|
||||||
|
FlxTween.tween(grpDifficulties, {x: 50}, 0.6, {ease: FlxEase.quartOut, startDelay: 0.1});
|
||||||
|
|
||||||
var overhangStuff:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, 64, FlxColor.BLACK);
|
var overhangStuff:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, 64, FlxColor.BLACK);
|
||||||
overhangStuff.y -= overhangStuff.height;
|
overhangStuff.y -= overhangStuff.height;
|
||||||
add(overhangStuff);
|
add(overhangStuff);
|
||||||
|
@ -584,6 +603,14 @@ class FreeplayState extends MusicBeatSubstate
|
||||||
PlayState.storyDifficulty = curDifficulty;
|
PlayState.storyDifficulty = curDifficulty;
|
||||||
|
|
||||||
diffText.text = "< " + CoolUtil.difficultyString() + " >";
|
diffText.text = "< " + CoolUtil.difficultyString() + " >";
|
||||||
|
|
||||||
|
grpDifficulties.group.forEach(function(spr)
|
||||||
|
{
|
||||||
|
spr.visible = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
grpDifficulties.group.members[curDifficulty].visible = true;
|
||||||
|
|
||||||
positionHighscore();
|
positionHighscore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue