diff --git a/assets/preload/sounds/sarcasmComplete.mp3 b/assets/preload/sounds/sarcasmComplete.mp3 new file mode 100644 index 00000000000..ff9b304f7e7 Binary files /dev/null and b/assets/preload/sounds/sarcasmComplete.mp3 differ diff --git a/assets/preload/sounds/sarcasmComplete.ogg b/assets/preload/sounds/sarcasmComplete.ogg new file mode 100644 index 00000000000..107c0d934f5 Binary files /dev/null and b/assets/preload/sounds/sarcasmComplete.ogg differ diff --git a/source/TitleState.hx b/source/TitleState.hx index 4ee06b68981..d7dbd3dd560 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -53,6 +53,12 @@ class TitleState extends MusicBeatState public static var initialized:Bool = false; + final sarcasmKeys:Array = [ + 'ANNOUNCER' + ]; + final allowedKeys:String = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + var sarcasmKeysBuffer:String = ''; + var blackScreen:FlxSprite; var credGroup:FlxGroup; var credTextShit:Alphabet; @@ -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); @@ -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) {