novi trgovc

This commit is contained in:
2025-12-07 23:21:12 +01:00
parent 6b8f9aee66
commit 22e7b1a6d2
7 changed files with 82 additions and 4 deletions

View File

@@ -74,6 +74,7 @@ class GameScene extends Phaser.Scene {
for (let i = 0; i < 3; i++) {
const randomX = Phaser.Math.Between(40, 60); // Closer to center
const randomY = Phaser.Math.Between(40, 60);
console.log(`👤 Spawning NPC type: ${npcTypes[i]} at (${randomX}, ${randomY})`);
const npc = new NPC(this, randomX, randomY, this.terrainOffsetX, this.terrainOffsetY, npcTypes[i]);
this.npcs.push(npc);
}