From c9b708e33fc5779d502821e5384dacd2f9c042fc Mon Sep 17 00:00:00 2001 From: NovaFarma Dev Date: Thu, 11 Dec 2025 12:47:40 +0100 Subject: [PATCH] REMOVE: City walls and ruins - clean world with only grass platform and water river --- src/systems/TerrainSystem.js | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/systems/TerrainSystem.js b/src/systems/TerrainSystem.js index cab1709..a9de2a0 100644 --- a/src/systems/TerrainSystem.js +++ b/src/systems/TerrainSystem.js @@ -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] = {