dreva in kamni top

This commit is contained in:
2025-12-07 22:32:45 +01:00
parent 974141c08c
commit 6b8f9aee66
13 changed files with 384 additions and 90 deletions

View File

@@ -493,7 +493,10 @@ class NPC {
if (!this.sprite) return;
if (this.lastDepthY === undefined || Math.abs(this.sprite.y - this.lastDepthY) > 0.1) {
this.sprite.setDepth(this.sprite.y);
const layerBase = this.iso.LAYER_OBJECTS || 200000;
const depth = layerBase + this.sprite.y;
this.sprite.setDepth(depth);
this.lastDepthY = this.sprite.y;
// Update attached elements depth