REMOVE: City walls and ruins - clean world with only grass platform and water river

This commit is contained in:
2025-12-11 12:47:40 +01:00
parent ecf81b78a2
commit c9b708e33f

View File

@@ -407,24 +407,23 @@ class TerrainSystem {
terrainType = this.terrainTypes.WATER; // VODA!
}
// City Override
if (x >= CITY_START_X && x < CITY_START_X + CITY_SIZE &&
y >= CITY_START_Y && y < CITY_START_Y + CITY_SIZE) {
// City Override - DISABLED (User request: no walls)
// if (x >= CITY_START_X && x < CITY_START_X + 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
this.tiles[y][x] = {