Skip to content

five-on-it / packages/catalogue/src/region/build

packages/catalogue/src/region/build ​

A region built from its spec: the corners' levels solved, its roads routed and the ground meshed and graded to them, a deck under every bridge, its lakes' water and its volcanoes' lava (water.ts), trees and rocks strewn by the seed (none on the spawn apron, in the water nor on a road; in groves of the biome's own kinds when its details are rich, every tile's plot dressed as well, plots.ts, its ponds dug and filled), its landuse areas painted and dressed (landuse.ts), the players' spawn points on the apron, the named places (every tile's middle, every feature) and a map in text for whoever wrote the spec, with every problem found, its path in the spec. Deterministic: the same spec and seed give the same region. The assembler (@foi/tools' region-level, the worker) writes it out as a level's own kit and its recipe.

Interfaces ​

Functions ​