This commit is contained in:
2025-12-08 11:28:44 +01:00
parent b750f320fc
commit 3336b59e7d
7 changed files with 155 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ class LootChest {
// Create chest sprite (using existing chest texture)
this.sprite = this.scene.add.sprite(x, y, 'chest');
this.sprite.setOrigin(0.5, 1);
this.sprite.setScale(0.1); // Tiny size!
this.sprite.setDepth(this.scene.iso.getDepth(this.gridX, this.gridY, this.scene.iso.LAYER_OBJECTS));
// Golden glow for unopened chests

View File

@@ -21,6 +21,7 @@ class ZombieSpawner {
// Spawner sprite (dark portal/grave)
this.sprite = this.scene.add.sprite(x, y, 'gravestone');
this.sprite.setOrigin(0.5, 1);
this.sprite.setScale(0.1); // Tiny size!
this.sprite.setDepth(this.scene.iso.getDepth(this.gridX, this.gridY, this.scene.iso.LAYER_OBJECTS));
this.sprite.setTint(0x440044); // Purple tint for spawner