cubeforge 0.4.3 → 0.4.4

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3264,7 +3264,7 @@ var Canvas2DRenderer = class {
3264
3264
  }
3265
3265
  ctx;
3266
3266
  clear(color) {
3267
- if (color) {
3267
+ if (color && color !== "transparent") {
3268
3268
  this.ctx.fillStyle = color;
3269
3269
  this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
3270
3270
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cubeforge",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "React-first 2D browser game engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",