I’m trying to build a cross platform app in openfl, so far the little I have is working on windows, and builds fine on Mac, but when the app is ran, it only show the background color set in the project file. there are no errors, and the app doesn’t crash, it only shows nothing within the window.
Any help would be greatly appreciated, I copied the code below, pretty much, all three objects I’m attempting to draw use the same methods and again, works on windows.
Also I’m building with haxe 4, openfl 8.8.0 and lime 7.2.1 I’m not using any other libraries.
class Main extends Sprite
{
public function new()
{
super();
var t = new Tile();
var m = new Menu();
addChild(m);
m.x = 0;
m.y = 0;
var player = new Sprite();
player.graphics.beginFill(0xe67e22);
player.graphics.drawRect(0, 0, 50, 50);
addChild(player);
player.x = 50;
player.y = 50;
graphics.beginFill(0xe67e22);
graphics.drawRect(50, 50, 50, 50);
}
}