some updates

This commit is contained in:
Kade M
2021-06-16 13:52:04 -07:00
parent d103f5f507
commit 4454a25d5b
13 changed files with 812 additions and 610 deletions

View File

@ -1,5 +1,7 @@
package;
import webm.WebmPlayer;
import openfl.display.BlendMode;
import openfl.text.TextFormat;
import openfl.display.Application;
@ -49,6 +51,8 @@ class Main extends Sprite
}
}
public static var webmHandler:WebmHandler;
private function init(?E:Event):Void
{
if (hasEventListener(Event.ADDED_TO_STAGE))
@ -73,10 +77,8 @@ class Main extends Sprite
gameHeight = Math.ceil(stageHeight / zoom);
}
#if !debug
initialState = TitleState;
#end
initialState = Caching;
game = new FlxGame(gameWidth, gameHeight, initialState, zoom, framerate, framerate, skipSplash, startFullscreen);
addChild(game);