missiles
This commit is contained in:
parent
4c77c5f472
commit
0c6929893b
|
@ -39,7 +39,7 @@ var Debug = {
|
||||||
},
|
},
|
||||||
|
|
||||||
box(pos, wh, color) {
|
box(pos, wh, color) {
|
||||||
color = color ? color : Color.white;
|
color ??= Color.white;
|
||||||
cmd(53, pos, wh, color);
|
cmd(53, pos, wh, color);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,7 @@ var Color = {
|
||||||
red: [255,36,20,255],
|
red: [255,36,20,255],
|
||||||
teal: [96, 252, 237,255],
|
teal: [96, 252, 237,255],
|
||||||
gray: [181, 181,181,255],
|
gray: [181, 181,181,255],
|
||||||
|
cyan: [0,255,255],
|
||||||
};
|
};
|
||||||
|
|
||||||
function bb2wh(bb) {
|
function bb2wh(bb) {
|
||||||
|
@ -1875,7 +1876,6 @@ var gameobject = {
|
||||||
set width(x) {},
|
set width(x) {},
|
||||||
get width() {
|
get width() {
|
||||||
var bb = this.boundingbox;
|
var bb = this.boundingbox;
|
||||||
Log.warn(bb);
|
|
||||||
return bb.r - bb.l;
|
return bb.r - bb.l;
|
||||||
},
|
},
|
||||||
set height(x) {},
|
set height(x) {},
|
||||||
|
|
Loading…
Reference in a new issue