novi trgovc
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user