diff --git a/source/scripts/debug.js b/source/scripts/debug.js index 8bce4718..9cc4aac1 100644 --- a/source/scripts/debug.js +++ b/source/scripts/debug.js @@ -39,7 +39,7 @@ var Debug = { }, box(pos, wh, color) { - color = color ? color : Color.white; + color ??= Color.white; cmd(53, pos, wh, color); }, diff --git a/source/scripts/engine.js b/source/scripts/engine.js index 1779b8b3..6cc26e6d 100644 --- a/source/scripts/engine.js +++ b/source/scripts/engine.js @@ -119,6 +119,7 @@ var Color = { red: [255,36,20,255], teal: [96, 252, 237,255], gray: [181, 181,181,255], + cyan: [0,255,255], }; function bb2wh(bb) { @@ -1875,7 +1876,6 @@ var gameobject = { set width(x) {}, get width() { var bb = this.boundingbox; - Log.warn(bb); return bb.r - bb.l; }, set height(x) {},