excalibur 0.32.0-alpha.1598 → 0.32.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/excalibur.development.js +33 -21
- package/build/dist/excalibur.js +33 -21
- package/build/dist/excalibur.min.development.js +4 -4
- package/build/dist/excalibur.min.js +4 -4
- package/build/esm/excalibur.development.js +33 -21
- package/build/esm/excalibur.js +33 -21
- package/build/esm/excalibur.min.development.js +299 -297
- package/build/esm/excalibur.min.js +299 -297
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! excalibur - 0.32.0-alpha.
|
|
1
|
+
/*! excalibur - 0.32.0-alpha.16+07ccaa0 - 2025-12-22
|
|
2
2
|
https://github.com/excaliburjs/Excalibur
|
|
3
3
|
Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
|
|
4
4
|
Licensed BSD-2-Clause
|
|
@@ -21327,10 +21327,9 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
21327
21327
|
return updated;
|
|
21328
21328
|
}
|
|
21329
21329
|
debug(ex, elapsed) {
|
|
21330
|
-
const transparent = Color.Transparent;
|
|
21331
21330
|
const color = Color.White;
|
|
21332
21331
|
for (const cell of this.sparseHashGrid.values()) {
|
|
21333
|
-
ex.
|
|
21332
|
+
ex.debug.drawRect(cell.x * this.gridSize, cell.y * this.gridSize, this.gridSize, this.gridSize, { color, lineWidth: 2 });
|
|
21334
21333
|
}
|
|
21335
21334
|
}
|
|
21336
21335
|
}
|
|
@@ -24398,13 +24397,18 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
24398
24397
|
buttonElement.id = "excalibur-play";
|
|
24399
24398
|
buttonElement.style.display = "none";
|
|
24400
24399
|
if (buttonElement) {
|
|
24401
|
-
|
|
24400
|
+
let [span, text] = buttonElement.getElementsByTagName("span");
|
|
24401
|
+
if (!span) {
|
|
24402
|
+
span != null ? span : span = document.createElement("span");
|
|
24403
|
+
buttonElement.appendChild(span);
|
|
24404
|
+
}
|
|
24402
24405
|
span.id = "excalibur-play-icon";
|
|
24403
|
-
|
|
24404
|
-
|
|
24406
|
+
if (!text) {
|
|
24407
|
+
text != null ? text : text = document.createElement("span");
|
|
24408
|
+
buttonElement.appendChild(text);
|
|
24409
|
+
}
|
|
24405
24410
|
text.id = "excalibur-play-text";
|
|
24406
24411
|
text.textContent = this.playButtonText;
|
|
24407
|
-
buttonElement.appendChild(text);
|
|
24408
24412
|
}
|
|
24409
24413
|
return buttonElement;
|
|
24410
24414
|
};
|
|
@@ -25713,11 +25717,11 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
25713
25717
|
if (showGrid || showAll) {
|
|
25714
25718
|
for (let r = 0; r < this.rows + 1; r++) {
|
|
25715
25719
|
const yOffset = vec(0, r * this.tileHeight * this.scale.y);
|
|
25716
|
-
gfx.drawLine(pos.add(yOffset), pos.add(vec(width, yOffset.y)), gridColor, gridWidth);
|
|
25720
|
+
gfx.debug.drawLine(pos.add(yOffset), pos.add(vec(width, yOffset.y)), { color: gridColor, lineWidth: gridWidth });
|
|
25717
25721
|
}
|
|
25718
25722
|
for (let c = 0; c < this.columns + 1; c++) {
|
|
25719
25723
|
const xOffset = vec(c * this.tileWidth * this.scale.x, 0);
|
|
25720
|
-
gfx.drawLine(pos.add(xOffset), pos.add(vec(xOffset.x, height)), gridColor, gridWidth);
|
|
25724
|
+
gfx.debug.drawLine(pos.add(xOffset), pos.add(vec(xOffset.x, height)), { color: gridColor, lineWidth: gridWidth });
|
|
25721
25725
|
}
|
|
25722
25726
|
}
|
|
25723
25727
|
if (showAll || showColliderBounds || showColliderGeometry) {
|
|
@@ -25729,7 +25733,7 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
25729
25733
|
const bounds = collider.localBounds;
|
|
25730
25734
|
const pos2 = collider.worldPos.sub(this.pos);
|
|
25731
25735
|
if (showColliderBounds) {
|
|
25732
|
-
gfx.
|
|
25736
|
+
gfx.debug.drawRect(pos2.x, pos2.y, bounds.width, bounds.height, { color: colliderBoundsColor });
|
|
25733
25737
|
}
|
|
25734
25738
|
}
|
|
25735
25739
|
gfx.restore();
|
|
@@ -27092,17 +27096,15 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
27092
27096
|
cursor = cursor.add(lineHeight);
|
|
27093
27097
|
}
|
|
27094
27098
|
if (txSettings.showAll || txSettings.showRotation) {
|
|
27095
|
-
this._graphicsContext.drawLine(
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
|
|
27099
|
-
2
|
|
27100
|
-
);
|
|
27099
|
+
this._graphicsContext.debug.drawLine(Vector.Zero, Vector.fromAngle(tx.rotation).scale(20).add(Vector.Zero), {
|
|
27100
|
+
color: txSettings.rotationColor,
|
|
27101
|
+
lineWidth: 2
|
|
27102
|
+
});
|
|
27101
27103
|
this._graphicsContext.debug.drawText(`rot deg(${toDegrees(tx.rotation).toFixed(2)})`, cursor);
|
|
27102
27104
|
cursor = cursor.add(lineHeight);
|
|
27103
27105
|
}
|
|
27104
27106
|
if (txSettings.showAll || txSettings.showScale) {
|
|
27105
|
-
this._graphicsContext.drawLine(Vector.Zero, tx.scale
|
|
27107
|
+
this._graphicsContext.debug.drawLine(Vector.Zero, tx.scale, { color: txSettings.scaleColor, lineWidth: 2 });
|
|
27106
27108
|
}
|
|
27107
27109
|
}
|
|
27108
27110
|
debugDraw = entity.get(DebugGraphicsComponent);
|
|
@@ -27119,7 +27121,11 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
27119
27121
|
body = entity.get(BodyComponent);
|
|
27120
27122
|
if (body) {
|
|
27121
27123
|
if (bodySettings.showAll || bodySettings.showCollisionGroup) {
|
|
27122
|
-
this._graphicsContext.debug.drawText(`collision group(${body.group.name})`, cursor);
|
|
27124
|
+
this._graphicsContext.debug.drawText(`collision group name(${body.group.name}))`, cursor);
|
|
27125
|
+
cursor = cursor.add(lineHeight);
|
|
27126
|
+
this._graphicsContext.debug.drawText(` mask(0x${(body.group.mask >>> 0).toString(16)})`, cursor);
|
|
27127
|
+
cursor = cursor.add(lineHeight);
|
|
27128
|
+
this._graphicsContext.debug.drawText(` category(0x${(body.group.category >>> 0).toString(16)})`, cursor);
|
|
27123
27129
|
cursor = cursor.add(lineHeight);
|
|
27124
27130
|
}
|
|
27125
27131
|
if (bodySettings.showAll || bodySettings.showCollisionType) {
|
|
@@ -27148,11 +27154,17 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
27148
27154
|
if (motion) {
|
|
27149
27155
|
if (motionSettings.showAll || motionSettings.showVelocity) {
|
|
27150
27156
|
this._graphicsContext.debug.drawText(`vel${motion.vel.toString(2)}`, cursor.add(tx.globalPos));
|
|
27151
|
-
this._graphicsContext.drawLine(tx.globalPos, tx.globalPos.add(motion.vel),
|
|
27157
|
+
this._graphicsContext.debug.drawLine(tx.globalPos, tx.globalPos.add(motion.vel), {
|
|
27158
|
+
color: motionSettings.velocityColor,
|
|
27159
|
+
lineWidth: 2
|
|
27160
|
+
});
|
|
27152
27161
|
cursor = cursor.add(lineHeight);
|
|
27153
27162
|
}
|
|
27154
27163
|
if (motionSettings.showAll || motionSettings.showAcceleration) {
|
|
27155
|
-
this._graphicsContext.drawLine(tx.globalPos, tx.globalPos.add(motion.acc),
|
|
27164
|
+
this._graphicsContext.debug.drawLine(tx.globalPos, tx.globalPos.add(motion.acc), {
|
|
27165
|
+
color: motionSettings.accelerationColor,
|
|
27166
|
+
lineWidth: 2
|
|
27167
|
+
});
|
|
27156
27168
|
}
|
|
27157
27169
|
}
|
|
27158
27170
|
colliderComp = entity.get(ColliderComponent);
|
|
@@ -33602,7 +33614,7 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
|
|
|
33602
33614
|
this._count += count;
|
|
33603
33615
|
}
|
|
33604
33616
|
}
|
|
33605
|
-
const EX_VERSION = "0.32.0-alpha.
|
|
33617
|
+
const EX_VERSION = "0.32.0-alpha.16+07ccaa0";
|
|
33606
33618
|
polyfill();
|
|
33607
33619
|
exports2.ActionCompleteEvent = ActionCompleteEvent;
|
|
33608
33620
|
exports2.ActionContext = ActionContext;
|
package/build/dist/excalibur.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! excalibur - 0.32.0-alpha.
|
|
1
|
+
/*! excalibur - 0.32.0-alpha.16+07ccaa0 - 2025-12-22
|
|
2
2
|
https://github.com/excaliburjs/Excalibur
|
|
3
3
|
Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
|
|
4
4
|
Licensed BSD-2-Clause
|
|
@@ -21327,10 +21327,9 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
21327
21327
|
return updated;
|
|
21328
21328
|
}
|
|
21329
21329
|
debug(ex, elapsed) {
|
|
21330
|
-
const transparent = Color.Transparent;
|
|
21331
21330
|
const color = Color.White;
|
|
21332
21331
|
for (const cell of this.sparseHashGrid.values()) {
|
|
21333
|
-
ex.
|
|
21332
|
+
ex.debug.drawRect(cell.x * this.gridSize, cell.y * this.gridSize, this.gridSize, this.gridSize, { color, lineWidth: 2 });
|
|
21334
21333
|
}
|
|
21335
21334
|
}
|
|
21336
21335
|
}
|
|
@@ -24398,13 +24397,18 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
24398
24397
|
buttonElement.id = "excalibur-play";
|
|
24399
24398
|
buttonElement.style.display = "none";
|
|
24400
24399
|
if (buttonElement) {
|
|
24401
|
-
|
|
24400
|
+
let [span, text] = buttonElement.getElementsByTagName("span");
|
|
24401
|
+
if (!span) {
|
|
24402
|
+
span != null ? span : span = document.createElement("span");
|
|
24403
|
+
buttonElement.appendChild(span);
|
|
24404
|
+
}
|
|
24402
24405
|
span.id = "excalibur-play-icon";
|
|
24403
|
-
|
|
24404
|
-
|
|
24406
|
+
if (!text) {
|
|
24407
|
+
text != null ? text : text = document.createElement("span");
|
|
24408
|
+
buttonElement.appendChild(text);
|
|
24409
|
+
}
|
|
24405
24410
|
text.id = "excalibur-play-text";
|
|
24406
24411
|
text.textContent = this.playButtonText;
|
|
24407
|
-
buttonElement.appendChild(text);
|
|
24408
24412
|
}
|
|
24409
24413
|
return buttonElement;
|
|
24410
24414
|
};
|
|
@@ -25713,11 +25717,11 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
25713
25717
|
if (showGrid || showAll) {
|
|
25714
25718
|
for (let r = 0; r < this.rows + 1; r++) {
|
|
25715
25719
|
const yOffset = vec(0, r * this.tileHeight * this.scale.y);
|
|
25716
|
-
gfx.drawLine(pos.add(yOffset), pos.add(vec(width, yOffset.y)), gridColor, gridWidth);
|
|
25720
|
+
gfx.debug.drawLine(pos.add(yOffset), pos.add(vec(width, yOffset.y)), { color: gridColor, lineWidth: gridWidth });
|
|
25717
25721
|
}
|
|
25718
25722
|
for (let c = 0; c < this.columns + 1; c++) {
|
|
25719
25723
|
const xOffset = vec(c * this.tileWidth * this.scale.x, 0);
|
|
25720
|
-
gfx.drawLine(pos.add(xOffset), pos.add(vec(xOffset.x, height)), gridColor, gridWidth);
|
|
25724
|
+
gfx.debug.drawLine(pos.add(xOffset), pos.add(vec(xOffset.x, height)), { color: gridColor, lineWidth: gridWidth });
|
|
25721
25725
|
}
|
|
25722
25726
|
}
|
|
25723
25727
|
if (showAll || showColliderBounds || showColliderGeometry) {
|
|
@@ -25729,7 +25733,7 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
25729
25733
|
const bounds = collider.localBounds;
|
|
25730
25734
|
const pos2 = collider.worldPos.sub(this.pos);
|
|
25731
25735
|
if (showColliderBounds) {
|
|
25732
|
-
gfx.
|
|
25736
|
+
gfx.debug.drawRect(pos2.x, pos2.y, bounds.width, bounds.height, { color: colliderBoundsColor });
|
|
25733
25737
|
}
|
|
25734
25738
|
}
|
|
25735
25739
|
gfx.restore();
|
|
@@ -27092,17 +27096,15 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
27092
27096
|
cursor = cursor.add(lineHeight);
|
|
27093
27097
|
}
|
|
27094
27098
|
if (txSettings.showAll || txSettings.showRotation) {
|
|
27095
|
-
this._graphicsContext.drawLine(
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
|
|
27099
|
-
2
|
|
27100
|
-
);
|
|
27099
|
+
this._graphicsContext.debug.drawLine(Vector.Zero, Vector.fromAngle(tx.rotation).scale(20).add(Vector.Zero), {
|
|
27100
|
+
color: txSettings.rotationColor,
|
|
27101
|
+
lineWidth: 2
|
|
27102
|
+
});
|
|
27101
27103
|
this._graphicsContext.debug.drawText(`rot deg(${toDegrees(tx.rotation).toFixed(2)})`, cursor);
|
|
27102
27104
|
cursor = cursor.add(lineHeight);
|
|
27103
27105
|
}
|
|
27104
27106
|
if (txSettings.showAll || txSettings.showScale) {
|
|
27105
|
-
this._graphicsContext.drawLine(Vector.Zero, tx.scale
|
|
27107
|
+
this._graphicsContext.debug.drawLine(Vector.Zero, tx.scale, { color: txSettings.scaleColor, lineWidth: 2 });
|
|
27106
27108
|
}
|
|
27107
27109
|
}
|
|
27108
27110
|
debugDraw = entity.get(DebugGraphicsComponent);
|
|
@@ -27119,7 +27121,11 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
27119
27121
|
body = entity.get(BodyComponent);
|
|
27120
27122
|
if (body) {
|
|
27121
27123
|
if (bodySettings.showAll || bodySettings.showCollisionGroup) {
|
|
27122
|
-
this._graphicsContext.debug.drawText(`collision group(${body.group.name})`, cursor);
|
|
27124
|
+
this._graphicsContext.debug.drawText(`collision group name(${body.group.name}))`, cursor);
|
|
27125
|
+
cursor = cursor.add(lineHeight);
|
|
27126
|
+
this._graphicsContext.debug.drawText(` mask(0x${(body.group.mask >>> 0).toString(16)})`, cursor);
|
|
27127
|
+
cursor = cursor.add(lineHeight);
|
|
27128
|
+
this._graphicsContext.debug.drawText(` category(0x${(body.group.category >>> 0).toString(16)})`, cursor);
|
|
27123
27129
|
cursor = cursor.add(lineHeight);
|
|
27124
27130
|
}
|
|
27125
27131
|
if (bodySettings.showAll || bodySettings.showCollisionType) {
|
|
@@ -27148,11 +27154,17 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
27148
27154
|
if (motion) {
|
|
27149
27155
|
if (motionSettings.showAll || motionSettings.showVelocity) {
|
|
27150
27156
|
this._graphicsContext.debug.drawText(`vel${motion.vel.toString(2)}`, cursor.add(tx.globalPos));
|
|
27151
|
-
this._graphicsContext.drawLine(tx.globalPos, tx.globalPos.add(motion.vel),
|
|
27157
|
+
this._graphicsContext.debug.drawLine(tx.globalPos, tx.globalPos.add(motion.vel), {
|
|
27158
|
+
color: motionSettings.velocityColor,
|
|
27159
|
+
lineWidth: 2
|
|
27160
|
+
});
|
|
27152
27161
|
cursor = cursor.add(lineHeight);
|
|
27153
27162
|
}
|
|
27154
27163
|
if (motionSettings.showAll || motionSettings.showAcceleration) {
|
|
27155
|
-
this._graphicsContext.drawLine(tx.globalPos, tx.globalPos.add(motion.acc),
|
|
27164
|
+
this._graphicsContext.debug.drawLine(tx.globalPos, tx.globalPos.add(motion.acc), {
|
|
27165
|
+
color: motionSettings.accelerationColor,
|
|
27166
|
+
lineWidth: 2
|
|
27167
|
+
});
|
|
27156
27168
|
}
|
|
27157
27169
|
}
|
|
27158
27170
|
colliderComp = entity.get(ColliderComponent);
|
|
@@ -33602,7 +33614,7 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
|
|
|
33602
33614
|
this._count += count;
|
|
33603
33615
|
}
|
|
33604
33616
|
}
|
|
33605
|
-
const EX_VERSION = "0.32.0-alpha.
|
|
33617
|
+
const EX_VERSION = "0.32.0-alpha.16+07ccaa0";
|
|
33606
33618
|
polyfill();
|
|
33607
33619
|
exports2.ActionCompleteEvent = ActionCompleteEvent;
|
|
33608
33620
|
exports2.ActionContext = ActionContext;
|