Chairshift GP
Commits
Every published commit of this world, on every branch, newest first.
5bdfb0c2a6showcase: gameplay stills and clips for the world pagea3b4fd5f8ffix: track and combat rebuild the state a hot reload emptied; add the player READMEa70e499b20fix: the circuit the racers drive is the circuit on the road, and the crates come back
Two slices lost the state they were holding when a neighbour's edit reloaded
them, and neither noticed:
- track.module was holding an empty centreline, so the shared racing line had
fallen back to its 509 m default while the 1121 m HARBOUR NIGHT road stood
on screen. Every chair was driving a circuit that was not there. The guard
that re-publishes the line now rebuilds it from the circuit description
first, which is the thing that actually defines it.
- combat.module was holding an empty crate list and an empty round pool, so
ten crates stood on the road arming nobody and Space did nothing. The slice
now notices it is empty and rebuilds itself.
Plus design/README.md: what the game is and how to play it.122dead3c1field: hold the lap count against a jumping lap fraction, and keep the bus handles where a reload can find them
---
field: the grid, the lights, the flag and three rivals that race for it0221734965field: a racing line the rivals really drive, and a race that refuses an impossible lap
---
racer: the chair component's README names what it animates1e5b55075aracer: a chair with a real slide, a boost that shoves the camera, and a racing-wheelchair bodyda8dd8a5cbcombat: the missile that decides places
Crates arm you, and Space spends the round on the racer ahead.
- A missile that flies the ROAD: far from its target it reads the racing
line ahead of itself and slides toward the victim's line, so it snakes
through the corners instead of burying itself in a barrier. Inside lock
range it goes straight for where the chair will be, leading its speed.
- Barriers CONTAIN a round rather than killing it, so a shot fired from a
chair a metre onto the run-off still counts.
- A swept proximity fuse: at 72 m/s a frame is three metres, so impact is
the closest approach across the whole step, not where the step ended.
- Missiles, blasts and crates all come out of pools built once, because
adding a Model component costs milliseconds and a trigger cannot wait.
- Crate respawns run on the slice's OWN clock, not GP.state.clock, which
the race director rewinds at every start - a crate timed off the race
clock was taken once and never came back.
- Rivals shoot too, after a beat of hesitation and with a cooldown, so a
place is never safe.
- Leading the race, the trigger keeps the round and says NOTHING AHEAD.
Verified live: armed from a crate in 0.09 s and again at exactly the 8.0 s
respawn, three cycles running; four launches at 60 m and 150 m on the
1121 m circuit all connected and spun the victim; and a hit on VOSS turned
1.VOSS 2.YOU into 1.YOU 2.VOSS in the standings.d39b8f1134track: HARBOUR NIGHT — an eleven-corner floodlit street circuit
Replaces the seed's generated loop with a designed 1121 m circuit: a closed
polygon of corner vertices, each fitted with an arc of a stated radius, so
the lap closes by construction and every corner has a radius you can feel.
216 m pit straight, T1 MARINA r20, T2 QUAYSIDE r34, T3/T4 CHICANE r13,
T5 SWEEPER r70 (97 m of one radius), T6 KINK r55, 135 m north straight,
T7 CATHEDRAL r26, T8 HAIRPIN r15 (40 m of arc), T9 RAMPART r16,
T10 DOCKSIDE r30, T11 HARBOUR r30.
The road, kerbs, walls, lit panels and all the scenery are runtime meshes,
one per material — 19 mesh entities, 26 floodlights and 13 lit boards for a
whole circuit and the city around it, instead of several hundred cubes.
Dressed so a corner is recognisable without a map: pit lane and garages,
two grandstands, the marina and its boats, the container yard, three
sponsor arches, the cathedral spire, the hotel the hairpin wraps, the dock
cranes, the rampart, tyre walls, escape roads, and a numbered board on
every corner's approach.
Barriers stand at halfWidth + 2 — the same number the chair and the rivals
clamp to — so the wall a driver hits is the wall a driver sees.
Night is a post-process grade this slice owns (ACES, bloom, saturation,
vignette) plus its own floodlights and emissive panels; it touches none of
the scene's lights.
Track.update re-publishes the racing line if the shared module reloads and
resets it, so a neighbour's edit can no longer leave every slice driving a
circuit that is not the one on screen.157157a679hud: the driver's screen, the ceremony, and the sound of it
Telemetry, ceremony and impact are three screens on three refresh rates, so a
one-shot entrance is never cut short by a per-frame re-register:
- gp_hud (20Hz) - position/lap/clock, a standings tower with gaps in metres of
road, an SVG speed dial, the drift-charge meter across its three tiers as the
hero element, the banked-boost bar, and a missile bay that names the racer it
is locked onto.
- gp_hud_stage - the five starting lights, lap and notice banners, and the
result card with the full classification. Re-registered only when its content
changes, and every transient node carries its own id so its entrance plays.
- gp_hud_flash - the impact layer: a hit drenches the screen red, shakes it and
says so, then tears itself down.
game/hud_sfx.module drives twelve cues through one Audio source's playOneShot,
puts ears on the play camera when the scene has none, and goes quiet rather
than failing when a clip is missing.
README.md is the world's front page: what the game is, the controls, how to
drift for boost, how the missile works, and how to read the screen.ad40e65a09field: rivals that drive, and the ceremony around them