mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-28 21:09:37 +00:00
more freeplay polish shit
This commit is contained in:
parent
83ddb13f71
commit
2b144fa0ab
|
@ -182,6 +182,7 @@ class FreeplayState extends MusicBeatState
|
||||||
var blackOverlayBullshitLOLXD:FlxSprite = new FlxSprite(pinkBack.width * 0.75).makeGraphic(Std.int(bgDad.width), Std.int(bgDad.height),
|
var blackOverlayBullshitLOLXD:FlxSprite = new FlxSprite(pinkBack.width * 0.75).makeGraphic(Std.int(bgDad.width), Std.int(bgDad.height),
|
||||||
FlxColor.BLACK);
|
FlxColor.BLACK);
|
||||||
add(blackOverlayBullshitLOLXD); // used to mask the text lol!
|
add(blackOverlayBullshitLOLXD); // used to mask the text lol!
|
||||||
|
|
||||||
add(bgDad);
|
add(bgDad);
|
||||||
|
|
||||||
blackOverlayBullshitLOLXD.shader = bgDad.shader;
|
blackOverlayBullshitLOLXD.shader = bgDad.shader;
|
||||||
|
@ -195,16 +196,17 @@ class FreeplayState extends MusicBeatState
|
||||||
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);
|
||||||
|
FlxTween.tween(overhangStuff, {y: 0}, 0.3, {ease: FlxEase.quartOut});
|
||||||
|
|
||||||
var fnfFreeplay:FlxText = new FlxText(0, -64, 0, "Freeplay", 48);
|
var fnfFreeplay:FlxText = new FlxText(0, 12, 0, "FREEPLAY", 48);
|
||||||
fnfFreeplay.font = "VCR OSD Mono";
|
fnfFreeplay.font = "VCR OSD Mono";
|
||||||
|
fnfFreeplay.visible = false;
|
||||||
add(fnfFreeplay);
|
add(fnfFreeplay);
|
||||||
|
|
||||||
dj.animHITsignal.add(function()
|
dj.animHITsignal.add(function()
|
||||||
{
|
{
|
||||||
pinkBack.color = 0xFFffd863;
|
pinkBack.color = 0xFFffd863;
|
||||||
FlxTween.tween(overhangStuff, {y: 0}, 0.3, {ease: FlxEase.quartOut});
|
fnfFreeplay.visible = true;
|
||||||
FlxTween.tween(fnfFreeplay, {y: 12}, 0.3, {ease: FlxEase.quartOut, startDelay: 0.5});
|
|
||||||
FlxTween.tween(bgDad, {x: pinkBack.width * 0.75}, 1, {ease: FlxEase.quintOut});
|
FlxTween.tween(bgDad, {x: pinkBack.width * 0.75}, 1, {ease: FlxEase.quintOut});
|
||||||
orangeBackShit.visible = true;
|
orangeBackShit.visible = true;
|
||||||
alsoOrangeLOL.visible = true;
|
alsoOrangeLOL.visible = true;
|
||||||
|
@ -216,12 +218,20 @@ class FreeplayState extends MusicBeatState
|
||||||
var funnyMenu:SongMenuItem = new SongMenuItem(FlxG.width, (i * 150) + 160, songs[i].songName);
|
var funnyMenu:SongMenuItem = new SongMenuItem(FlxG.width, (i * 150) + 160, songs[i].songName);
|
||||||
funnyMenu.targetPos.x = funnyMenu.x;
|
funnyMenu.targetPos.x = funnyMenu.x;
|
||||||
funnyMenu.ID = i;
|
funnyMenu.ID = i;
|
||||||
|
funnyMenu.alpha = 0.5;
|
||||||
|
funnyMenu.songText.visible = false;
|
||||||
|
|
||||||
new FlxTimer().start((0.06 * i) + 0.8, function(lerpTmr)
|
new FlxTimer().start((0.06 * i) + 0, function(lerpTmr)
|
||||||
{
|
{
|
||||||
funnyMenu.doLerp = true;
|
funnyMenu.doLerp = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
new FlxTimer().start(((0.20 * i) / (1 + i)) + 0.75, function(swagShi)
|
||||||
|
{
|
||||||
|
funnyMenu.songText.visible = true;
|
||||||
|
funnyMenu.alpha = 1;
|
||||||
|
});
|
||||||
|
|
||||||
grpCapsules.add(funnyMenu);
|
grpCapsules.add(funnyMenu);
|
||||||
|
|
||||||
var songText:Alphabet = new Alphabet(0, (70 * i) + 30, songs[i].songName, true, false);
|
var songText:Alphabet = new Alphabet(0, (70 * i) + 30, songs[i].songName, true, false);
|
||||||
|
|
|
@ -16,7 +16,7 @@ class SongMenuItem extends FlxSpriteGroup
|
||||||
|
|
||||||
public var songTitle:String = "Test";
|
public var songTitle:String = "Test";
|
||||||
|
|
||||||
var songText:FlxText;
|
public var songText:FlxText;
|
||||||
|
|
||||||
public var targetPos:FlxPoint = new FlxPoint();
|
public var targetPos:FlxPoint = new FlxPoint();
|
||||||
public var doLerp:Bool = false;
|
public var doLerp:Bool = false;
|
||||||
|
|
Loading…
Reference in a new issue