inventori
This commit is contained in:
@@ -342,12 +342,13 @@ class GameScene extends Phaser.Scene {
|
||||
console.log('🌾 Solo farming mode - no NPCs');
|
||||
|
||||
// FPS Monitor (Performance)
|
||||
console.log('📊 Initializing FPS Monitor...');
|
||||
this.fpsMonitor = new FPSMonitor(this);
|
||||
// FPS Monitor - DISABLED (Using UnifiedStatsPanel instead)
|
||||
// console.log('📊 Initializing FPS Monitor...');
|
||||
// this.fpsMonitor = new FPSMonitor(this);
|
||||
|
||||
// Performance Monitor (Advanced)
|
||||
console.log('⚡ Initializing Performance Monitor...');
|
||||
this.performanceMonitor = new PerformanceMonitor(this);
|
||||
// Unified Stats Panel (Performance + Debug in one)
|
||||
console.log('📊 Initializing Unified Stats Panel...');
|
||||
this.unifiedStatsPanel = new UnifiedStatsPanel(this);
|
||||
|
||||
// NPC Spawner
|
||||
console.log('🧟 Initializing NPC Spawner...');
|
||||
@@ -454,6 +455,10 @@ class GameScene extends Phaser.Scene {
|
||||
|
||||
// Tutorial System (shows keyboard shortcuts)
|
||||
this.tutorialSystem = new TutorialSystem(this);
|
||||
|
||||
// Full Inventory UI (24 slots, I key to open)
|
||||
this.fullInventoryUI = new FullInventoryUI(this);
|
||||
|
||||
this.legacySystem = new LegacySystem(this);
|
||||
|
||||
// Initialize Sound Manager
|
||||
@@ -605,9 +610,9 @@ class GameScene extends Phaser.Scene {
|
||||
// Auto-load if available (DISABLED in SaveSystem!)
|
||||
this.saveSystem.loadGame(); // Vrne false - ne naloži save-a!
|
||||
|
||||
// Debug Text
|
||||
this.add.text(10, 10, 'NovaFarma Alpha v0.6', { font: '16px monospace', fill: '#ffffff' })
|
||||
.setScrollFactor(0).setDepth(10000);
|
||||
// Debug Text - REMOVED (Version shown in UnifiedStatsPanel)
|
||||
// this.add.text(10, 10, 'NovaFarma Alpha v0.6', { font: '16px monospace', fill: '#ffffff' })
|
||||
// .setScrollFactor(0).setDepth(10000);
|
||||
|
||||
console.log('✅ GameScene ready - FAZA 20 (Full Features)!');
|
||||
|
||||
@@ -1007,24 +1012,14 @@ class GameScene extends Phaser.Scene {
|
||||
if (npc.update) npc.update(delta);
|
||||
}
|
||||
|
||||
// Debug Info
|
||||
if (this.player) {
|
||||
const playerPos = this.player.getPosition();
|
||||
const uiScene = this.scene.get('UIScene');
|
||||
if (uiScene && uiScene.debugText) {
|
||||
const activeCrops = this.terrainSystem && this.terrainSystem.cropsMap ? this.terrainSystem.cropsMap.size : 0;
|
||||
const dropsCount = this.lootSystem ? this.lootSystem.drops.length : 0;
|
||||
const conn = this.multiplayerSystem && this.multiplayerSystem.isConnected ? '🟢 Online' : '🔴 Offline';
|
||||
// Update Unified Stats Panel
|
||||
if (this.unifiedStatsPanel) {
|
||||
this.unifiedStatsPanel.update(delta);
|
||||
}
|
||||
|
||||
uiScene.debugText.setText(
|
||||
`NovaFarma v0.6 [${conn}]\n` +
|
||||
`[F5] Save | [F9] Load | [K] Boss\n` +
|
||||
`Time: ${this.timeSystem ? this.timeSystem.gameTime.toFixed(1) : '?'}h\n` +
|
||||
`Active Crops: ${activeCrops}\n` +
|
||||
`Loot Drops: ${dropsCount}\n` +
|
||||
`Player: (${playerPos.x}, ${playerPos.y})`
|
||||
);
|
||||
}
|
||||
// Update Full Inventory UI
|
||||
if (this.fullInventoryUI) {
|
||||
this.fullInventoryUI.update();
|
||||
}
|
||||
|
||||
// Run Antigravity Engine Update
|
||||
|
||||
Reference in New Issue
Block a user