CLEAN WORLD: Removed ALL terrain elevation - only flat grass platform + water river (no stone/dirt/sand hills)

This commit is contained in:
2025-12-11 12:51:18 +01:00
parent c9b708e33f
commit 2216624a63

View File

@@ -367,24 +367,11 @@ class TerrainSystem {
const ny = y * 0.1; const ny = y * 0.1;
const elevation = this.noise.noise(nx, ny); const elevation = this.noise.noise(nx, ny);
// SIMPLE TERRAIN - samo grass (brez elevation/stone/hills)
let terrainType = this.terrainTypes.GRASS_FULL; let terrainType = this.terrainTypes.GRASS_FULL;
// Edges of WORLD // Edges of WORLD -也 grass
if (x < 3 || x >= this.width - 3 || y < 3 || y >= this.height - 3) { // (removed elevation-based terrain - user wants clean platform)
terrainType = this.terrainTypes.GRASS_FULL;
} else {
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;
else if (elevation > 0.7) terrainType = this.terrainTypes.DIRT;
else if (elevation > 0.85) terrainType = this.terrainTypes.STONE;
}
// Farm Override - ZELENA PLATFORMA! // Farm Override - ZELENA PLATFORMA!
if (Math.abs(x - FARM_CENTER_X) <= FARM_SIZE / 2 && Math.abs(y - FARM_CENTER_Y) <= FARM_SIZE / 2) { if (Math.abs(x - FARM_CENTER_X) <= FARM_SIZE / 2 && Math.abs(y - FARM_CENTER_Y) <= FARM_SIZE / 2) {