phase 12 koncxana

This commit is contained in:
2025-12-08 14:16:24 +01:00
parent f3d476e843
commit 81a7895c10
11 changed files with 547 additions and 39 deletions

View File

@@ -277,7 +277,12 @@ class TerrainSystem {
if (x < 3 || x >= this.width - 3 || y < 3 || y >= this.height - 3) {
terrainType = this.terrainTypes.GRASS_FULL;
} else {
if (elevation < -0.6) terrainType = this.terrainTypes.WATER;
if (elevation < -0.6) terrainType = this.terrainTypes.WATER; // Deep Ocean
else if (elevation < -0.4 && Math.random() < 0.2) {
// ISOLATED ISLANDS (Nodes)
// If we are in deep water but get random bump -> Island
terrainType = this.terrainTypes.SAND;
}
else if (elevation > 0.1) terrainType = this.terrainTypes.SAND;
else if (elevation > 0.2) terrainType = this.terrainTypes.GRASS_FULL;
else if (elevation > 0.3) terrainType = this.terrainTypes.GRASS_TOP;