cubeforge 0.3.9 → 0.3.10
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1391,8 +1391,8 @@ function getUVRect(sprite) {
|
|
|
1391
1391
|
const { sx, sy, sw, sh } = sprite.frame;
|
|
1392
1392
|
return [sx / iw, sy / ih, sw / iw, sh / ih];
|
|
1393
1393
|
}
|
|
1394
|
-
const uw = sprite.tileX ? sprite.width / iw : 1;
|
|
1395
|
-
const vh = sprite.tileY ? sprite.height / ih : 1;
|
|
1394
|
+
const uw = sprite.tileX ? sprite.width / (sprite.tileSizeX ?? iw) : 1;
|
|
1395
|
+
const vh = sprite.tileY ? sprite.height / (sprite.tileSizeY ?? ih) : 1;
|
|
1396
1396
|
return [0, 0, uw, vh];
|
|
1397
1397
|
}
|
|
1398
1398
|
var RenderSystem = class {
|