From bb9db51560c64c3cb4423d1f3c2fc575676f1c26 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Thu, 15 Feb 2024 02:08:08 -0300 Subject: [PATCH] Tidy up debugging, remove 12px padding --- src/Game.hx | 7 ++++--- src/event/EventBus.hx | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) 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');