Tsukikage Castle Town: A Sengoku Town of Rooftops, Temples and Rice Terraces, with a Town Builder
README.md
TownScatter
Turns a plan and its ground into the list of everything that stands in the town. TownScatter.place(plan, ground, { density, props }) answers instances (kind, variant, position, yaw and scale of every prop, drawn instanced and collided), strings (festival lantern strings with their ends and sag), specials (props that need an entity of their own, such as the water wheel), climbs (the deliberate climb-ups) and the lantern lights Atmos lights at night. It applies the scatter rules: a house on every plot facing its street, noren and chochin on merchants and the market, a climb-up (rice bales, hand cart, small stall or barrels) against low front eaves with a chance set by density, stalls on both kerbs of the market street, lantern strings every 8 m on the market street and every 12 m on the main street, wells and firewood in back lanes, the castle's walls, gates, towers, revetments, keep and hall, the temple's gate, hall, pagoda, bell tower and lantern rows, rice in every flooded paddy with the farm and water wheel, the bridges and reeds on the river, and the bamboo groves. Every choice comes from Noise. Called by TownBuilder.