Merge pull request #1275 from cuckydev/more-fixes

Maybe fix missing FPS counter
This commit is contained in:
Kade M 2021-07-11 23:17:21 -07:00 committed by GitHub
commit e58ab07b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,13 +85,6 @@ class Main extends Sprite
game = new FlxGame(gameWidth, gameHeight, initialState, zoom, framerate, framerate, skipSplash, startFullscreen);
#end
addChild(game);
#if !mobile
fpsCounter = new FPS(10, 3, 0xFFFFFF);
addChild(fpsCounter);
toggleFPS(FlxG.save.data.fps);
#end
PlayerSettings.init();
@ -110,6 +103,12 @@ class Main extends Sprite
FlxG.save.bind('funkin', 'ninjamuffin99');
KadeEngineData.initSave();
#if !mobile
fpsCounter = new FPS(10, 3, 0xFFFFFF);
addChild(fpsCounter);
toggleFPS(FlxG.save.data.fps);
#end
}
var game:FlxGame;