You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
🆙 cleanup and small fix to the json
This commit is contained in:
@@ -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({
|
||||
|
||||
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user