Tsukikage Castle Town: A Sengoku Town of Rooftops, Temples and Rice Terraces, with a Town Builder
README.md
TownBuilder
Builds, restyles and tears down a whole castle town from its settings, joining the other modules: TownLayout for the plan, TownGround for the land, TownScatter for the placements, TownRender for drawing and TownColliders for collision, plus entities for the specials (the turning water wheel) and the festival lantern strings from sengokuProps' SmallGen. TownBuilder.build(opts) (yields) answers a town with plan, ground, placed, stats (counts, timings and fingerprint), town:update(dt), town:setLook(look), town:setQuality(q), town:stop(name), town:moveSpawns() and town:destroy(). TownBuilder.planFor(opts) answers the plan alone with no engine work, TownBuilder.keyFor(opts) the settings key, TownBuilder.props() sengokuProps' catalog when installed, and hold, held and release keep a built town across a component reload. TownBuilder.active is the town Atmos, Footsteps and TownNav read. Nothing is saved: everything is computed from the settings on every machine. Called by the CastleTown component, and directly from code.