diff --git a/README.md b/README.md index d1a97d45..dc1b3494 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/rollaway/`: Overdrop (Back Room; formerly Rollaway, and the folder, saved data, stats names and the Leaderboards' `d: 'rollaway'` keep the old name), an endless single-player downhill runner (Three.js r128, no Firebase except stats.js). A heavy chrome ball drops on its own down a steep skyway of dark lit panels plunging through a city at night; the player only steers, and rolling over an edge or touching a hazard ends the run. **Slope and speed:** the course falls at about 38° to 43° (grade `dy/ds` around -0.75 to -0.95; the old track was about -0.07), with flatter shelves, steeper plunges, drop-offs and kickers. Speed is not scripted: when a module is laid down, its speed is worked out metre by metre from its own grade (`P.GA` of pull per unit of grade, against a drag set so the normal grade (`P.GB`) settles at `vTop(s)`, which rises from 22 m/s toward `P.VT1` 60 m/s over the first kilometres), plus speed pads (`c.pad`, a push) and brake strips (`c.brake`, extra drag). So a steeper stretch really is faster and a shelf really slows you, while the speed at every metre (`Track.V`) and the arrival time (`Track.TT`, `tr.tAt(s)`, inverse `tr.sAt(t)`) are still known in advance, and the ball's clock is set from its distance every step, so every moving hazard is exactly in phase. In practice: 20 m/s (about 80 km/h along the deck) at the gate, about 35 by 10 to 15 s, 50 by 40 s and 55 to 63 from about a minute on (all speeds are along the ground plan; the HUD shows km/h along the deck, a third more). A module that changes the grade must plan it (`c.grade(x0, x1, offset)`) before it asks for a speed or a time (`c.vx`, `c.T`); asking first is flagged as `late` and the tests fail on it. A bend over into something steeper must be long enough not to throw the ball (`c.crest`). Steering is a sideways force (`A_STEER` 28 m/s², 1.5× against the drift) damped by `GRIP` (4.2/s, 6.5 with no input); both grow by up to 40 % between 25 and 60 m/s (`STEER_K`), so the drift feels the same and the answers come quicker at speed. Curves pull outward by v²κ unless banked; walls and banks push back by gravity (`G` 22 m/s²); 35 % steering in the air. **Opening and pacing:** every run starts the same way: a dodge (one pylon) about 3 s in, a three-row weave from about 4.5 s, then the plunge (the deck bends over into a dive of about 50°, bottoms out and kicks the ball over a gap onto a landing off to one side) between about 8 and 12 s. After that modules are seeded; rests are short and most have a pylon in them, so there is never more than about 3 s without something to steer round. Difficulty (`diffAt`) starts at 0.22 and reaches 1 after 2,600 m; a breather (a flatter shelf with a ring of shards) comes every 950 m. 36 modules in four groups: rests (straight, banked turn, flat curve, S-bend, rollers, shelf), layout (narrow beam, tube, curving tube, fork, zigzag, eye, crossing beams, missing panels, stepping pads, tilting slabs, wall ride), air (kicker onto an offset landing, double gap, drop-offs, kicker onto islands, the plunge) and hazards (pylon slalom, pylon gates with one gap, sliders, hammers, hammers over a beam, crusher rhythm, rotors, moving walls, speed pad into a slalom, brake strip into fast crushers, a mixed gauntlet). The run-in before a module's first row, and the spacing between rows, are worked out from how far apart the ways through are (`leadTo`, `moveT`). **Checking it:** `RA.validate(track, metres)` follows every reachable state with 80 % steering, hazards 12 cm bigger and decks 6 cm narrower and reports any module nothing gets through; `RA.sight(track, s0, s1)` checks every hazard is in plain sight from the camera at least `P.SEE` (0.8 s) before the ball reaches it (no crest hides it); `new RA.Bot(track)` looks 1.5 s ahead. After changing a module or a physics number, run validate and sight in Node on a few hundred kilometres of seeds (the RA module between `// ==CORE==` and `// ==/CORE==` still has no DOM or Three.js in it). **Look:** night, neon and chrome (our own design, not modelled on any other game): a violet sky with stars, a magenta and amber horizon band, a slotted sun on the horizon and a skyline of far megastructures, all painted by one sky shader (and once into a panorama for reflections); towers that stand from far below and stream upward as you drop (one instanced box with a window shader, placed in 320 m cells away from the track); a dim lit city far below; specks of light fixed in the world round the camera and a light rain falling plumb; light frames over the deck every 36 m and invented holo glyph boards beside it. Several things are there to make the slope read in a single frame: rungs of light across the deck every 4 m (they bunch up as it dives), plumb masts beside the deck every 44 m ringed with level lights, short plumb beacons along every drop edge, a plumb warning light above each pylon, the rain, a pool of light the ball throws down the deck ahead of it, and a horizon and city that stay level while the deck drops under them. The deck is dark panels (one canvas texture: shade in red, faint circuit traces in green) lit by `neonMat`, a standard material that adds a per-vertex glow colour (`emi`): drop edges always glow cyan (a band and a light strip), safe walls end in a raised magenta rail, kickers have amber chevrons, beams a cyan centre line. Hazards are dark chrome with hot amber bands and white-hot parts, and read by shape and brightness as well as colour: pylons have pointed tips, sliders (rolling drums) and crushers carry bands, hammers are double cones on gantries, rotors have a spiked arm on a hub, moving walls a striped top with white posts at the gap. Shards (the gems) are pink octahedra with halos. The ball is a chrome sphere whose seam glows in its own colour, with a light trail; landings throw sparks and a shockwave ring, crashes a burst and a soft flash. Glow is all emissive colour and additive sprites (no post-processing). The camera sits above the deck behind the ball and pitches down most of the grade ahead, so the horizon stays near the top and the track falls away below it; field of view widens with speed. Reduce effects (on by default when the system asks for reduced motion) turns off speed streaks, motes, rain, the shockwave, the lean and the flash, and narrows the widening of the view. **Score:** distance times a multiplier that rises 0.1 per shard and 0.25 per close call (passing a hazard within 0.6 m) and settles back after 4 s. A milestone gate every 500 m; an amber strip with two BEST flags where your best run ended. **Balls** (cosmetic, by best distance on either track; the ids and distances are Rollaway's, the shown names are new): Ion (`lapis`), Flare (`sunstone`) 500 m, Cryo (`glacier`) 1,000 m, Circuit (`jade`) 1,500 m, Ember 2,000 m, Volt (`tiger`) 3,000 m, Nightfall 4,000 m, Prism (`pearl`) 5,000 m. **Audio** is all Web Audio, synthesised: a rolling hiss and a low turbine hum that climb with speed, rushing air, landing thumps with a zap, a close-call whoosh panned to the side, shard chimes up a C minor pentatonic, boost and brake sounds, and an original 124 BPM loop (pad, saw bass, kick and clap, hats, arpeggio) whose layers come in and whose filter opens as the speed rises; Volume, Music, Effects and Mute (M). **Controls:** A/D or the arrow keys (rebindable, `keybinds:rollaway`), optional mouse steering; touch: drag left and right anywhere (a floating stick, the default), or hold either side, and optional tilt; a sensitivity slider; R or Space restarts at once. **Drawing:** the deck is built in 10 m chunks (one rebuilt per frame at most, so no frame does much work) from a pool of meshes rewritten in place, pylons under it and the light frames are two instanced meshes, each hazard kind one instanced mesh, shards one plus one for their halos; a floating origin keeps numbers small. Graphics Auto / Low / Medium / High (`QP`: resolution, view distance, shadows on High only, how many towers and motes), plus `../autores.js`. **Saved in the browser only**, in Rollaway's keys and format: `rollaway:save` (`{v: 1, best, bestD, runs, gems, ball, daily: {day, best, bestD, g}, how, od: {best, bestD}}`) and `rollaway:set` (quality, sensitivity, reduce effects, volumes, mute, touch mode, tilt, mouse). `od` holds the bests on the new track; `best`/`bestD` are the classic Rollaway bests, kept and shown on the title as "Classic Rollaway best" but no longer raised; a daily best set on the new track has `g: 2`, and an older one from the same day is kept as `dailyC`. The Daily run's seed is now `hashStr('overdrop-daily-' + day)`. Stats hooks at the end of every run: `max('od-distance', metres)`, `max('od-score', score)`, `add('runs', 1)`; the Overdrop row in `../leaderboard.js` shows those, with the old `distance` and `score` kept as the classic Rollaway boards. **Spanish:** `rollaway/es.js` (ball names stay English); text built in code goes through `TX()`. In an automated browser `window.__ra` drives it (`startRun(daily, seed)`, `bot(true)`, `run(seconds, hz, draw)`, `state()`, `info()` for draw calls and triangles). - `e63334287a3deaa3/rampline/`: Rampline (Back Room), a low-poly stunt time-trial racer with a track builder, online boards and community tracks (Three.js; Firebase Realtime Database only for the boards and community tracks, under the prefix `rl`, plus stats.js). One small car, one track, the clock: 30 built-in tracks in four tiers (`TIERS`: Green, Blue, Red, Black), your own tracks from the builder, and tracks other players publish. Everything that isn't drawing is the `RL` module between `// ==CORE==` and `// ==/CORE==`, with no DOM or Three.js in it, so a Node script can run it on its own: the pieces (`PIECES`), building a track (`buildTrack`), the car physics (`newCar`, `step`), share codes, ghost recordings, the checks (`validate`), the track-writing cursor (`Course`), the tracks (`TRACKS`, `trackOf`) and the checking bot (`runBot`). **Pieces** sit on a grid of 10 m tiles and 2 m height steps with a quarter-turn (`{t, x, y, z, r, w}`: type, tile, height, turn, side walls); each has the tiles it covers (`fp`), how many height steps above it it keeps clear (`hh`) and its ports (where road leaves it). Pieces: straight, curves (tight, normal, wide, huge), S-bends left and right, slope, steep slope and long climb (+1, +2, +3 steps), climbing curves left and right (+1 step while turning), bump, two banked curves, boost pad, kicker and big ramp (no exit port: they launch you), loops leaning left and right, wall ride, narrow road, gap, platform, start, checkpoint, checkpoint ring (an arch instead of posts), finish, and scenery (tree, rock, arrow sign). The order of `PIECES` is part of the share-code format: only ever add to the end (the pieces from curveXL on were added with the handling pass). Raised road gets **pillars** down to the ground automatically (`pillars` in `buildTrack`), every 10 m or so, only where no other piece is below that tile and always below the road surface. **One set of triangles:** `buildTrack` turns every piece into triangles that are both the collision geometry (type 0 road, 1 solid; `FX` 1 marks a boost pad, 2 a slab end that meets another piece's (inside the road), 3 the side of a piece that twists) and, merged with one colour each, the single drawn mesh; positions are rounded to 1/1024 m. Pieces that twist (`tw`: the two banked curves and the wall ride) also keep, per road triangle, the surface's real normals, the twist of its quad, how far across the road each corner is and the way across (`X3`, `XD`), used only by the newer contact rules below. **Physics** (`PH`, `PHYS_V` 2, fixed 1/120 s step, only + − × ÷ and √ while stepping, so a recording of inputs replays to exactly the same run on any device): the car is a point riding 0.55 m above the road with two 0.75 m spheres for hitting things. **Contact rules** (`car.pv`; `PHYS_NOW` 3 for every new run, 2 for recordings from before the side-ramp fix, which replay with the old rules bit for bit; same car, same boards): on flat road, curves, slopes and loops the two are the same run for the same inputs, except where rules 2 hit a slab end. Rules 3 differ in four ways. (1) A road that twists climbs or drops along the way you drive anywhere off the line it twists round, by up to 40°, which the frame's up (`n`, what the driving uses, so banks and wall rides handle as before) doesn't know: the body now leans with the real surface (`car.bd`, `bodyPose`: where the car is drawn and where its spheres sit), so the nose no longer digs through the road into the slab's underside (a dead stop anywhere off the middle of a wall ride, and on the outside of a bank above about 200 km/h) and the car no longer sinks into or floats over the road by up to 0.8 m. (2) The ride height there follows the smooth surface through each quad's four corners instead of the ridge or dip its two triangles make (up to 13 cm, at every quad). (3) A car on the road never hits a slab end where two pieces join (it used to when its nose dipped below road level: landing nose-down near a join, or at the bottom of a slope above about 290 km/h: a dead stop, a shove or a bounce), nor the side of the twisting piece it is riding (the wall ride's low edge used to bounce cars back up the wall; now they drop off it). Open ends (a ramp's lip, the two sides of a gap) are as solid as ever, so jumps are unchanged. (4) The wall ride lifts its middle as it rolls up, which slid the road about 2 m sideways under a car that wasn't steering, towards the low edge; now a car on it keeps its place across the road (`laneKeep`). Not changed: too fast into a bank still throws you off at its exit, and the blunt start of a barrier after a piece with none (wall ride, loop, gap) still stops a car that hits it head-on. Acceleration 20 m/s² tapering to nothing at 82 m/s with drag: 0–100 km/h in 1.5 s, 0–200 in 3.8 s, top speed about 252 km/h. Steering lock and rate fall off with speed (full lock turns in 6 m at 30 km/h and about 55 m at 150 km/h), and the turn rate is capped a little above what the tyres hold, so holding full lock at speed slides a little. **Drifting:** let go of go and tap brake while steering at more than 50 km/h: the nose holds an angle set by the steering (`driftAng`), grip is a little higher than normal (`driftK`), so you get round a tight corner at speed (about 75 % of the grip turn's radius, for 3–8 % of your speed); it lasts while you keep steering and the car is sideways. Downforce grows with speed (`stick` plus `stickHi` above 30 m/s), which keeps you on loops, wall rides and most crests; the fastest cars still fly over sharp crests. A share of the road's turn at take-off carries into the air as spin (`carryW`); in the air the **air brake** (input 32, Space or Left Shift, or the brake) damps the spin and levels the car for the landing; landing square keeps your speed, crooked costs up to 70 % (with the air brake the bot's landings cost 2–5 %, without it up to 70 % and falls). Boost pads give 1.4 s of extra push up to 1.3 × the top speed. Walls take the speed into them, turn the nose along them and never push a car on the road upwards (barriers on banks and loops lean); of the speed along the wall a light brush keeps 96% and a square hit 40% (`walls()`; 92% and 35% until November 2026, eased a little because every touch felt costly once tight corners had real inside barriers). Falling off (or 6 s in the air) puts you back at the last checkpoint 0.25 s later with the speed you had there; Backspace does it at once. **A run that went back to a checkpoint doesn't count** (no best, ghost, medal, stats or board), and the HUD shows "Practice". Starting a track and R are both instant and plain (restart under a millisecond): no countdown, no camera move and no fade; the car waits on the line with the camera already in place, and the clock starts with your first drive key. The menu sits over a still view of a track. Splits against your best show at every checkpoint and at the finish. **Gates:** a checkpoint counts when you cross it either way; the finish only counts going forwards, once every checkpoint has been passed. **Tracks** are written with the `Course` cursor (`s`, `L`/`R` curves with `S`, `M`, `L`, `X` sizes, `sL`/`sR`, `bL`/`bR`, `up`/`down`, `climb`/`drop`, `cuL`/`cuR`/`cdL`/`cdR`, `bump`, `boost`, `ring`, `loop`, `wall`, `narrow`, `gap`, `ramp` + `jump(n, dy, speed cap)`, `plat`, `cp`, `fin`), each with its look (`th`). After changing a track or the physics, run the bot: it drives with the real `step` and only a player's keys (it slows for crests that lead into corners and for jumps' speed caps, uses the air brake, and never starts a drift by accident; `pv` picks the contact rules, and with rules 3 it doesn't steer against the wall ride's old sideways slide), in 13 styles; every track must be finished cleanly by at least one, and the same inputs must replay to the same time. `MED` ([builder, gold, silver, bronze] in ms) comes from it: builder is the bot's best clean time rounded up to 10 ms, gold 1.05 ×, silver 1.2 ×, bronze 1.45 ×, rounded up to 0.1 s. Built-in tracks run 24–49 s for the builder time. The 20 tracks from the first version got longer layouts (layout 2) with the handling pass: a best from the first layout is kept in the save as `pb[id].old = {t, m}` (shown on the track card as "Old layout", and its medal `m`, worked out with `OLD_MED`, still counts). **Looks:** three environments of our own, chosen per track (`th`, or Look in the builder): Summer valley, Snowy pass, Desert canyon (`THEME`: sky, fog, ground, hills, the colours of its light (`hs`, `hg`, `sun`, `em`, so hills and trees take the look's colours), its dust colour, and recolouring of trees, rocks and road sides). **Ghosts:** a ghost is a recording of inputs driven through the same physics once (`GTrack`, every step's pose kept, built a little ahead of where it's needed), so up to 10 race at once with almost no cost and never collide: your best (the Ghost setting) plus any you tick on a board. **Online** (signed in anonymously only when first used; the shared rules only let a player write their own node, which needs n, c, x, z, h, ts): `rooms/rl-b2-/players/` is a player's board entry for a track (`t` best ms, `k` car, `p` paint, `pa`, `a`, and `lk` only when a Captain's garage look is worn, see below), `rooms/rl-g2-/players/` the ghost behind it (`t`, `g` the inputs, `f` 2, `v` the contact rules it was driven with: 2 or 3), where `` is a built-in track's id or a custom track's `trackKey` and "2" is PHYS_V (new physics, new boards; the contact rules share one board). A clean new best is uploaded if it beats the account's entry. The top 10 shows only entries whose ghost, fetched and driven again on this device, finishes cleanly in exactly the claimed time with the contact rules it names (`Online.verify`; results cached in `rampline:vc`), so a made-up time or an edited recording never shows. A page from before rules 3 checks every run with rules 2, so until it is reloaded it doesn't list runs driven with rules 3. `rooms/rl-tracks/players/` holds a player's published tracks (`tr: {: {nm, code, at}}`, at most 5, at most 800 pieces each, and only after a clean finish of it), `rooms/rl-plays/players/` who raced which published track (`p: {: [best ms, last played]}`, 150 at most). **Community** lists published tracks (newest, most raced, raced this week), with the featured track of the week on top (the most raced in the last 7 days, else one picked by the week number), each with its own top 10; names and track names go through `/namefilter.js`. Hide and Report hide a track in this browser only (`rampline:hidden`); there is no shared report list, so Report tells the player to use Tell us. **Replay viewer:** watch any of your last 12 runs (`rampline:runs`) or a board run, with play/pause, frame steps, ¼× to 2×, a timeline, and a graph of speed over distance that can lay a second run (your best or a board run) over the first. **Builder:** a free camera (middle-drag to look round, right-drag, Shift-drag or WASD to pan, wheel to zoom, Shift + wheel or Q/E for the build height), a palette (keys 1–0 for the first ten), click or tap to place (R turns it; the preview shows arrows where the road leaves), right-click, X then click, or the bin to delete, the select tool (V: click, Shift-click or drag a box) to move (M, or M over a piece to pick it up), copy (Ctrl+C), cut (Ctrl+X), paste (Ctrl+V, R turns the group, Esc cancels and puts a moved group back) or delete pieces, Ctrl+Z / Ctrl+Y undo and redo (200 steps), Look (theme), a check, Test drive (T), Share, and Publish (in Track builder's list). **Share codes:** `RL1.` + base64url of: version 1, name length + UTF-8 name (≤ 40 bytes), piece count (2 bytes), 5 bytes a piece (type, x + 128, z + 128, y, turn + 4 × walls), then an FNV-1a checksum (4 bytes); version 2 is the same with a theme byte after the version (theme 0 is still written as version 1, so older copies read it). `decodeTrack` checks everything and returns a plain message for anything wrong. **Saved in the browser:** `rampline:save` (`{v: 1, pb: {: {t, sp, n, name, lv, old}}, runs}`), `rampline:ghost:` (`{v: 2 or 3 (the contact rules), f: 2, t, g}`: your best run as inputs, one byte per step (1 go, 2 brake, 4 left, 8 right, 16 back to checkpoint, 32 air brake) in runs of varint(count × 64 + input), base64url; version 1 ghosts used count × 32 and the old physics, and are left alone), `rampline:runs` (each with `v`, the contact rules; none means 2), `rampline:tracks`, `rampline:hidden`, `rampline:vc`, `rampline:set` (`vol, mute, cam, gfx, car, col, ghost`), `rampline:garage` (`{v: 1, car, col, pat, acc, rim, trail, name}`: car, paint, pattern (plain, stripe, twin stripes, two-tone) and its colour, rims, exhaust trail (off, smoke, flame, rainbow) and the name on the boards; account-nudge.js syncs it) and keys under `keybinds:rampline`. Stats hooks: `min('r2-', seconds)` for every clean built-in finish (stats.js's `LOWER`; the old `t-` names stay there for first-layout times), `max('medals', n)` (1 to 4 a track, old-layout medals included) and `max('golds', n)`. Drawing: the track is one merged mesh, each gate banner its own mesh, the car one mesh plus its wheels as one `InstancedMesh`, each ghost the same plus a name tag, dust and the exhaust trail a point cloud each, speed lines one line set; with no ghosts racing is about 17 draw calls, with 10 ghosts about 43 (logic under 1 ms a frame). **Drawn-only extras** (none of them is in the `RL` module, the physics or the track format, so times and share codes don't change): the **ground** is one mesh made in `buildScenery`, a patchwork of flat triangles in slightly different tones round the track (at most 32 × 32 cells, tones fading out at its edge) plus four plain sheets out to the horizon, so every bit of ground is drawn once (drawing a second ground under it cost about a fifth of the frame on slow graphics); the **centre dashes** on the road are their own mesh (`makeRoadLines`), swept from the same frames as the road (`RL.framesWorld`), on every other segment so they line up with the kerb stripes, a hair above the surface, skipped where the road twists (bank and wall-ride entries), on boost pads and at gates; dust and exhaust use one small shader (`fxPointsMat`) that gives each point its own colour, fade and size, so puffs grow and fade instead of popping: landings throw a ring in the look's dust colour, sliding leaves pale tyre smoke from the back wheels, and a boost pad's push shows as a flame from the exhaust when no garage trail is chosen; on the Fast graphics setting (`gfx: 'low'`, where nothing casts shadows) the car gets one soft dark patch under it (`blobStep`: on the road while driving, on whatever is below while flying, one ray a frame only in the air). The camera widens its view and pulls back with speed, and speed lines (short streaks kept to the edges of the view, never across the car) fade in above about 90 km/h; the Speed effects setting (menu and pause, `set.fx` in `rampline:set`, on by default) turns both the widening and the lines off. On touch screens the page adds `touch` to `body` (steer bottom left, GO and BRAKE bottom right, BRAKE in the air is the air brake, checkpoint/restart/camera/sound/pause top right); the builder works by tapping, with one finger to look round, two to pan and pinch, and the select tool's bar (Move, Copy, Delete, Done) above the palette. **Captain's garage (hidden, not public yet):** 42 more cars (normal cars, work vehicles, toy cars and silly cars, from a muscle car to a rubber duck, and from the second wave in November 2026 sports cars, a team bus, ice resurfacer, golf cart racer, football helmet and soccer ball, and pirates, suits and robots, a pirate ship, black sedan, VIP limo, armoured van, robo walker and lowrider: car numbers 32 to 42), 25 paints, 12 wheel designs, 10 tyre smokes and 13 horns, all drawn in code in `garage.js` beside the page and numbered as in `cosmetics.js` (game `rampline`). `RAMPLINE_PUBLIC = false` in `index.html` is the one switch; until it is flipped, `garageOn()` asks `captains.js` (`may(false, 'garage', 'rampline-garage')`), so only the site's captains, or `?garage=1` on localhost or in an automated browser, see the "Captain's garage" button at the end of the Garage card and its screen (front and back pictures rendered from the real models, tabs for cars, paint, wheels, tyre smoke and horn). Everything is free to wear; nothing is bought and the shop stays shut. What a captain wears is saved as `rampline:cos` (`{v: 1, car, paint, wheels, smoke, horn}`, item numbers, 0 for none; not synced to the account) and, for what shows on a ghost, goes on their board entries as `lk` = `"1..."` beside the old `k` and `p` (which stay the garage car and colour, so pages from before it draw the garage car as before). Reading a board, `lkOf` checks the string's shape and `garage.js`'s `parse` every number; unknown numbers are drawn plain. `garage.js` is fetched only for a captain or when a board row has an `lk`; for everyone else nothing changes. A paint repaints the car's own paintwork (with none, a car with a colour of its own, such as the school bus or the taxi, keeps it; the rest take the garage swatch); wheels replace the car's own wheels or the garage rims. Tyre smoke recolours the slide smoke and the horn plays on H (only if no control is bound to H) or a horn button above the steering on touch screens; both are yours only. Looks only: every car is still one mesh plus one `InstancedMesh` of wheels (up to six, each its own size), 120 to 650 triangles, so the draw calls are unchanged; all fit about the same box as the garage cars; a car that would sit in front of the Hood camera hides its body in that camera only. A test hook (`window.__rl`) exists only when `navigator.webdriver` is set; with `GX` it has `sheet()` and `wheelSheet()` (contact sheets of every car and wheel). It has Spanish (`rampline/es.js`, through `../lang.js`; EN | ES switch next to Speed effects in both settings panels): menus, how-to-play, results, boards, community, the track builder and its checks, and the captains' garage; the builder's checks stay English inside the code (the page translates them with `_t()` when it shows them, because `T` is the tile size there), and track names and players' track names are never translated. -- `e63334287a3deaa3/hush-pools/`: Blackwade (Back Room; first released as Hush Pools, and the folder, the room prefix `hp`, the `hushpools:` storage keys and the stats, Elo and leaderboard id `hush-pools` all keep that name on purpose, so invite links, saved progress, coins, upgrades and ratings carry over), an original co-op horror obby for 1 to 4 players in flooded pool halls that were shut and left dark for decades (one file, three.js r128 with `../autores.js`, `../netsmooth.js` for teammates, Web Audio, Firebase Realtime Database rooms under `rooms/hp-`, same project and rules as Rumble Karts; invite links go through the home page as `#hp-`; Quick match uses `hp-pub-1` to `hp-pub-6`; rooms hold up to 4). The name, the monster, the rooms, the art and the sounds are all our own (everything is drawn and synthesised in code; no image or sound files). **Look:** dark on purpose, but the way across must read on a dim laptop: the mist is a dim green-grey (`FOG`), a cold fill (hemisphere and ambient light) keeps tiles, edges and the monster visible, and real light comes only from the few ceiling panels that still work and the lamps over the doors (`LV.lamps`, built in `buildLevel`: working panels are picked over the route stops, one panel in a hall may flicker, the rest are dead and some hang loose). Each frame `lampFrame` hands the nearest eight to every lit material and to the water (`LAMPU`, `GLSL_LAMPS`; `lampPatch` adds them to Lambert and Phong materials, with a rim light so the monster and swimmers separate from the dark). A flickering panel steps between on, dim and off at most about twice a second and changes only its own pool of light; with Reduced motion it stays dim and steady. `tileMat` layers age onto every tiled surface from one small noise texture (`NOISE_TEX`): stained grout, cracked and missing tiles, grime, green-black mould rising from the water, rust runs under the wall pipes and peeling paint on the ceiling; tops you can stand on have a dark rim exactly `TUNING.edgeMargin` wide and a worn, cleaner middle. The water (`WATER`) is murky with a scum film, lamp glints and, now and then, something pale under the surface (off with Reduced motion); light cones fall from working panels (`CONE_MAT`, off on Low graphics, fading when the camera is close so they never wash over the screen). The dressing (pipes, ladders, lifebuoys, broken tile, rubbish on the water) is a few instanced meshes seeded from the difficulty, the same in every browser. Ambience adds far-off clanks and pipe groans, never anything that sounds like a splash. Players hop between floating tiles across nine big, misty halls of knee-deep water while one tall, blind, very fast monster hunts them **by sound only**. The water is shallow (you wade, slowly and noisily, and can always jump back out; nobody drowns), and the mist (`FOG_NEAR`/`FOG_FAR` in the renderer, about 15 m in the halls, clear in the lobby) hides the far wall and the monster until they're close. **Rules** are in the `// ==CORE==` … `// ==/CORE==` part of the script: plain data and pure functions with no DOM or three.js, the same in every browser and loaded as they are by the tests (below). `TUNING` holds every number worth tuning (gravity, jump, walk 4 / run 6.2 / creep 2 m/s, how loud each thing is in `TUNING.loud`, hearing radius 20 m × loudness × difficulty (× the hall's `hallK` for the player's own body noises), with water noises carrying `waterCarry` (2.8) times as far and going into the water heard anywhere in the hall (`hallHear`), memory 8 s, the monster's speeds and reach, grab 1.6 s, revive 2.6 s, shield 3 s, and so on); `DIFFS` is Easy (bigger tiles; the monster is 0.8× as fast, hears less and waits longer before it rushes; 50% coins), Normal and Hard (smaller tiles; 1.2× as fast, hears more, rushes sooner; 160% coins; opened by two Normal escapes). Each difficulty's `ramp` (Easy 0.025, Normal 0.04, Hard 0.05) makes the same monster sharper each hall further in: `hallK(df, room)` is 1 in the first hall and 1 + ramp × (hall number − 1) after that (Normal 1.32 in the ninth), and how far it hears the players' own noises (`BODY_SRC`: water, landings, running, climbing, bumps) and its reactions (the freeze before a rush) scale by it and its speeds by half as much, so the first hall teaches and the last is the most dangerous. Valves, the keypad and thrown things carry the same in every hall (scaling them too made the valve hall close to unwinnable solo in the bot runs). **Noise** is the core: every event is `{ x, y, z, l (loudness), src }` (`emit`), heard by a monster in the same room when it's within `hearRadius(l, df, src, room)` (src and room are optional: they add the water carry and the hall's `hallK`; the noise rings on the water and the How noise works card use the same numbers); going into the water is loudest (1.0; `clip`, 0.7, is feet in and out again between two reports), a landing with your middle on a tile's rim (within `TUNING.edgeMargin`, 0.2 m) or a big drop (faster than `hardLandVy`) 0.42 (`landNoise`, used by the host and by the landing marker), running on tiles 0.16, wading 0.45 every `wadeStep` (0.62 running, 0.24 creeping), pulling yourself up onto a tile 0.3 (out of the water, or a jump that came up just short: `mantle`), valves 1.05, a bottle 1.25 and its echo; walking, creeping and landing on the middle of a tile are silent. One mistake makes one noise: a landing or pull-up within `TUNING.oneNoise` (0.3 s) after the same player's last landing noise, pull-up, dip or splash makes no noise of its own (going into the water is always heard). Your browser reports your position on the very step you land, splash or pull up (`sendReport`), so the host judges the rim where you came down, not up to 50 ms later. **Showing it:** every noise gets a label and icon where it happened (bigger for louder; water noises red, other loud ones amber, quiet ones outlined; a teammate's carries their name) and on the noise meter, which also says how you're moving and whether that's silent; while you're in the air `predictLanding` (in the CORE: the real `stepPlayer` run forward) puts a marker where you'll land, a thin pale ring for quiet, a thick amber ring with notches for loud (rim, drop or pull-up) and a red ring with a cross for water, with a red line on the water around your legs when you're about to go in; a clean landing says "quiet". One-line tips (`TIPS`) show once each the first time you do the thing (remembered in `set.tips`), and the How noise works card (menu and pause) lists every cause from loudest to quietest with how far it carries on that difficulty. **Floating tiles** (drawing and sound only; collision and the rules never see it): the stepping tiles and the moving, sinking and memory tiles bob slightly out of step, and a landing kicks its tile (`landKick`, `floatFrame`) with a damped dip and rock sized by the same loudness as the noise label (a clean landing is a soft dip, a small ring and a watery whumph; a rim landing a big tilt, a slosh over the side, a loud ring and a slap). Standing on a tile settles it and leans it toward you, and the drawn player moves with the tile so feet stay planted. Teammates' landings show the same (from their pose flags, made bigger when the host's noise names them). The static tiles move in the vertex shader (`MAT.float`, up to `FLOAT_N` moving at once, nearest first); Reduced motion halves the dip and turns off the rocking and the bob. Each noise shows as rings spreading on the water (the water shader's `uRings`, 14 at a time) and on the HUD's noise meter. **The monster** (`monStep`): there is one, and it follows the party from hall to hall. It drifts (0), goes to look at the loudest thing it remembers (1), freezes and turns towards a fresh noise close by (7, for `TUNING.react` s), then rushes at it at about 14 m/s (2), holds someone (3) or is stunned by a flare (4). When most of the party is in another hall it sinks under the drains (5, `partyRoom`) and shows itself in that hall: it comes up out of the water on the way ahead of the party, 10 to 14 m (`showNear`, `showFar`) from the nearest player, near the route if it can (6, `showSpot`), with a gurgle, a long low call from where it stands (softer with the gentler scare) and a message, about 5 s after the party walks in. A run, and a retry from a checkpoint, start the same way (`surface`, `firstRise`), so it is there in every hall, the first one included; it hears nothing while it's under or coming up. `riseSpot` (as far from everyone as it can get) is now only where it backs off to after taking someone. Because wading carries so far, someone who wades a hall is heard from most of it and every step pulls it closer, so they get caught well before the far door unless they get out and go quiet. Memory fades over 8 s (`memWeight`), and it paths around tiles and pillars on a 0.5 m grid (`gridPath`). A rush takes anyone within 2 m at the end of it, so the way to survive one is to be far away or to get moving the moment you hear its shriek; otherwise it only takes someone who has just made a noise right next to it (walking into someone makes a bump that counts), so standing still and quiet beside a wandering monster is safe. Being grabbed shows a short face-to-face scare (a hard cut to its face lunging at you, a red strobe and a distorted screech, then black with TAKEN; no blood), with a gentler version in Settings. **Halls** (`ROOMS`, built from a seed by `buildWorld(df, seed)`): each is 56 m wide (`RHW`) and 56 to 70 m long. Its obstacle course is placed somewhere across the hall (`newRoom`), and `furnish` adds stepping-stone trails from the door you came in by to the course and from the course to three doors in the far wall, only one of them open (`W.doors`, `real`; the open one leads into the next hall), plus dead-end trails, lone stones and pillars, all from the seed. The courses: Pillar Hall, Broken Walkway (two routes), Sinking Tiles (light-edged tiles sink a moment after you land), Turning Bridge (planks that line up every 4 s), Moving Tiles, Currents (the water pushes you sideways), Memory Bridge (six rows of three tiles: the safe one in each row lights up in turn, the others sink under you), Crushing Walls (one lane in three is safe, shown by a green light) and the Maintenance Lock: two red valves (hold E, loud) raise the water and a stair, four number pillars give the keypad code, and the door out opens. Everything that moves is worked out from the run's clock and seed (`updateDyn`, `plankAngle`, `moverPos`, `crushOut`, `memLit`), so every browser agrees without sending it. **Items** (1–5): pebbles (6 to start, 3 more from each grey stone pile every 20 s; they skip on the water), bottles (loud, with an echo), wind-up toys (rattle for 8 s), flares (stun the monster for 5 s if it's within 6 m, and free anyone it's holding) and rescue ropes (pull a downed teammate out from 8 m). A thrown item's flight is the same function in the thrower's browser (shown straight away) and on the host (which decides what it does: `stepProj`, `throwVel`). Being held by the monster for its full grab puts you **down**: a teammate holds E next to you (2.6 s) or throws a rope, and you come back with a 3 s shield; while down you watch a teammate. Everyone down sends the party back to the last checkpoint (the start of the furthest room reached). **Online:** each player writes only their own node `rooms/hp-/players/`: `n`, `c`, `x`, `z`, `h`, `ts` (the six the shared rules need), `y`, `j` (when they joined), `my`/`li`/`lv` (their lowest feet since the last update, their landing count and last landing speed: the host decides what those mean), `tp` (how many host moves they've applied), `hd` (what they're holding E on), `a` (pose flags), `up` (upgrade levels, 6 digits), `pk` (items packed for the run), `rd` (ready), `ac` (their last few actions as JSON, each with a rising `i` and the run number `g`), `ch` (proximity chat) and `pg` (a ping). The host is whoever has the highest `he` with a published state, else whoever joined first; it runs the run (`hostSense` turns each player's reported position into noises, falls, downs, checkpoints and coins, and checks speed and floating; `hostAct` checks every throw, pebble pickup, keypad try and rope; `hostStep` runs the monsters, items, valves, revives and the exit) and publishes it as JSON in its own node's `rs` about 10 times a second (`encodeRS`; clients check every value in `decodeRS`). Players move themselves (so jumps feel instant) and the host moves them only by teleport (`tp`), after a fall, a too-fast move, a revive or a checkpoint retry. If the host leaves, the next player rebuilds the run from the last snapshot (`stateFromRS`) and carries on. Someone who drops out keeps their place for 60 s (`TUNING.rejoin`) and the menu offers Rejoin (`hushpools:last`). `?dev=1` adds a fake-lag slider to Settings for testing. **Saved in this browser** (localStorage, all `hushpools:`): `name`, `set` (settings: sensitivity, field of view, volumes, gentler scare, invert, graphics, dev lag, and `tips`, the tips already shown), `save` (coins, upgrade levels, items owned (at most 3 of each), Normal and Hard escapes, best time), `last` (the room of a run in progress, for Rejoin). Items you take into a run leave the shelf and whatever you didn't use comes back after it. **Coins** (no real money anywhere): 10 a room cleared and 50 for the escape, times the difficulty's factor; the lobby's Equipment stall sells bottles 15, toys 25, flares 30 and ropes 25, and the Upgrades stall has six upgrades at 40/90/160 coins a level (throw range, pebble skips and rescue speed from the start; toy battery, flare radius and rope reach once you've owned that item). **stats.js:** `add('escapes')`, `min('fastest', seconds)` (Normal or Hard only), `add('revives')`, `add('rooms')` and `add('hard')`; the Leaderboards show Elo, Fastest escape, Escapes and Rescues (see elo.js for how a co-op escape is rated). **Touch:** shown only on touch screens (`body.touch`): a stick on the left, drag anywhere else to look, and Jump, E, Throw (hold to aim), Run, Creep and Ping buttons; the HUD rearranges itself for an upright or sideways phone. **Tests** aren't in this repo (it has no build step or packages): the core is checked from outside with Node (`node:test`: noise and hearing, wading and climbing out, the monster's states, rush, forgetting and following the party, item checks, seeds, the halls' doors and stepping stones, the memory tiles and keypad, coins and upgrades, checkpoints, wipes, revives and valves), headless bots that play whole runs with the real physics (1 to 4 bots escape on Easy, Normal and Hard), and two headless browsers in one online room (joining, ready, falling in and wading, being grabbed and going down, a rescue and the host leaving). Automated browsers get a test hook, `window.__hp` (`hold(true)` freezes your body, for screenshots of the landing marker). The Blackwade rework was checked with its own Node tests of the CORE (one noise per mistake, the landing marker against the real physics, the body, saves, seeds, halls and loudness unchanged) and a jump matrix comparing the host's verdicts with the real landing spots, also kept outside the repo. **The shop is closed for now** (`SHOP_OPEN = false` above `buyUpgrade`, the owner's call): `buyItem` and `buyUpgrade` refuse and the buttons say "Coming soon", so no equipment or upgrades can be bought; upgrade levels and equipment a save already has are kept and still come on runs, but equipment is used up and can't be restocked while the shop is shut. Coins still add up. Set it to `true` to open buying again. +- `e63334287a3deaa3/hush-pools/`: Blackwade (Back Room; first released as Hush Pools, and the folder, the room prefix `hp`, the `hushpools:` storage keys and the stats, Elo and leaderboard id `hush-pools` all keep that name on purpose, so invite links, saved progress, coins, upgrades and ratings carry over), an original co-op horror obby for 1 to 4 players in flooded pool halls that were shut and left dark for decades (one file, three.js r128 with `../autores.js`, `../netsmooth.js` for teammates, Web Audio, Firebase Realtime Database rooms under `rooms/hp-`, same project and rules as Rumble Karts; invite links go through the home page as `#hp-`; Quick match uses `hp-pub-1` to `hp-pub-6`; rooms hold up to 4). The name, the monster, the rooms, the art and the sounds are all our own (everything is drawn and synthesised in code; no image or sound files). **Look:** dark on purpose, but the way across must read on a dim laptop: the mist is a dim green-grey (`FOG`), a cold fill (hemisphere and ambient light) keeps tiles, edges and the monster visible, and real light comes only from the few ceiling panels that still work and the lamps over the doors (`LV.lamps`, built in `buildLevel`: working panels are picked over the route stops, one panel in a hall may flicker, the rest are dead and some hang loose). Each frame `lampFrame` hands the nearest eight to every lit material and to the water (`LAMPU`, `GLSL_LAMPS`; `lampPatch` adds them to Lambert and Phong materials, with a rim light so the monster and swimmers separate from the dark). A flickering panel steps between on, dim and off at most about twice a second and changes only its own pool of light; with Reduced motion it stays dim and steady. `tileMat` layers age onto every tiled surface from one small noise texture (`NOISE_TEX`): stained grout, cracked and missing tiles, grime, green-black mould rising from the water, rust runs under the wall pipes and peeling paint on the ceiling; tops you can stand on have a dark rim exactly `TUNING.edgeMargin` wide and a worn, cleaner middle. The water (`WATER`) is murky with a scum film, lamp glints and, now and then, something pale under the surface (off with Reduced motion); light cones fall from working panels (`CONE_MAT`, off on Low graphics, fading when the camera is close so they never wash over the screen). The dressing (pipes, ladders, lifebuoys, broken tile, rubbish on the water) is a few instanced meshes seeded from the difficulty, the same in every browser. Ambience adds far-off clanks and pipe groans, never anything that sounds like a splash. Players hop between floating tiles across nine big, misty halls of knee-deep water while one tall, blind, very fast monster hunts them **by sound only**. The water is shallow (you wade, slowly and noisily, and can always jump back out; nobody drowns), and the mist (`FOG_NEAR`/`FOG_FAR` in the renderer, about 15 m in the halls, clear in the lobby) hides the far wall and the monster until they're close. **Rules** are in the `// ==CORE==` … `// ==/CORE==` part of the script: plain data and pure functions with no DOM or three.js, the same in every browser and loaded as they are by the tests (below). `TUNING` holds every number worth tuning (gravity, jump, walk 4 / run 6.2 / creep 2 m/s, how loud each thing is in `TUNING.loud`, hearing radius 20 m × loudness × difficulty (× the hall's `hallK` for the player's own body noises), with water noises carrying `waterCarry` (2.8) times as far and going into the water heard anywhere in the hall (`hallHear`), memory 8 s, the monster's speeds and reach, grab 1.6 s, revive 2.6 s, shield 3 s, and so on); `DIFFS` is Easy (bigger tiles; the monster is 0.8× as fast, hears less and waits longer before it rushes; 50% coins), Normal and Hard (smaller tiles; 1.2× as fast, hears more, rushes sooner; 160% coins; opened by two Normal escapes). Each difficulty's `ramp` (Easy 0.025, Normal 0.04, Hard 0.05) makes the same monster sharper each hall further in: `hallK(df, room)` is 1 in the first hall and 1 + ramp × (hall number − 1) after that (Normal 1.32 in the ninth), and how far it hears the players' own noises (`BODY_SRC`: water, landings, running, climbing, bumps) and its reactions (the freeze before a rush) scale by it and its speeds by half as much, so the first hall teaches and the last is the most dangerous. Valves, the keypad and thrown things carry the same in every hall (scaling them too made the valve hall close to unwinnable solo in the bot runs). **Noise** is the core: every event is `{ x, y, z, l (loudness), src }` (`emit`), heard by a monster in the same room when it's within `hearRadius(l, df, src, room)` (src and room are optional: they add the water carry and the hall's `hallK`; the noise rings on the water and the How noise works card use the same numbers); going into the water is loudest (1.0; `clip`, 0.7, is feet in and out again between two reports), a landing with your middle on a tile's rim (within `TUNING.edgeMargin`, 0.2 m) or a big drop (faster than `hardLandVy`) 0.42 (`landNoise`, used by the host and by the landing marker), running on tiles 0.16, wading 0.45 every `wadeStep` (0.62 running, 0.24 creeping), pulling yourself up onto a tile 0.3 (out of the water, or a jump that came up just short: `mantle`), valves 1.05, a bottle 1.25 and its echo; walking, creeping and landing on the middle of a tile are silent. One mistake makes one noise: a landing or pull-up within `TUNING.oneNoise` (0.3 s) after the same player's last landing noise, pull-up, dip or splash makes no noise of its own (going into the water is always heard). Your browser reports your position on the very step you land, splash or pull up (`sendReport`), so the host judges the rim where you came down, not up to 50 ms later. **Showing it:** every noise gets a label and icon where it happened (bigger for louder; water noises red, other loud ones amber, quiet ones outlined; a teammate's carries their name) and on the noise meter, which also says how you're moving and whether that's silent; while you're in the air `predictLanding` (in the CORE: the real `stepPlayer` run forward) puts a marker where you'll land, a thin pale ring for quiet, a thick amber ring with notches for loud (rim, drop or pull-up) and a red ring with a cross for water, with a red line on the water around your legs when you're about to go in; a clean landing says "quiet". One-line tips (`TIPS`) show once each the first time you do the thing (remembered in `set.tips`), and the How noise works card (menu and pause) lists every cause from loudest to quietest with how far it carries on that difficulty. **Floating tiles** (drawing and sound only; collision and the rules never see it): the stepping tiles and the moving, sinking and memory tiles bob slightly out of step, and a landing kicks its tile (`landKick`, `floatFrame`) with a damped dip and rock sized by the same loudness as the noise label (a clean landing is a soft dip, a small ring and a watery whumph; a rim landing a big tilt, a slosh over the side, a loud ring and a slap). Standing on a tile settles it and leans it toward you, and the drawn player moves with the tile so feet stay planted. Teammates' landings show the same (from their pose flags, made bigger when the host's noise names them). The static tiles move in the vertex shader (`MAT.float`, up to `FLOAT_N` moving at once, nearest first); Reduced motion halves the dip and turns off the rocking and the bob. Each noise shows as rings spreading on the water (the water shader's `uRings`, 14 at a time) and on the HUD's noise meter. **The monster** (`monStep`): there is one, and it follows the party from hall to hall. It drifts (0), goes to look at the loudest thing it remembers (1), freezes and turns towards a fresh noise close by (7, for `TUNING.react` s), then rushes at it at about 14 m/s (2), holds someone (3) or is stunned by a flare (4). When most of the party is in another hall it sinks under the drains (5, `partyRoom`) and shows itself in that hall: it comes up out of the water on the way ahead of the party, 10 to 14 m (`showNear`, `showFar`) from the nearest player, near the route if it can (6, `showSpot`), with a gurgle, a long low call from where it stands (softer with the gentler scare) and a message, about 5 s after the party walks in. A run, and a retry from a checkpoint, start the same way (`surface`, `firstRise`), so it is there in every hall, the first one included; it hears nothing while it's under or coming up. `riseSpot` (as far from everyone as it can get) is now only where it backs off to after taking someone. Because wading carries so far, someone who wades a hall is heard from most of it and every step pulls it closer, so they get caught well before the far door unless they get out and go quiet. Memory fades over 8 s (`memWeight`), and it paths around tiles and pillars on a 0.5 m grid (`gridPath`). A rush takes anyone within 2 m at the end of it, so the way to survive one is to be far away or to get moving the moment you hear its shriek; otherwise it only takes someone who has just made a noise right next to it (walking into someone makes a bump that counts), so standing still and quiet beside a wandering monster is safe. Being grabbed shows a short face-to-face scare (a hard cut to its face lunging at you, a red strobe and a distorted screech, then black with TAKEN; no blood), with a gentler version in Settings. **Halls** (`ROOMS`, built from a seed by `buildWorld(df, seed)`): each is 56 m wide (`RHW`) and 56 to 70 m long. Its obstacle course is placed somewhere across the hall (`newRoom`), and `furnish` adds stepping-stone trails from the door you came in by to the course and from the course to three doors in the far wall, only one of them open (`W.doors`, `real`; the open one leads into the next hall), plus dead-end trails, lone stones and pillars, all from the seed. The courses: Pillar Hall, Broken Walkway (two routes), Sinking Tiles (light-edged tiles sink a moment after you land), Turning Bridge (planks that line up every 4 s), Moving Tiles, Currents (the water pushes you sideways), Memory Bridge (six rows of three tiles: the safe one in each row lights up in turn, the others sink under you), Crushing Walls (one lane in three is safe, shown by a green light) and the Maintenance Lock: two red valves (hold E, loud) raise the water and a stair, four number pillars give the keypad code, and the door out opens. Everything that moves is worked out from the run's clock and seed (`updateDyn`, `plankAngle`, `moverPos`, `crushOut`, `memLit`), so every browser agrees without sending it. **Items** (1–5): pebbles (6 to start, 3 more from each grey stone pile every 20 s; they skip on the water), bottles (loud, with an echo), wind-up toys (rattle for 8 s), flares (stun the monster for 5 s if it's within 6 m, and free anyone it's holding) and rescue ropes (pull a downed teammate out from 8 m). A thrown item's flight is the same function in the thrower's browser (shown straight away) and on the host (which decides what it does: `stepProj`, `throwVel`). Being held by the monster for its full grab puts you **down**: a teammate holds E next to you (2.6 s) or throws a rope, and you come back with a 3 s shield; while down you watch a teammate. Everyone down sends the party back to the last checkpoint (the start of the furthest room reached). **Online:** each player writes only their own node `rooms/hp-/players/`: `n`, `c`, `x`, `z`, `h`, `ts` (the six the shared rules need), `y`, `j` (when they joined), `my`/`li`/`lv` (their lowest feet since the last update, their landing count and last landing speed: the host decides what those mean), `tp` (how many host moves they've applied), `hd` (what they're holding E on), `a` (pose flags), `up` (upgrade levels, 6 digits), `pk` (items packed for the run), `rd` (ready), `ac` (their last few actions as JSON, each with a rising `i` and the run number `g`), `ch` (proximity chat) and `pg` (a ping). The host is whoever has the highest `he` with a published state, else whoever joined first; it runs the run (`hostSense` turns each player's reported position into noises, falls, downs, checkpoints and coins, and checks speed and floating; `hostAct` checks every throw, pebble pickup, keypad try and rope; `hostStep` runs the monsters, items, valves, revives and the exit) and publishes it as JSON in its own node's `rs` about 10 times a second (`encodeRS`; clients check every value in `decodeRS`). Players move themselves (so jumps feel instant) and the host moves them only by teleport (`tp`), after a fall, a too-fast move, a revive or a checkpoint retry. If the host leaves, the next player rebuilds the run from the last snapshot (`stateFromRS`) and carries on. Someone who drops out keeps their place for 60 s (`TUNING.rejoin`) and the menu offers Rejoin (`hushpools:last`). `?dev=1` adds a fake-lag slider to Settings for testing. **Saved in this browser** (localStorage, all `hushpools:`): `name`, `set` (settings: sensitivity, field of view, volumes, gentler scare, invert, graphics, dev lag, and `tips`, the tips already shown), `save` (coins, upgrade levels, items owned (at most 3 of each), Normal and Hard escapes, best time), `last` (the room of a run in progress, for Rejoin). Items you take into a run leave the shelf and whatever you didn't use comes back after it. **Coins** (no real money anywhere): 10 a room cleared and 50 for the escape, times the difficulty's factor; the lobby's Equipment stall sells bottles 15, toys 25, flares 30 and ropes 25, and the Upgrades stall has six upgrades at 40/90/160 coins a level (throw range, pebble skips and rescue speed from the start; toy battery, flare radius and rope reach once you've owned that item). **stats.js:** `add('escapes')`, `min('fastest', seconds)` (Normal or Hard only), `add('revives')`, `add('rooms')` and `add('hard')`; the Leaderboards show Elo, Fastest escape, Escapes and Rescues (see elo.js for how a co-op escape is rated). **Touch:** shown only on touch screens (`body.touch`): a stick on the left, drag anywhere else to look, and Jump, E, Throw (hold to aim), Run, Creep and Ping buttons; the HUD rearranges itself for an upright or sideways phone. **Tests** aren't in this repo (it has no build step or packages): the core is checked from outside with Node (`node:test`: noise and hearing, wading and climbing out, the monster's states, rush, forgetting and following the party, item checks, seeds, the halls' doors and stepping stones, the memory tiles and keypad, coins and upgrades, checkpoints, wipes, revives and valves), headless bots that play whole runs with the real physics (1 to 4 bots escape on Easy, Normal and Hard), and two headless browsers in one online room (joining, ready, falling in and wading, being grabbed and going down, a rescue and the host leaving). Automated browsers get a test hook, `window.__hp` (`hold(true)` freezes your body, for screenshots of the landing marker). The Blackwade rework was checked with its own Node tests of the CORE (one noise per mistake, the landing marker against the real physics, the body, saves, seeds, halls and loudness unchanged) and a jump matrix comparing the host's verdicts with the real landing spots, also kept outside the repo. **The shop is open** (`SHOP_OPEN = true` above `buyUpgrade`): it was closed in 1.65.1 with the cosmetic shops and reopened straight after, because equipment and upgrades are how you progress here. `false` closes it again (`buyItem` and `buyUpgrade` refuse and the buttons say "Coming soon"; what a save owns is kept). - `e63334287a3deaa3/flipline/`: Chromeline (Back Room; formerly Flipline, and the folder, saved data, stats keys and the leaderboard's `d: 'flipline'` keep the old name), a one-button side-view stunt bike game in a neon city at night (Canvas 2D and Web Audio, no Firebase except stats.js). Hold the gas to ride; flips are on the arrows (← spins backwards, → forwards; on the ground they lean the rider back into a wheelie or over the bars). Gravity is on: nothing levels the bike in the air, a spin carries on until the player stops it, and the heavy front end drops the nose. (Until 20 Nov 2026 it was one button: holding in the air tipped the bike backwards and letting go levelled it. Arjun's arrow-key and gravity change, pull request #282, came first; Chromeline's look and track are built on top of it.) **Look**: every slab is a filled dark panel with faint circuit traces, and the surface you ride on is a lit rail in the place's colour (a wide soft glow, the colour, a white core), always the brightest line on screen. Behind it are three parallax layers of towers, signs in invented glyphs, beacons and a sky train, painted once into repeating tiles. There is also a moon with a ring, searchlights, and scanlines with a vignette. All glow is additive strokes or pre-made glow sprites: there is no `shadowBlur` or `filter` in the frame loop (`shadowBlur` is used only while painting the layer tiles). The rider wears a full helmet with a lit visor (what sticks out of the helmet, such as ears, fins, an antenna or a crest, tells riders apart by shape), the bikes have lit wheel rims, a light ribbon trails the back wheel at speed, and the old scarf's rope is now a light streamer. It is deliberately not like the thin neon line-art bike games or any film: everything is a filled, lit shape with depth, and the palette, shapes and names are our own. **Hazards** look the same in every place: hot red with cream stripes and teeth, outlined dark, with a red glow behind. The swinging mace and the spike strips keep their exact shapes from the first version; red is used for nothing else and gold only for coins and ×2 tokens, so hazards read by shape and value as well as colour. "Fewer effects", or the system's reduced-motion setting, turns off shake, streaks, the ribbon, scanlines, beacons and moving lights; there is no full-screen flash (the first clean landing and first loop of a run get a soft glow from the screen edges). One self-contained `index.html` plus `es.js` (Spanish). Everything that decides what happens is the `FL` module between `// ==CORE==` and `// ==END CORE==`, with no DOM in it, so a Node script can run it on its own (the checks for this version did exactly that). **Physics** (`P`, every number with its unit): a chassis with two sprung wheel contacts and a belly skid, stepped 240 times a second whatever the screen does; `step(tr, s, hold, lean)` takes the gas (true/false) and the lean (-1 ←, 0, 1 →). Gas on the ground: the back wheel pushes, 11.9 m/s² from rest, fading to nothing at 19.2 m/s (13% more than Flipline), never more than grip × load, and none once the ground tips past vertical, so the top of a loop is carried by the speed you bring. Top speed on flat ground is 17.2 m/s (Flipline's was 15.3). Off the gas it coasts with a little rolling resistance. In the air an arrow spins the bike that way (18 rad/s², up to 8 rad/s, `AIR_ACC`, `AIR_WMAX`); with no arrow the spin only fades slowly (`AIR_DAMP`), and gravity drops the nose all the time (`GRAV_PITCH` × cos(angle), so an untouched bike noses over on long jumps but small hops still land). On the ground an arrow adds a lean torque (`LEAN_G`); the automatic forward lean that stops a wheelie looping over is off while ← is held. A crash is the head or body touching the ground, a hazard, falling into a pit, landing more than 75° off the slope, or not moving forward for 5 s. Flips are counted from the rotation in the air against the change in ground slope (a flip from 308°), and only banked 0.22 s after a landing that didn't crash. Inputs are one small code (`inCode(hold, lean)`: bit 0 the gas, bits 1–2 the lean + 1); they carry their timestamps and take effect on the physics step they fall in, so the same timing gives the same run at 30, 60 or 144 Hz. **Loops** (`loopRing`) are two overlapping half-circles of one-sided edges, tagged per edge in `tr.eg`: the way up (bottom, right side, over the top) and the way down. Each run keeps a flag per loop (`s.lp`), set once the bike is past the top, and only the half matching the flag collides. So the floor through the bottom never traps the bike, and it leaves at the bottom instead of going round again. With the gas on all the way round, the lowest entry speeds that still go round (on the arrow-key physics) are about 10 m/s (radius 3 m), 11.5 (4 m), 13.6 (5 m) and 15.6 (6 m); the checker asks for `loopVmin(R)` = 2R + 4.7, at least 11, a margin for a bike that has just landed. Big loops come with a boost strip in the run-up. A full loop scores 200 and adds to the combo. **Boost strips** (`tr.eb` on their edges) push the wheels 26 m/s² up to 25 m/s, held or not. **Drop platforms** (mover kind `drop`) fall 0.45 s after the first touch, so the whole bike must be off by then. **Laser gates** (hazard kind `gate`) are off for 1.1 s around the moment a bike at the design speed arrives. **×2 tokens** (`tr.pk`) double trick points for 8 s. **Scoring**: 1 point a metre. Flips score 100 / 300 / 600 / 1000…. A clean landing (within 15° of the slope after a real jump) scores +75 per flip plus 75, and it and every loop add to the combo, which multiplies the next tricks (×1.5, ×2 … ×8) until a sloppy landing. Near misses past a hazard score +40 (+60 when very close); long air earns a bonus; coins are +10. **Track** (`MOD`): modules that write ground from the cursor and end on level ground. The original 34 are flat, recover, roll, whoop, hill, valley, hump, kick, dkick, bigkick, tabletop, stepup, stepdown, stairsup, stairsdown, gap, gap2, gapup, gapdown, longjump, pillars, bridge, lpipe, dropin, seesaw, shuttle, lift, pend (the mace), rotor, beams, crusher, saw, spikes and spikeroll. Chromeline adds loop, loop2, jumploop (a jump straight into a loop: land clean and keep the gas on), hpipe (half-pipe), launch (boost strip, kicker, long gap, landing ramp up or down), boost, crumble (drop platforms over a pit), gates, pads (narrow landing pads, each a step down over a gap) and rush (a rare overdrive stretch with an ×2 token). lpipe and hpipe end in a straight 1.5 m run at the launch angle (62–70°), so the bike leaves nose-high and lands on a steep down ramp: with no arrows the nose doesn't come round in time, so you steer it round with → (or flip it with ←). Moving hazards start their clock when the bike comes within 34 m and are timed for a bike at a good pace (`VD`, 15.5 m/s). **Endless** (`endless(seed)`, `extend`) opens the same way every run: a small kick at about 26 m (under 3 s), a big kicker over a drop at about 45 m (about 4 s; with no arrows the nose drops and you land on your head), a forgiving loop (in at about 9 s, round by about 10.5 s), a short spike run, then at about 13 s a quarter-pipe or half-pipe you have to steer round to land. After that it picks modules by weight; difficulty (`endlessD`) climbs from 0 to 1 over the next 1,100 m and on to 1.5 by about 3,600 m, giving wider gaps, more and faster hazards, bigger loops and more of the hard pieces. Every new module is checked by `vRun`, a point that always holds the gas at full and at 85% power. It follows the ground, flies off lips, lands, times moving hazards and gates, asks for the loop entry speed and the drop-platform speed, and gets the boost; a module that hits a wall, falls in a pit, stalls, is too slow for a loop or a drop platform, or touches a hazard is taken back out and replaced. The Daily run uses one seed per UTC day (`dailySeed`). **Levels** (`LEVELS`): 24 in four tiers of six, each `{id, n: name, th: place, f: flips target, t: time target in seconds, c: course}`, the course written as module tokens, for example `kick:1:24:12 loop:3.4:12 spikes:2.5`. The ids are Flipline's, so medals already earned stay attached, but the courses were rebuilt for Chromeline; Level 1 shows a jump at about 4 s and a loop at about 11 s. All 24 were finished by the bot (`botRun`, which plays from physics prediction by trying a few gas and flip patterns ahead, `PLANS`: gas pattern, then which arrow to hold for how long after take-off, and steers the bike in the air toward the slope it will land on, `botLevel`). The bot also set the time targets on the arrow-key physics (its time + 12% + 1 s) and the flips targets (what a flip-seeking version of the bot managed). The track editor writes the same tokens, and its share code is `FL1.` + the text in base64; tracks stay on the device. **Saving**: localStorage `flipline:save` (versioned, `v: 1`, unchanged from Flipline), holding coins, owned and chosen vehicle, rider and place, Endless and Daily bests, per-level medals (bits 1 finish, 2 flips, 4 time), best time and the ghost, challenge state, totals, secret-vehicle feats and settings. The ghost (`g`) is one number per input change: step number × 8 + input code, replayed through the same physics. Medals and Endless/Daily bests set on Flipline's easier track stay as they were. A level's best time and ghost from before Chromeline are not shown as a ghost, and the first finish on the new course replaces them, saving `gv: 3`. That covers ghosts with no `gv` (one-button) and `gv: 2` (arrow keys on Flipline's courses). Vehicles (12 bought with coins, 3 secret), riders (8) and places (6) are looks only; their ids are unchanged, and some display names changed (Volt Hopper, Neon Tuk, Static Ball; places Circuit City, Cryo Grid, Harbour Lights, Bio Dome, Night Market, Ultraviolet Yard). **Sound** is synthesised in code: an electric-motor whine, a kick and hats under each place's own original loop, and a low-pass on the music that opens up with speed. **Board**: `BackRoomStats.max('distance')`, `max('score')` and `add('runs')` after an Endless run, `max('medals')` after a level; Chromeline's entry in leaderboard.js (`d: 'flipline'`) shows them. Controls through keybinds.js: Gas (Space, up arrow, W; or the mouse, or touch anywhere), Lean back / backflip (←, A), Lean forward / front flip (→, D), Restart (R), Pause (Esc, P). On touch screens two round buttons in the bottom-left (`#lean`, touch only, dark glass to match) are the two leans, and touching anywhere else is the gas, so both can be held at once; the hint sits above the buttons. On the title screen, Space or pressing the city outside the menu card starts Endless at once. Restart is instant; after a crash a press of the gas goes again. Test hooks (`window.__fl`, with manual stepping: `advance(n, hold, draw, lean)`, `inputAt(t, hold, lean)`) exist only when `navigator.webdriver` is set. Nobody has played this version by hand or listened to it yet; the feel numbers in `P` and the music volumes are the first things to adjust. **The garage shop is closed for now** (`SHOP_OPEN = false` next to `SAVE_KEY`, the owner's call): nothing can be bought (unowned items say "Coming soon" with a disabled Locked button, and the click handler refuses too), what a save already owns stays owned and can be chosen, the secret vehicles still unlock by playing, and coins still add up and are never changed; set it to `true` to open buying again. - `e63334287a3deaa3/tidewick/`: Tidewick (Back Room), a classic 8-bit style side-scrolling platformer for one player (Canvas 2D and Web Audio, no Firebase except stats.js). Pip, a child in a yellow raincoat, crosses a rainy harbour at dusk in two stages: **HARBOR 1** (the quay, about 210 tiles) and **HARBOR 2: THE BREAKWATER** (a short stone fortress over dark water, about 100 tiles) with a boss at the end. Unlike the other Back Room games it isn't one self-contained `index.html`: it's ES modules (the owner asked for them) in `js/`, loaded by `