Expand description
Procedural world generation framework.
Generates entire mathematical realities: tectonic plates, erosion, climate, biomes, rivers, caves, settlements, history, languages, mythology, artifacts, and genetics — all from equations.
Modules§
- artifacts
- Artifact generation — items with histories tied to cultures and events.
- biomes
- Biome classification from climate data.
- caves
- Cave system generation — 3D cellular automata.
- climate
- Climate simulation — atmospheric circulation driven by heat equation PDE.
- erosion
- Hydraulic and thermal erosion simulation.
- genetics
- DNA/genetics system — heritable traits for procedural creatures.
- history
- History generation — agent-based civilization simulation.
- language
- Language generation — phonology, morphology, syntax, vocabulary.
- mythology
- Mythology generation — narrative grammars producing creation myths, hero stories, and prophecies from civilization and language data.
- rivers
- River generation — water flow simulation from rainfall to ocean.
- settlements
- Settlement generation — L-system road networks + building placement.
- tectonics
- Tectonic plate simulation — rigid body plates on a 2D grid.
Structs§
- Generated
World - The complete generated world.
- Grid2D
- A 2D heightfield grid used across worldgen systems.
- GridPos
- 2D grid coordinate.
- Rng
- Simple deterministic RNG (xoshiro256**).
- World
GenParams - Master world generation parameters.
- World
Seed - Master world seed — all generation derives from this.
Functions§
- generate_
world - Generate a complete world from parameters.