Skip to content

Commit

Permalink
DANCING is NOT SCIENCE!
Browse files Browse the repository at this point in the history
glados quote
  • Loading branch information
SyncGit12 committed Jan 12, 2025
1 parent 213b7cc commit 00ff8fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Binary file added assets/preload/sounds/sarcasmComplete.mp3
Binary file not shown.
Binary file added assets/preload/sounds/sarcasmComplete.ogg
Binary file not shown.
19 changes: 18 additions & 1 deletion source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ class TitleState extends MusicBeatState

public static var initialized:Bool = false;

final sarcasmKeys:Array<String> = [
'ANNOUNCER'
];
final allowedKeys:String = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var sarcasmKeysBuffer:String = '';

var blackScreen:FlxSprite;
var credGroup:FlxGroup;
var credTextShit:Alphabet;
Expand Down Expand Up @@ -220,6 +226,8 @@ 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 @@ -356,7 +364,16 @@ class TitleState extends MusicBeatState
throw 'Crash test';
*/

// EASTER EGG
// Sarcasm Easter Egg, this might not work! :D
function sarcasmEasterEgg()
{
if(FlxG.save.data == null) FlxG.save.data = ''; // Crash prevention
switch(sarcasmEasterEgg.toUpperCase())
{
case 'ANNOUNCER':
FlxG.sound.play(Paths.sound('sarcasmComplete'))
}
}

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

0 comments on commit 00ff8fd

Please sign in to comment.