Update Main.hx

This commit is contained in:
Yoshman29
2023-04-02 15:35:24 +02:00
parent 8eb788d65a
commit 459e9fa8d1
+5 -3
View File
@@ -41,6 +41,9 @@ class Main extends Sprite
public static var forceGPUOnlyBitmapsOff:Bool = false;
public static var scaleMode:FunkinRatioScaleMode;
#if !mobile
public static var framerateSprite:funkin.system.framerate.Framerate;
#end
var gameWidth:Int = 1280; // Width of the game in pixels (might be less / more in actual pixels depending on your zoom).
var gameHeight:Int = 720; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom).
@@ -103,12 +106,11 @@ class Main extends Sprite
gameHeight = Math.ceil(stageHeight / zoom);
}
stage.scaleX = stage.scaleY = stage.window.scale;
addChild(game = new FunkinGame(gameWidth, gameHeight, MainState, zoom, framerate, framerate, skipSplash, startFullscreen));
#if !mobile
addChild(new funkin.system.framerate.Framerate());
addChild(framerateSprite = new funkin.system.framerate.Framerate());
framerateSprite = stage.window.scale;
SystemInfo.init();
#end
}