phase 12 koncxana
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user