five-on-it / packages/catalogue/src/region/towns
packages/catalogue/src/region/towns
A region's towns on its tiles: each one's footprint (its blocks' tiles and half a tile of verge round its outer streets: blocks × blockTiles + 1 tiles each way from at, its street lines through the middles of the tiles), what it must keep clear of (the rim, the spawn apron, the other towns, water and lava, mountains and volcanoes with their flanks, ski runs), the edges inside it whose step stays one level (its outermost tiles, where its ring street and the roads in run, and the tiles an avenue runs through), the corners its terraced districts level, and the sockets where a road of the region may end at it: the middles of its outer edges where a street line comes out, the ring's rounded corners aside. Pure and deterministic.