Skip to content

Commit

Permalink
definitely releasing today
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 5, 2023
1 parent 5695c93 commit 48d7e2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ using StringTools;

class Main extends Sprite
{
var gameWidth:Int; // Width of the game in pixels (might be less / more in actual pixels depending on your zoom).
var gameHeight:Int; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom).
var zoom:Float = -1; // If -1, zoom is automatically calculated to fit the window dimensions. (Removed from Flixel 5.0.0)

public static var fpsVar:FPS;
public static var fpsVar:FPS; // fps
public static var game:Joalor64Game; // the main game
public static var toast:ToastCore; // credits go to MAJigsaw77
public static var toast:ToastCore; // notification thing, credits go to MAJigsaw77
public static var gameWidth:Int; // Width of the game in pixels (might be less / more in actual pixels depending on your zoom).
public static var gameHeight:Int; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom).

var zoom:Float = -1; // If -1, zoom is automatically calculated to fit the window dimensions. (Removed from Flixel 5.0.0)

public static function main():Void
{
Expand Down
7 changes: 4 additions & 3 deletions source/openfl/display/FPS.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ class FPS extends TextField
currentFPS = 0;
selectable = false;
mouseEnabled = false;
defaultTextFormat = new TextFormat("_sans", 14, color);
autoSize = LEFT;
multiline = true;
defaultTextFormat = new TextFormat(Paths.font('vcr.ttf'), 16, color);
// set text area for the time being
width = Main.gameWidth;
height = Main.gameHeight;
text = "FPS: ";

cacheCount = 0;
Expand Down

0 comments on commit 48d7e2b

Please sign in to comment.