touch controls in progres

This commit is contained in:
Cameron Taylor
2021-08-22 10:37:06 -04:00
parent 1992d5363e
commit 61ba71d3db
4 changed files with 75 additions and 0 deletions
+10
View File
@@ -74,6 +74,16 @@ class GameOverSubstate extends MusicBeatSubstate
super.update(elapsed);
if (FlxG.onMobile)
{
var touch = FlxG.touches.getFirst();
if (touch != null)
{
if (touch.overlaps(bf))
endBullshit();
}
}
if (controls.ACCEPT)
{
endBullshit();