REMOVE: City walls and ruins - clean world with only grass platform and water river
This commit is contained in:
@@ -407,24 +407,23 @@ class TerrainSystem {
|
|||||||
terrainType = this.terrainTypes.WATER; // VODA!
|
terrainType = this.terrainTypes.WATER; // VODA!
|
||||||
}
|
}
|
||||||
|
|
||||||
// City Override
|
// City Override - DISABLED (User request: no walls)
|
||||||
if (x >= CITY_START_X && x < CITY_START_X + CITY_SIZE &&
|
// if (x >= CITY_START_X && x < CITY_START_X + CITY_SIZE &&
|
||||||
y >= CITY_START_Y && y < CITY_START_Y + CITY_SIZE) {
|
// y >= CITY_START_Y && y < CITY_START_Y + CITY_SIZE) {
|
||||||
|
// const isEdge = (x === CITY_START_X ||
|
||||||
|
// x === CITY_START_X + CITY_SIZE - 1 ||
|
||||||
|
// y === CITY_START_Y ||
|
||||||
|
// y === CITY_START_Y + CITY_SIZE - 1);
|
||||||
|
// if (isEdge) {
|
||||||
|
// terrainType = { name: 'WALL_EDGE', color: 0x505050, solid: true };
|
||||||
|
// } else {
|
||||||
|
// terrainType = this.terrainTypes.PAVEMENT;
|
||||||
|
// if (Math.random() < 0.15) {
|
||||||
|
// terrainType = this.terrainTypes.RUINS;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
const isEdge = (x === CITY_START_X ||
|
|
||||||
x === CITY_START_X + CITY_SIZE - 1 ||
|
|
||||||
y === CITY_START_Y ||
|
|
||||||
y === CITY_START_Y + CITY_SIZE - 1);
|
|
||||||
|
|
||||||
if (isEdge) {
|
|
||||||
terrainType = { name: 'WALL_EDGE', color: 0x505050, solid: true };
|
|
||||||
} else {
|
|
||||||
terrainType = this.terrainTypes.PAVEMENT;
|
|
||||||
if (Math.random() < 0.15) {
|
|
||||||
terrainType = this.terrainTypes.RUINS;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create Tile Data
|
// Create Tile Data
|
||||||
this.tiles[y][x] = {
|
this.tiles[y][x] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user