Skip to content

Commit

Permalink
js engine now works but the easter egg does not
Browse files Browse the repository at this point in the history
  • Loading branch information
SyncGit12 committed Jan 12, 2025
1 parent 371c0c5 commit 702c9ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class TitleState extends MusicBeatState

public static var initialized:Bool = false;

public static var sarcasmEgg:String;

final sarcasmKeys:Array<String> = [
'ANNOUNCER'
];
Expand Down Expand Up @@ -226,8 +228,6 @@ class TitleState extends MusicBeatState
logoBl.animation.play('bump');
logoBl.updateHitbox();

sarcasmEasterEgg();

swagShader = new ColorSwap();
gfDance = new FlxSprite(titleJSON.gfx, titleJSON.gfy);

Expand Down Expand Up @@ -367,14 +367,16 @@ class TitleState extends MusicBeatState
// Sarcasm Easter Egg, this might not work! :D
function sarcasmEasterEgg()
{
if(FlxG.save.data == null) FlxG.save.data = ''; // Crash prevention
switch(sarcasmEasterEgg.toUpperCase())
//if(FlxG.save.data == null) FlxG.save.data = ''; // Crash prevention
switch(sarcasmEgg)
{
case 'ANNOUNCER':
FlxG.sound.play(Paths.sound('sarcasmComplete'));
}
}

sarcasmEasterEgg();

if (initialized && !transitioning && skippedIntro)
{
if (newTitle && !pressedEnter)
Expand Down

2 comments on commit 702c9ad

@JordanSantiagoYT
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no code to detect if the keys were pressed lol

@SyncGit12
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

me too lazy to do it myself

Please sign in to comment.