title screen shit

This commit is contained in:
Kade M 2021-07-04 17:28:04 -07:00
parent cf3722664b
commit 9535150d73
2 changed files with 18 additions and 1 deletions

Binary file not shown.

View File

@ -107,10 +107,14 @@ class TitleState extends MusicBeatState
#elseif CHARTING
FlxG.switchState(new ChartingState());
#else
#if !cpp
new FlxTimer().start(1, function(tmr:FlxTimer)
{
startIntro();
});
#else
startIntro();
#end
#end
}
@ -158,7 +162,7 @@ class TitleState extends MusicBeatState
add(bg);
if(Main.watermarks) {
logoBl = new FlxSprite(-150, -100);
logoBl = new FlxSprite(-150, 1500);
logoBl.frames = Paths.getSparrowAtlas('KadeEngineLogoBumpin');
logoBl.antialiasing = true;
logoBl.animation.addByPrefix('bump', 'logo bumpin', 24);
@ -454,6 +458,19 @@ class TitleState extends MusicBeatState
FlxG.camera.flash(FlxColor.WHITE, 4);
remove(credGroup);
FlxTween.tween(logoBl,{y: -100}, 1.4, {ease: FlxEase.expoInOut});
logoBl.angle = -4;
new FlxTimer().start(0.01, function(tmr:FlxTimer)
{
if(logoBl.angle == -4)
FlxTween.angle(logoBl, logoBl.angle, 4, 4, {ease: FlxEase.quartInOut});
if (logoBl.angle == 4)
FlxTween.angle(logoBl, logoBl.angle, -4, 4, {ease: FlxEase.quartInOut});
}, 0);
skippedIntro = true;
}
}