From c0fc0923de3c4259fbe20f73c19c7a8d681a6236 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sun, 2 Apr 2023 15:12:43 +0200 Subject: [PATCH] Update Main.hx --- source/funkin/system/Main.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/funkin/system/Main.hx b/source/funkin/system/Main.hx index 37f84647..3cd41733 100644 --- a/source/funkin/system/Main.hx +++ b/source/funkin/system/Main.hx @@ -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());