1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-28 15:57:42 +00:00

week6 cam center and move senpaiEvil

This commit is contained in:
MtH 2021-04-15 03:56:42 +02:00
parent 5cc9f5532b
commit 86e1aed2fa

View file

@ -989,7 +989,6 @@ class PlayState extends MusicBeatState
cameraMovement();
startCountdown();
camHUD.visible = true;
});
});
});
@ -1039,8 +1038,6 @@ class PlayState extends MusicBeatState
dad.visible = true;
gfCutsceneLayer.remove(tankCutscene);
});
camHUD.visible = true;
});
}
@ -1333,10 +1330,13 @@ class PlayState extends MusicBeatState
var senpaiEvil:FlxSprite = new FlxSprite();
senpaiEvil.frames = Paths.getSparrowAtlas('weeb/senpaiCrazy');
senpaiEvil.animation.addByPrefix('idle', 'Senpai Pre Explosion', 24, false);
senpaiEvil.setGraphicSize(Std.int(senpaiEvil.width * 6));
senpaiEvil.setGraphicSize(Std.int(senpaiEvil.width * daPixelZoom));
senpaiEvil.scrollFactor.set();
senpaiEvil.updateHitbox();
senpaiEvil.screenCenter();
senpaiEvil.x += senpaiEvil.width / 5;
camFollow.setPosition(camPos.x, camPos.y);
if (SONG.song.toLowerCase() == 'roses' || SONG.song.toLowerCase() == 'thorns')
{
@ -1345,6 +1345,7 @@ class PlayState extends MusicBeatState
if (SONG.song.toLowerCase() == 'thorns')
{
add(red);
camHUD.visible = false;
}
}
@ -1383,6 +1384,7 @@ class PlayState extends MusicBeatState
FlxG.camera.fade(FlxColor.WHITE, 0.01, true, function()
{
add(dialogueBox);
camHUD.visible = true;
}, true);
});
new FlxTimer().start(3.2, function(deadTime:FlxTimer)
@ -1411,6 +1413,7 @@ class PlayState extends MusicBeatState
function startCountdown():Void
{
inCutscene = false;
camHUD.visible = true;
generateStaticArrows(0);
generateStaticArrows(1);
@ -2516,10 +2519,7 @@ class PlayState extends MusicBeatState
{
case 'mom':
camFollow.y = dad.getMidpoint().y;
case 'senpai':
camFollow.y = dad.getMidpoint().y - 430;
camFollow.x = dad.getMidpoint().x - 100;
case 'senpai-angry':
case 'senpai' | 'senpai-angry':
camFollow.y = dad.getMidpoint().y - 430;
camFollow.x = dad.getMidpoint().x - 100;
}