podobi
This commit is contained in:
@@ -345,6 +345,15 @@ class GameScene extends Phaser.Scene {
|
||||
console.log('📊 Initializing FPS Monitor...');
|
||||
this.fpsMonitor = new FPSMonitor(this);
|
||||
|
||||
// Performance Monitor (Advanced)
|
||||
console.log('⚡ Initializing Performance Monitor...');
|
||||
this.performanceMonitor = new PerformanceMonitor(this);
|
||||
|
||||
// NPC Spawner
|
||||
console.log('🧟 Initializing NPC Spawner...');
|
||||
this.npcSpawner = new NPCSpawner(this);
|
||||
this.npcSpawner.spawnInitialNPCs();
|
||||
|
||||
// Easter Egg: Broken Scooter
|
||||
console.log('🛵 Spawning Scooter Easter Egg...');
|
||||
this.vehicles = [];
|
||||
@@ -608,6 +617,14 @@ class GameScene extends Phaser.Scene {
|
||||
}
|
||||
};
|
||||
|
||||
// TESTNA DREVESA IN KAMNI - Za testiranje
|
||||
console.log('🌳 Adding test trees and rocks near player...');
|
||||
this.terrainSystem.addDecoration(52, 50, 'tree_green');
|
||||
this.terrainSystem.addDecoration(48, 50, 'rock');
|
||||
this.terrainSystem.addDecoration(50, 52, 'tree_oak');
|
||||
this.terrainSystem.addDecoration(50, 48, 'rock_large');
|
||||
console.log('✅ Test decorations added at (50±2, 50±2)');
|
||||
|
||||
// Start Engine
|
||||
this.Antigravity_Start();
|
||||
}
|
||||
@@ -796,6 +813,17 @@ class GameScene extends Phaser.Scene {
|
||||
// FPS Monitor Update
|
||||
if (this.fpsMonitor) this.fpsMonitor.update();
|
||||
|
||||
// Performance Monitor Update
|
||||
if (this.performanceMonitor) this.performanceMonitor.update(delta);
|
||||
|
||||
// NPC Spawner Update
|
||||
if (this.npcSpawner) this.npcSpawner.update(delta);
|
||||
|
||||
// Update NPCs
|
||||
for (const npc of this.npcs) {
|
||||
if (npc.update) npc.update(delta);
|
||||
}
|
||||
|
||||
// Debug Info
|
||||
if (this.player) {
|
||||
const playerPos = this.player.getPosition();
|
||||
|
||||
Reference in New Issue
Block a user