Tidy up debugging, remove 12px padding

This commit is contained in:
3wc 2024-02-15 02:08:08 -03:00
parent 867b33aef5
commit bb9db51560
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -34,7 +34,6 @@ class EventBus {
public function publishEvent<T:IEvent>(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');