kockasta mapa
This commit is contained in:
@@ -17,6 +17,9 @@ class GameScene extends Phaser.Scene {
|
||||
|
||||
create() {
|
||||
console.log('🎮 GameScene: Initialized!');
|
||||
|
||||
// Generate procedural textures
|
||||
new TextureGenerator(this).generateAll();
|
||||
window.gameState.currentScene = 'GameScene';
|
||||
|
||||
const width = this.cameras.main.width;
|
||||
@@ -28,6 +31,9 @@ class GameScene extends Phaser.Scene {
|
||||
// Initialize Isometric Utils
|
||||
this.iso = new IsometricUtils();
|
||||
|
||||
// Initialize Spatial Grid
|
||||
this.spatialGrid = new SpatialGrid(10);
|
||||
|
||||
// Inicializiraj terrain sistem - 100x100 mapa
|
||||
console.log('🌍 Initializing terrain...');
|
||||
try {
|
||||
@@ -101,6 +107,7 @@ class GameScene extends Phaser.Scene {
|
||||
|
||||
this.statsSystem = new StatsSystem(this);
|
||||
this.inventorySystem = new InventorySystem(this);
|
||||
this.lootSystem = new LootSystem(this);
|
||||
this.interactionSystem = new InteractionSystem(this);
|
||||
this.farmingSystem = new FarmingSystem(this);
|
||||
this.buildingSystem = new BuildingSystem(this);
|
||||
@@ -205,6 +212,7 @@ class GameScene extends Phaser.Scene {
|
||||
// Update Systems
|
||||
// TimeSystem update removed (handled by WeatherSystem)
|
||||
if (this.statsSystem) this.statsSystem.update(delta);
|
||||
if (this.lootSystem) this.lootSystem.update(delta); // Loot System Update
|
||||
if (this.interactionSystem) this.interactionSystem.update(delta);
|
||||
if (this.farmingSystem) this.farmingSystem.update(delta);
|
||||
// DayNight update removed (handled by WeatherSystem)
|
||||
|
||||
Reference in New Issue
Block a user