mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-06-18 15:51:33 +00:00
got g-friend codeed
This commit is contained in:
parent
1a1ac2a866
commit
58fe9c8f8c
|
@ -561,7 +561,7 @@ class FreeplayState extends MusicBeatSubstate
|
|||
curDifficulty = 0;
|
||||
|
||||
// intendedScore = Highscore.getScore(songs[curSelected].songName, curDifficulty);
|
||||
intendedScore = FlxG.random.int(0, 100000);
|
||||
intendedScore = Highscore.getScore(songs[curSelected].songName, curDifficulty);
|
||||
|
||||
PlayState.storyDifficulty = curDifficulty;
|
||||
|
||||
|
|
|
@ -1446,13 +1446,17 @@ class PlayState extends MusicBeatState implements IHook
|
|||
// unloadAssets();
|
||||
|
||||
camZooming = false;
|
||||
|
||||
FlxG.camera.follow(PlayState.instance.currentStage.getGirlfriend(), null, 0.05);
|
||||
FlxG.camera.targetOffset.y -= 370;
|
||||
FlxG.camera.targetOffset.y -= 350;
|
||||
FlxG.camera.targetOffset.x += 20;
|
||||
|
||||
FlxTween.tween(camHUD, {alpha: 0}, 0.6);
|
||||
|
||||
new FlxTimer().start(0.8, _ ->
|
||||
{
|
||||
currentStage.getGirlfriend().animation.play("cheer");
|
||||
|
||||
FlxTween.tween(FlxG.camera, {zoom: 1200}, 1.1, {
|
||||
ease: FlxEase.expoIn,
|
||||
onComplete: _ ->
|
||||
|
|
|
@ -35,6 +35,27 @@ class ResultState extends MusicBeatSubstate
|
|||
bg.scrollFactor.set();
|
||||
add(bg);
|
||||
|
||||
var gf:FlxSprite = new FlxSprite(500, 300);
|
||||
gf.frames = Paths.getSparrowAtlas('resultScreen/resultGirlfriendGOOD');
|
||||
gf.animation.addByPrefix("clap", "Girlfriend Good Anim", 24, false);
|
||||
gf.visible = false;
|
||||
gf.animation.finishCallback = _ ->
|
||||
{
|
||||
gf.animation.play('clap', true, false, 9);
|
||||
};
|
||||
add(gf);
|
||||
|
||||
var boyfriend:FlxSprite = new FlxSprite(640, -200);
|
||||
boyfriend.frames = Paths.getSparrowAtlas('resultScreen/resultBoyfriendGOOD');
|
||||
boyfriend.animation.addByPrefix("fall", "Boyfriend Good", 24, false);
|
||||
boyfriend.visible = false;
|
||||
boyfriend.animation.finishCallback = function(_)
|
||||
{
|
||||
boyfriend.animation.play('fall', true, false, 14);
|
||||
};
|
||||
|
||||
add(boyfriend);
|
||||
|
||||
var soundSystem:FlxSprite = new FlxSprite(-15, -180);
|
||||
soundSystem.frames = Paths.getSparrowAtlas("resultScreen/soundSystem");
|
||||
soundSystem.animation.addByPrefix("idle", "sound system", 24, false);
|
||||
|
@ -130,6 +151,16 @@ class ResultState extends MusicBeatSubstate
|
|||
{
|
||||
ratingsPopin.animation.play("idle");
|
||||
ratingsPopin.visible = true;
|
||||
|
||||
boyfriend.animation.play('fall');
|
||||
boyfriend.visible = true;
|
||||
|
||||
new FlxTimer().start((1 / 24) * 22, _ ->
|
||||
{
|
||||
// plays about 22 frames (at 24fps timing) after bf spawns in
|
||||
gf.animation.play('clap', true);
|
||||
gf.visible = true;
|
||||
});
|
||||
});
|
||||
|
||||
super.create();
|
||||
|
|
Loading…
Reference in a new issue