🆙 cleanup and small fix to the json

This commit is contained in:
duckietm
2026-02-05 13:42:27 +01:00
parent 17ae1bd644
commit bed34615c1
4 changed files with 2 additions and 34 deletions
@@ -413,7 +413,6 @@ export class RoomPlane implements IRoomPlane
const animationLayers: PlaneVisualizationAnimationLayer[] = [];
if(planeType === RoomPlane.TYPE_LANDSCAPE && planeVisualization?.allLayers)
{
// Always use the room collection for animation assets (clouds etc.) since they are stored there
const animationAssetCollection = roomCollection;
for(const layer of planeVisualization.allLayers)
{
@@ -554,7 +553,6 @@ export class RoomPlane implements IRoomPlane
if(this._lastLandscapeDebugSignature !== landscapeDebugSignature)
{
this._lastLandscapeDebugSignature = landscapeDebugSignature;
console.debug('[RoomPlane] Loaded landscape background', landscapeDebugPayload);
}
this._planeSprite = new TilingSprite({
@@ -120,25 +120,21 @@ export class PlaneVisualizationAnimationLayer
const assetWidth = item.bitmapData.width;
const assetHeight = item.bitmapData.height;
// Render at primary position
if(this.isVisible(point.x, point.y, assetWidth, assetHeight, canvas.width, canvas.height))
{
this.renderSprite(item, point.x, point.y, canvas);
}
// Wrap horizontally (left side)
if(this.isVisible(point.x - maxX, point.y, assetWidth, assetHeight, canvas.width, canvas.height))
{
this.renderSprite(item, point.x - maxX, point.y, canvas);
}
// Wrap vertically (top side)
if(this.isVisible(point.x, point.y - maxY, assetWidth, assetHeight, canvas.width, canvas.height))
{
this.renderSprite(item, point.x, point.y - maxY, canvas);
}
// Wrap both (top-left corner)
if(this.isVisible(point.x - maxX, point.y - maxY, assetWidth, assetHeight, canvas.width, canvas.height))
{
this.renderSprite(item, point.x - maxX, point.y - maxY, canvas);