mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -05:00
pressing escape on title screen exits game
This commit is contained in:
parent
d974f12c72
commit
55edb9ea14
1 changed files with 7 additions and 0 deletions
|
@ -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