1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-03 12:13:13 +00:00

tank cutscene GUNS

This commit is contained in:
Cameron Taylor 2021-04-08 12:33:19 -04:00
parent 29a5802a5b
commit 7c75bfaf31

View file

@ -890,6 +890,8 @@ class PlayState extends MusicBeatState
ughIntro(); ughIntro();
case 'stress': case 'stress':
stressIntro(); stressIntro();
case 'guns':
gunsIntro();
default: default:
startCountdown(); startCountdown();
@ -908,7 +910,7 @@ class PlayState extends MusicBeatState
tankCutscene.animation.addByPrefix('killYou', 'TANK TALK 1 P2', 24, false); tankCutscene.animation.addByPrefix('killYou', 'TANK TALK 1 P2', 24, false);
tankCutscene.animation.play('wellWell'); tankCutscene.animation.play('wellWell');
tankCutscene.antialiasing = true; tankCutscene.antialiasing = true;
add(tankCutscene); gfCutsceneLayer.add(tankCutscene);
camHUD.visible = false; camHUD.visible = false;
@ -944,7 +946,7 @@ class PlayState extends MusicBeatState
new FlxTimer().start((Conductor.crochet / 1000) * 5, function(money:FlxTimer) new FlxTimer().start((Conductor.crochet / 1000) * 5, function(money:FlxTimer)
{ {
dad.visible = true; dad.visible = true;
remove(tankCutscene); gfCutsceneLayer.remove(tankCutscene);
}); });
cameraMovement(); cameraMovement();
@ -956,6 +958,37 @@ class PlayState extends MusicBeatState
}); });
} }
function gunsIntro()
{
camFollow.y += 100;
FlxTween.tween(FlxG.camera, {zoom: defaultCamZoom * 1.3}, 4, {ease: FlxEase.quadInOut});
dad.visible = false;
var tankCutscene:FlxSprite = new FlxSprite(20, 320);
tankCutscene.frames = Paths.getSparrowAtlas('cutsceneStuff/tankTalkSong2');
tankCutscene.animation.addByPrefix('tankyguy', 'tankyguy', 24, false);
tankCutscene.animation.play('tankyguy');
tankCutscene.antialiasing = true;
gfCutsceneLayer.add(tankCutscene); // add();
FlxG.sound.play(Paths.sound('tankSong2'));
FlxTween.tween(FlxG.camera, {zoom: defaultCamZoom * 1.4}, 0.4, {ease: FlxEase.quadOut, startDelay: 4.1});
FlxTween.tween(FlxG.camera, {zoom: defaultCamZoom * 1.3}, 0.7, {ease: FlxEase.quadInOut, startDelay: 4.55});
new FlxTimer().start(11, function(tmr:FlxTimer)
{
FlxTween.tween(FlxG.camera, {zoom: defaultCamZoom}, (Conductor.crochet * 9) / 1000, {ease: FlxEase.quartInOut});
startCountdown();
new FlxTimer().start((Conductor.crochet * 25) / 1000, function(daTim:FlxTimer)
{
dad.visible = true;
gfCutsceneLayer.remove(tankCutscene);
});
});
}
function stressIntro() function stressIntro()
{ {
for (i in 0...5) for (i in 0...5)