Update Main.hx

This commit is contained in:
Yoshman29
2023-04-02 15:12:43 +02:00
parent 2c653aec50
commit c0fc0923de
+4 -1
View File
@@ -49,6 +49,8 @@ class Main extends Sprite
var skipSplash:Bool = true; // Whether to skip the flixel splash screen that appears in release mode.
var startFullscreen:Bool = false; // Whether to start the game in fullscreen on desktop targets
public static var game:FunkinGame;
public static var time:Int = 0;
// You can pretty much ignore everything from here on - your code should go in your states.
@@ -102,7 +104,8 @@ class Main extends Sprite
}
addChild(new FunkinGame(gameWidth, gameHeight, MainState, zoom, framerate, framerate, skipSplash, startFullscreen));
addChild(game = new FunkinGame(gameWidth, gameHeight, MainState, zoom, framerate, framerate, skipSplash, startFullscreen));
game.scaleX = game.scaleY = stage.window.scale;
#if !mobile
addChild(new funkin.system.framerate.Framerate());