CLEAN WORLD: Removed ALL terrain elevation - only flat grass platform + water river (no stone/dirt/sand hills)
This commit is contained in:
@@ -367,24 +367,11 @@ class TerrainSystem {
|
||||
const ny = y * 0.1;
|
||||
const elevation = this.noise.noise(nx, ny);
|
||||
|
||||
// SIMPLE TERRAIN - samo grass (brez elevation/stone/hills)
|
||||
let terrainType = this.terrainTypes.GRASS_FULL;
|
||||
|
||||
// Edges of WORLD
|
||||
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; // 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;
|
||||
}
|
||||
// Edges of WORLD -也 grass
|
||||
// (removed elevation-based terrain - user wants clean platform)
|
||||
|
||||
// Farm Override - ZELENA PLATFORMA!
|
||||
if (Math.abs(x - FARM_CENTER_X) <= FARM_SIZE / 2 && Math.abs(y - FARM_CENTER_Y) <= FARM_SIZE / 2) {
|
||||
|
||||
Reference in New Issue
Block a user