mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-23 21:56:46 +00:00
pressing escape on title screen exits game
This commit is contained in:
parent
d974f12c72
commit
55edb9ea14
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue