[build] linux platform

This commit is contained in:
2018-01-28 16:05:57 +03:00
parent 24373aa85a
commit 9ebed21c5f
6 changed files with 73 additions and 11 deletions

View File

@@ -34,14 +34,14 @@ class GameFrame extends VGroupView implements ViewBuilder implements IPacketHand
game.engine.listeners.push(render);
game.start(state);
content.addEventListener(Event.ENTER_FRAME, redraw);
Provider.get(IConnection).packetHandler.addListener(this);
//Provider.get(IConnection).packetHandler.addListener(this);
render.draw(game.engine);
timer = new Timer(10);
timer.run = updateEngine;
}
public function onHide():Void {
Provider.get(IConnection).packetHandler.removeListener(this);
//Provider.get(IConnection).packetHandler.removeListener(this);
if (timer != null) {
timer.stop();
timer = null;