pressing escape on title screen exits game

This commit is contained in:
Cameron Taylor 2024-06-09 15:38:22 -04:00
parent d974f12c72
commit 55edb9ea14

View file

@ -265,6 +265,13 @@ class TitleState extends MusicBeatState
if (FlxG.keys.pressed.DOWN) FlxG.sound.music.pitch -= 0.5 * elapsed;
#end
#if desktop
if (FlxG.keys.justPressed.ESCAPE)
{
Sys.exit(0);
}
#end
Conductor.instance.update();
/* if (FlxG.onMobile)