Terrain Generation

Maps are generated using layered noise patterns. Forests, mountains, and hills each use separate simplex noise with different frequencies. Mountains form along ridges where noise gradient is low (flat peaks). Hills appear as foothills near mountain ranges or from their own noise layer. Forests fill remaining open terrain above a noise threshold.

Town Forest Ring
Towns are always surrounded by a forest ring 3-6 tiles away, giving each nation forest cover for defense and unit movement. A 2-tile exclusion zone around towns prevents terrain features from blocking early expansion.

Layer Interaction
The noise layers interact: foothills suppress forest placement near mountains, creating natural biome transitions. Ridge detection uses gradient analysis to form mountain chains rather than scattered peaks.

How it connects

See also

Tags

Home