Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
fixed an issue where pressing up on the virtual pad once would make all other buttons unusable, which was caused by the konami check. now you must actually try to input it (after pressing the left button a second time while entering the code it will block off the A and B inputs)
  • Loading branch information
JordanSantiagoYT committed Nov 10, 2023
1 parent 8babdfa commit aa94bbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/options/OptionsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ var konamiIndex:Int = 0; // Track the progress in the Konami code sequence
#if desktop kId++; #end
if (kId >= keys.length #if android || konamiIndex >= konamiCode.length #end) {
enteringDebugMenu = true;
kId = 0;
FlxTween.tween(FlxG.camera, {alpha: 0}, 1.5, {startDelay: 1, ease: FlxEase.cubeOut});
if (FlxG.sound.music != null)
FlxTween.tween(FlxG.sound.music, {pitch: 0, volume: 0}, 2.5, {ease: FlxEase.cubeOut});
Expand Down Expand Up @@ -284,7 +285,7 @@ var konamiIndex:Int = 0; // Track the progress in the Konami code sequence
function checkKonamiCode():Bool {
if (konamiCode[konamiIndex].justPressed) {
konamiIndex++;
if (konamiIndex > 0) isEnteringKonamiCode = true;
if (konamiIndex > 6) isEnteringKonamiCode = true;
if (konamiIndex >= konamiCode.length) {
return true;
konamiIndex = 0;
Expand Down

0 comments on commit aa94bbd

Please sign in to comment.