From aa94bbd99c4772a51aa90d41f1ded15e9a7b2f15 Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Fri, 10 Nov 2023 01:18:14 -0500 Subject: [PATCH] bruh 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) --- source/options/OptionsState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/options/OptionsState.hx b/source/options/OptionsState.hx index 4556077d1ae..e11112bd10f 100644 --- a/source/options/OptionsState.hx +++ b/source/options/OptionsState.hx @@ -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}); @@ -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;