city — everything standing on the peninsula that is not a landmark.
The hero buildings belong to the landmarks slice and this module keeps
clear of their anchors. What it builds is the fabric between them: the
street grid, the blocks of Jugendstil stucco with copper roofs and lit
windows, the park trees, the quays and the boats in the harbour, a tram
parked in a siding. Without it the board is a painted plate; with it the
board is a model of a city.
Every placement is drawn from one seeded generator, so the same Helsinki
is dressed the same way on every load and on every machine.
landRuns(path: { { number } }, step: number) → void
Break a path into the runs of it that are on land and clear of the tram
route, so a street never runs out over the water, across Töölönlahti, or
straight through a tile a pawn stands on.
| arg | type | description |
|---|
| path | { { number } } | |
| step | number | |
lay(path: { { number } }, width: number) → void
| arg | type | description |
|---|
| path | { { number } } | |
| width | number | |
windowPane(b: ?, cx: number, cy: number, cz: number, w: number, h: number, dirX: number, dirZ: number, hex: string) → void
| arg | type | description |
|---|
| b | ? | |
| cx | number | |
| cy | number | |
| cz | number | |
| w | number | |
| h | number | |
| dirX | number | |
| dirZ | number | |
| hex | string | |
building(b: ?, rand: ?, x: number, z: number, sx: number, sz: number, h: number) → void
One block of flats: a stucco body, a roof, and rows of windows on all
four faces. The lit ones are what make a toy city read as inhabited.
| arg | type | description |
|---|
| b | ? | |
| rand | ? | |
| x | number | |
| z | number | |
| sx | number | |
| sz | number | |
| h | number | |
pt(u: number, v: number, y: number) → void
| arg | type | description |
|---|
| u | number | |
| v | number | |
| y | number | |
tree(b: ?, rand: ?, x: number, z: number, scale: number) → void
| arg | type | description |
|---|
| b | ? | |
| rand | ? | |
| x | number | |
| z | number | |
| scale | number | |
groundDetail(b: ?) → void
The ground between the blocks: back yards, gravel courts, hedges and the
single trees a city has everywhere and a park has in a crowd. A flat
wash of one colour is what makes a model read as a plan, and this is
what breaks it up at the height the follow camera watches from.
boat(b: ?, rand: ?, x: number, z: number, len: number, yaw: number, hull: string) → void
| arg | type | description |
|---|
| b | ? | |
| rand | ? | |
| x | number | |
| z | number | |
| len | number | |
| yaw | number | |
| hull | string | |
p(u: number, v: number) → void
| arg | type | description |
|---|
| u | number | |
| v | number | |
parkedTram(b: ?, x: number, z: number, yaw: number) → void
A tram standing in a siding. Not a pawn: the pawns are the pieces slice's
and are four bright colours; these are the ordinary HKL green ones.
| arg | type | description |
|---|
| b | ? | |
| x | number | |
| z | number | |
| yaw | number | |
car(b: ?, rand: ?, x: number, z: number, yaw: number) → void
| arg | type | description |
|---|
| b | ? | |
| rand | ? | |
| x | number | |
| z | number | |
| yaw | number | |
bench(b: ?, x: number, z: number, yaw: number) → void
| arg | type | description |
|---|
| b | ? | |
| x | number | |
| z | number | |
| yaw | number | |
kiosk(b: ?, x: number, z: number, yaw: number, roof: string) → void
| arg | type | description |
|---|
| b | ? | |
| x | number | |
| z | number | |
| yaw | number | |
| roof | string | |