1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-26 00:35:11 +00:00
This commit is contained in:
Cameron Taylor 2023-04-17 11:02:45 -04:00
parent c2e340ef19
commit b1dfbb2ef2

View file

@ -52,10 +52,19 @@ class ResultState extends MusicBeatSubstate
bg.scrollFactor.set(); bg.scrollFactor.set();
add(bg); add(bg);
var bgFlash:FlxSprite = FlxGradient.createGradientFlxSprite(FlxG.width, FlxG.height, [0xFFffeb69, 0xFFffe66a], 90);
bgFlash.scrollFactor.set();
bgFlash.visible = false;
add(bgFlash);
var bfGfExcellent:FlxAtlasSprite = new FlxAtlasSprite(380, -170, Paths.animateAtlas("resultScreen/resultsBoyfriendExcellent", "shared")); var bfGfExcellent:FlxAtlasSprite = new FlxAtlasSprite(380, -170, Paths.animateAtlas("resultScreen/resultsBoyfriendExcellent", "shared"));
bfGfExcellent.visible = false; bfGfExcellent.visible = false;
// trace(bfGfExcellent.listAnimations());
add(bfGfExcellent); add(bfGfExcellent);
var bfSHIT:FlxAtlasSprite = new FlxAtlasSprite(0, 20, Paths.animateAtlas("resultScreen/resultsBoyfriendSHIT", "shared"));
bfSHIT.visible = false;
add(bfSHIT);
var settings:Settings = var settings:Settings =
{ {
// ?ButtonSettings:Map<String, flxanimate.animate.FlxAnim.ButtonSettings>, // ?ButtonSettings:Map<String, flxanimate.animate.FlxAnim.ButtonSettings>,
@ -63,6 +72,7 @@ class ResultState extends MusicBeatSubstate
Reversed: false, Reversed: false,
OnComplete: function() { OnComplete: function() {
bfGfExcellent.anim.curFrame = 28; bfGfExcellent.anim.curFrame = 28;
bfSHIT.anim.curFrame = 150;
trace("repeated anim!!"); trace("repeated anim!!");
}, },
ShowPivot: false, ShowPivot: false,
@ -72,6 +82,7 @@ class ResultState extends MusicBeatSubstate
}; };
bfGfExcellent.setTheSettings(settings); bfGfExcellent.setTheSettings(settings);
bfSHIT.setTheSettings(settings);
var gf:FlxSprite = new FlxSprite(500, 300); var gf:FlxSprite = new FlxSprite(500, 300);
gf.frames = Paths.getSparrowAtlas('resultScreen/resultGirlfriendGOOD'); gf.frames = Paths.getSparrowAtlas('resultScreen/resultGirlfriendGOOD');
@ -232,12 +243,29 @@ class ResultState extends MusicBeatSubstate
FlxTween.tween(highscoreNew, {y: highscoreNew.y + 10}, 0.8, {ease: FlxEase.quartOut}); FlxTween.tween(highscoreNew, {y: highscoreNew.y + 10}, 0.8, {ease: FlxEase.quartOut});
}; };
resultsVariation = SHIT;
switch (resultsVariation) switch (resultsVariation)
{ {
case SHIT:
bfSHIT.visible = true;
bfSHIT.playAnimation("");
case NORMAL: case NORMAL:
boyfriend.animation.play('fall'); boyfriend.animation.play('fall');
boyfriend.visible = true; boyfriend.visible = true;
new FlxTimer().start((1 / 24) * 12, _ -> {
bgFlash.visible = true;
FlxTween.tween(bgFlash, {alpha: 0}, 0.4);
new FlxTimer().start((1 / 24) * 2, _ ->
{
// bgFlash.alpha = 0.5;
// bgFlash.visible = false;
});
});
new FlxTimer().start((1 / 24) * 22, _ -> { new FlxTimer().start((1 / 24) * 22, _ -> {
// plays about 22 frames (at 24fps timing) after bf spawns in // plays about 22 frames (at 24fps timing) after bf spawns in
gf.animation.play('clap', true); gf.animation.play('clap', true);