Fixed the FPS counter position and removed skipping with touch from AttractState

This commit is contained in:
KarimAkra
2025-04-16 15:54:38 +03:00
parent c466e1aa12
commit a2c2b8d9dd
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ class Main extends Sprite
{
fpsCounter.scaleX = fpsCounter.scaleY = #if android (scale > 1 ? scale : 1) #else (scale < 1 ? scale : 1) #end;
#if mobile
fpsCounter.x = FlxG.game.x + FullScreenScaleMode.notchSize.x +;
fpsCounter.x = FlxG.game.x + FullScreenScaleMode.notchSize.x + 10;
#end
}
+2 -3
View File
@@ -104,9 +104,8 @@ class AttractState extends MusicBeatState
{
super.update(elapsed);
// If the user presses any button, skip the video.
if ((FlxG.keys.justPressed.ANY && !controls.VOLUME_MUTE && !controls.VOLUME_UP && !controls.VOLUME_DOWN) #if mobile
|| funkin.mobile.util.TouchUtil.justPressed #end)
// If the user presses any button or holds the screen for 0.8 seconds, skip the video.
if ((FlxG.keys.justPressed.ANY && !controls.VOLUME_MUTE && !controls.VOLUME_UP && !controls.VOLUME_DOWN))
{
onAttractEnd();
}