diff --git a/src/Game.hx b/src/Game.hx index 0947396..6b5d244 100644 --- a/src/Game.hx +++ b/src/Game.hx @@ -46,7 +46,8 @@ class Game extends hxd.App { var style = null; override function init() { - s2d.scaleMode = Stretch(Const.W, Const.H + 12); + s2d.scaleMode = Stretch(Const.W, Const.H); + layer = new Layers(s2d); #if hl hxd.res.Resource.LIVE_UPDATE = true; @@ -57,7 +58,8 @@ class Game extends hxd.App { root = new GameContainer(); root.horizontalAlign = root.verticalAlign = Middle; - s2d.add(root); + // s2d.add(root); + layer.addChildAt(root, 1); onResize(); style = new h2d.domkit.Style(); @@ -66,7 +68,6 @@ class Game extends hxd.App { style.addObject(root); font = Res.font.minecraftia_regular_6.toFont(); - layer = new Layers(s2d); #if debug console = new Console(font); diff --git a/src/event/EventBus.hx b/src/event/EventBus.hx index 1941160..901c243 100644 --- a/src/event/EventBus.hx +++ b/src/event/EventBus.hx @@ -34,7 +34,6 @@ class EventBus { public function publishEvent(event:T) { var type = Type.getClassName(Type.getClass(event)); - trace(type); if (!listeners.exists(type)) { #if debug console.log('Publishing event with no listeners: $type');