From 72e6a477166caa7b25406ccf1c2573904ff4ea99 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Fri, 14 May 2021 17:53:34 -0400 Subject: [PATCH] NG logo easter egg shit --- source/TitleState.hx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/source/TitleState.hx b/source/TitleState.hx index 4faffca93..2e0445384 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -307,10 +307,28 @@ class TitleState extends MusicBeatState credTextShit.visible = false; - ngSpr = new FlxSprite(0, FlxG.height * 0.52).loadGraphic(Paths.image('newgrounds_logo')); + ngSpr = new FlxSprite(0, FlxG.height * 0.52); + + if (FlxG.random.bool(1)) + { + ngSpr.loadGraphic(Paths.image('newgrounds_logo_classic')); + } + else if (FlxG.random.bool(30)) + { + ngSpr.loadGraphic(Paths.image('newgrounds_logo_animated'), true, 600); + ngSpr.animation.add('idle', [0, 1], 4); + ngSpr.animation.play('idle'); + ngSpr.setGraphicSize(Std.int(ngSpr.width * 0.55)); + } + else + { + ngSpr.loadGraphic(Paths.image('newgrounds_logo')); + ngSpr.setGraphicSize(Std.int(ngSpr.width * 0.8)); + } + add(ngSpr); ngSpr.visible = false; - ngSpr.setGraphicSize(Std.int(ngSpr.width * 0.8)); + ngSpr.updateHitbox(); ngSpr.screenCenter(X); ngSpr.antialiasing = true;