This commit is contained in:
John Alanbrook 2023-06-07 22:26:46 +00:00
parent 4c77c5f472
commit 0c6929893b
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ var Debug = {
},
box(pos, wh, color) {
color = color ? color : Color.white;
color ??= Color.white;
cmd(53, pos, wh, color);
},

View file

@ -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) {},