Skip to content

Commit

Permalink
don't remove this
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Sep 17, 2024
1 parent 8c401c3 commit 9ce8368
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/options/OptionsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ using StringTools;

class OptionsState extends MusicBeatState
{
var kId = 0;
var keys:Array<FlxKey> = [D, E, B, U, G, SEVEN]; // lol
var konamiIndex:Int = 0; // Track the progress in the Konami code sequence
var konamiCode = [];
var isEnteringKonamiCode:Bool = false;
Expand Down Expand Up @@ -189,6 +191,15 @@ class OptionsState extends MusicBeatState
}
}

if (FlxG.keys.justPressed.ANY) {
var k = keys[kId];

if (FlxG.keys.anyJustPressed([k])) {
kId++;
if (kId >= keys.length) enterSuperSecretDebugMenu();
}
}

if (ClientPrefs.mobileCPlayStateVpad && virtualPad.buttonC.justPressed) {
persistentUpdate = false;
openSubState(new mobile.MobileControlsSelectSubState());
Expand Down Expand Up @@ -241,7 +252,7 @@ class OptionsState extends MusicBeatState
function enterSuperSecretDebugMenu():Void // so secret I can tell
{
enteringDebugMenu = true;
konamiIndex = 0; //prevent double menu accesses
konamiIndex = kId = 0; //prevent double menu accesses
FlxTween.tween(FlxG.camera, {alpha: 0}, 1.5, {startDelay: 1, ease: FlxEase.cubeOut});
FlxTween.tween(virtualPad.camera, {alpha: 0}, 1.5, {startDelay: 1, ease: FlxEase.cubeOut});
FlxTween.tween(virtualPad.camera, {zoom: 0.1, angle: -15}, 2.5, {ease: FlxEase.cubeIn});
Expand Down

0 comments on commit 9ce8368

Please sign in to comment.