rng(seed: number) → void
| arg | type | description |
|---|
| seed | number | |
range(a: number, b: number) → number
| arg | type | description |
|---|
| a | number | |
| b | number | |
int(a: number, b: number) → number
| arg | type | description |
|---|
| a | number | |
| b | number | |
chance(p: number) → boolean
| arg | type | description |
|---|
| p | number | |
solid(b: any, cx: number, cy: number, cz: number, sx: number, sy: number, sz: number) → void
Record a world-space solid for the collider pass.
| arg | type | description |
|---|
| b | any | |
| cx | number | |
| cy | number | |
| cz | number | |
| sx | number | |
| sy | number | |
| sz | number | |
lamp(b: any, x: number, y: number, z: number, power: number) → void
| arg | type | description |
|---|
| b | any | |
| x | number | |
| y | number | |
| z | number | |
| power | number | |
timberPanel(b: any, w: number, h: number, t: number, opts: any?) → void
Fabric pieces
A half-timbered wall panel: the daub infill, then the frame on top of it —
sill, head, corner posts, studs, and a pair of braces in the corners. This
is the piece that makes Lanternwake read as 1888 rather than as boxes: the
black frame is the drawing and the pale daub is the paper.
The wall lies in the local XY plane, facing +Z, `t` thick.
| arg | type | description |
|---|
| b | any | |
| w | number | |
| h | number | |
| t | number | |
| opts | any? | |
window(b: any, x: number, y: number, z: number, w: number, h: number, opts: any?) → void
A window: the opening's glass, a timber surround, and a shutter hanging off
one hinge. `lit` puts a mantle behind the glass.
| arg | type | description |
|---|
| b | any | |
| x | number | |
| y | number | |
| z | number | |
| w | number | |
| h | number | |
| opts | any? | |
door(b: any, x: number, y: number, z: number, w: number, h: number, openYaw: number?) → void
A plank door, standing open the way every door in this village stands open.
| arg | type | description |
|---|
| b | any | |
| x | number | |
| y | number | |
| z | number | |
| w | number | |
| h | number | |
| openYaw | number? | |
chimney(b: any, x: number, z: number, base: number, top: number, w: number) → void
A brick chimney stack with its pots.
| arg | type | description |
|---|
| b | any | |
| x | number | |
| z | number | |
| base | number | |
| top | number | |
| w | number | |
cottage(b: any, opts: any?) → void
Buildings
A fen cottage: half-timbered over a stone plinth, steep roof, one chimney,
windows on the lane side, and a door standing open into the dark.
Local +Z is the lane side. Origin is the centre of the footprint at ground.
| arg | type | description |
|---|
| b | any | |
| opts | any? | |
manor(b: any) → void
Thackeray Manor: three storeys of ashlar with a parapet, tall sash
windows, and the only building in Lanternwake that was ever proud.
church(b: any, opts: any?) → void
St Brannoc's: nave, porch, west tower and the broach spire that is the only
thing in the fen tall enough to find from anywhere. The spire is what the
camera keeps coming back to, so it is deliberately over-tall for the
building under it — which is exactly what a fen church looks like.
| arg | type | description |
|---|
| b | any | |
| opts | any? | |
mill(b: any) → void
The Drowned Mill: a timber mill house on staddle piers over the cut, with
an undershot wheel half in the water and the sluice gear that freed it.
well(b: any) → void
The Weeping Well: a stone drum, a timber frame over it, a windlass, and a
bucket that has been down there a long time.
lampPost(b: any, power: number?) → void
Street furniture
A cast-iron gas standard: fluted column, ladder bar, four-pane lantern with
a hood and a finial. `power` > 0 gives it a burning mantle.
| arg | type | description |
|---|
| b | any | |
| power | number? | |
grave(b: any, rng: any, tomb: boolean?) → void
A leaning headstone, or a table tomb if `tomb`.
| arg | type | description |
|---|
| b | any | |
| rng | any | |
| tomb | boolean? | |
wall(b: any, ax: number, az: number, bx: number, bz: number, h: number, rng: any) → void
A run of drystone churchyard wall with a coping course, following a line.
| arg | type | description |
|---|
| b | any | |
| ax | number | |
| az | number | |
| bx | number | |
| bz | number | |
| h | number | |
| rng | any | |
fence(b: any, ax: number, az: number, bx: number, bz: number, rng: any) → void
Post-and-rail fencing, half of it down.
| arg | type | description |
|---|
| b | any | |
| ax | number | |
| az | number | |
| bx | number | |
| bz | number | |
| rng | any | |
reeds(b: any, cx: number, cz: number, radius: number, count: number, rng: any) → void
A stand of reeds — crossed blades, double-sided, the fen's own fence.
| arg | type | description |
|---|
| b | any | |
| cx | number | |
| cz | number | |
| radius | number | |
| count | number | |
| rng | any | |
tree(b: any, rng: any) → void
A dead willow: the only tree the fen leaves standing, and not for long.
| arg | type | description |
|---|
| b | any | |
| rng | any | |
cart(b: any, rng: any) → void
A hand-cart, tipped where it was dropped. Every emptied village has one.
| arg | type | description |
|---|
| b | any | |
| rng | any | |
gate(b: any) → void
The manor's gate: two rusticated piers, ball finials, and a pair of
wrought-iron leaves standing open.
coachStop(b: any, rng: any) → void
The coach-stop: a milestone, a horse trough, and the mounting block that is
the last thing Vane stepped off.
| arg | type | description |
|---|
| b | any | |
| rng | any | |