\ Phase 28 Session 5: Rivers & Lakes Complete - RiverSystem + LakeSystem with biome-aware water rendering"

This commit is contained in:
2025-12-15 19:23:57 +01:00
parent 61f968be6c
commit 2d0ef6d8b9
8 changed files with 949 additions and 8 deletions

View File

@@ -89,10 +89,24 @@ class GameScene extends Phaser.Scene {
this.transitionSystem = new TransitionSystem(this, this.biomeSystem);
console.log('✅ Transition System ready!');
// 🌊 PHASE 28 SESSION 5: RIVER SYSTEM
console.log('🌊 Initializing River System...');
this.riverSystem = new RiverSystem(500, 500, this.biomeSystem);
this.riverSystem.generateRivers();
console.log('✅ River System ready!');
// 🏞️ PHASE 28 SESSION 5: LAKE SYSTEM
console.log('🏞️ Initializing Lake System...');
this.lakeSystem = new LakeSystem(500, 500, this.biomeSystem);
this.lakeSystem.generateLakes(this.riverSystem);
console.log('✅ Lake System ready!');
// Connect systems to terrainSystem
this.terrainSystem.biomeSystem = this.biomeSystem;
this.terrainSystem.chunkManager = this.chunkManager;
this.terrainSystem.transitionSystem = this.transitionSystem;
this.terrainSystem.riverSystem = this.riverSystem;
this.terrainSystem.lakeSystem = this.lakeSystem;
console.log('✅ BiomeSystem & ChunkManager connected to terrainSystem');
await this.terrainSystem.generate();