various changes
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package game;
|
||||
|
||||
import engine.HProfiler;
|
||||
import game.ui.console.ConsolePane;
|
||||
import game.ui.UIPane;
|
||||
import engine.typedefs.CVar;
|
||||
import game.entities.Player;
|
||||
import openfl.display.Stage;
|
||||
@@ -32,21 +35,22 @@ class Game
|
||||
public function loadData():Void
|
||||
{
|
||||
new game.ui.text.TextFormats();
|
||||
|
||||
}
|
||||
public function onInit():Void
|
||||
{
|
||||
|
||||
gameLayer = new Sprite();
|
||||
uiLayer = new Sprite();
|
||||
stage.addChild(gameLayer);
|
||||
stage.addChild(uiLayer);
|
||||
var console2:ConsolePane = new ConsolePane();
|
||||
uiLayer.addChild(console2);
|
||||
uiLayer.addChild(console);
|
||||
//var cvar_cl_kankerlow:CVar = ConVar.registerCVar("cl_kankerlow", CInt, 10, FCVAR_ARCHIVE, "is de speler een kankerlow?",null,false,false,0,0,false);
|
||||
|
||||
HProfiler.startProfiling("frametime");
|
||||
}
|
||||
public function onEnterFrame(e:Event):Void
|
||||
{
|
||||
HProfiler.stopProfiling("frametime");
|
||||
HProfiler.startProfiling("frametime");
|
||||
Input.onEnterFrame();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user