diff --git a/README.md b/README.md index 77a00330..73094635 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/slipstream/`: Slipstream (Back Room), a 3D open-wheel racer with a 22-car grid (Three.js, Firebase Realtime Database rooms under `rooms/ss-…`, same project and rules as Rumble Karts; invite links go through the home page as `#ss-`). Bots fill every free seat; in a party launch (party.js's room `p` + 6 characters, `isPartyRoom`/`partyRoom`) only the people's cars race (`newRace` with `party`: they line up from the front of the grid, `race.seatCar` holds the car in each seat and `race.cars` only the racing ones), nobody's car is handed to a bot when they leave (it leaves the race with them), and the lobby line says "No bots in party games" in place of how many cars bots drive; the round in the database is unchanged, so older pages in the room still read it; the host's browser drives them. Bot skill (`DIFF`: Easy, Normal, Hard; online races use Hard) scales corner speed, and the bots' braking, boost and lines are tuned by the `AI` constants: in clean air they brake later and keep the throttle in through corners, and in traffic, off line or near the outside edge they drive more cautiously, which keeps crashes and cuts down. Bots get no extra engine power; they have the same car as the player. Track limits: going off costs nothing but time (a small "Return to the track" hint shows while off), and cutting a corner to gain time adds 2.5 s to the race time; each car's total penalty seconds travel online in `pn`. Penalties are for the whole race only: lap times, Best, the fastest-lap award and the leaderboard's fastest lap count every lap, cut or not, while the finishing order, the results table and the course record use the race time with the penalties added (`raceTime`). **Clean times:** next to those, the game keeps separate no-cutting bests: a lap is clean when no excursion in it took a shortcut (in `judgeEx`, the car came back more than 1.5 m further round the lap than it drove while off, a stricter test than the penalty's; brushes with the line, crawls after a spin and being pushed off don't count), and it goes to the stat `clap:`; a race in which every lap was clean also sets `crec::`. An excursion still open at the line holds that lap's verdict until it is judged (`ex.hold`), and if the car is still off as it crosses, the new lap starts dirty too. The lap toast says "clean" or "cut". leaderboard.js shows them as the Clean lap and N-lap clean boards and only accepts a clean time that is no quicker than the same driver's ordinary one. **Slipstream ace:** whoever holds the fastest lap on the most tracks this season, 3 or more at once, wears a "Slipstream ace" medal by their name across the Back Room, and the lap and record boards (in the game's Leaderboard panel too) say who holds it; it moves as records fall and a new record season empties it (see miles.js, "earned", and leaderboard.js `ace()`). **Records and their season:** the game saves no times of its own (Best in the HUD and the lap toast's "personal best" are for the race being driven, and start again every race); its records live only on the leaderboards, where stats.js keeps them under the current record season (`lap:` in the game is stored as `lap:s2:`, and `clap:`, `rec:` and `crec:` the same way). Every lap and race record was reset for everyone on 17 November 2026 (season 2), after the track fixes of 14 November and the gentler barrier touches made older times unfair to compare; Elo and hours played were kept. Resetting them again is one number in stats.js and one in leaderboard.js, with nothing to change in the game (see stats.js, "Record seasons"). A cut is judged about a second after the car is back on the track; a car still off the track, or just back on, at the flag is judged there and then (`judgeEx`), so a cut just before the line still costs 2.5 s. Each driver writes its own `players/` node about 15 times a second while racing (the host's node also carries every bot in `bt`; other cars are carried forward from their speed between updates) and every half second when nothing has changed. Nothing else is saved: settings (name, last room, seat, track, laps, difficulty, camera, mute) stay in the browser under `ss:` keys. **Track building (`buildTrack`, `buildWorld`):** every circuit is flat and built from its points: `roundCorners` eases any bend tighter than `MIN_R` (14 m) and runs until none is left (Monaco's hairpin needs about 2,000 passes; with the old 400-pass limit it kept a 2.5 m cusp where the inside kerb folded onto the road and bots stuck, so Monaco laps are now several seconds quicker than times set before); barriers sit `WALL` from the centre line, pulled in where another stretch of road runs close and, on the inside of a tight corner, to at most 0.72 of the corner's radius, so they never double back on themselves; buildings and mesas are only placed where their whole footprint clears the barriers, and floodlight masts never stand beside another stretch of road. In automated browsers only (`navigator.webdriver`), `window.__ss` exposes the race code so a test can run bots-only races and time laps (`auto` lets a bot drive the player's car), plus `world` and `snap()` for checking scenery from above. **Graphics:** colours written as `#rrggbb` go through `lin()` before they reach a material or a vertex colour (three.js r128 lights in linear light, and without it red paint came out salmon). The sky is one 1024 × 512 picture per circuit drawn in code (`skyTex`: gradient, sun or moon with its glow, clouds, stars at night) on a dome that follows the camera; the fog and background use the circuit's `fog` colour so far hills fade into the horizon. The ground plane is cut into squares and drawn with a small polygon offset, because as two huge triangles it could hide the road lying 5 cm above it on graphics cards with coarse depth. Trees get a soft shadow each from one instanced mesh, placed away from the sun (`world.shadowDir`); each car's shadow has the car's shape and is moved the same way in `syncCarMeshes`. **Cars** are built for few draw calls: the body is one mesh (`CAR_GEO.body`, tapered pieces from `taperGeo` merged by `mergeParts`), painted through vertex colours by `paintGeo`, which makes one geometry per team and car number that all share the same points; each wheel is one mesh; every body uses the one `MAT.paint` material and every wheel `MAT.wheel`. A car is about 10 draw calls (it was 21), so a full grid in view went from about 650 to about 420. The helmet, rear light, boost flame, DRS flap and steering wheel stay separate meshes because the game moves or recolours them. **Dust, smoke and sparks** (`fxCar`, `fxStep`) are one pool of points in one draw call (520 on computers, 260 on touch screens): dust on grass and gravel, wheelspin smoke when pulling away, a wisp under heavy braking, sparks at the start of a boost or over a kerb at speed, only for cars within 150 m of the camera. They only read the car's state, use their own random numbers (so the bots' are untouched), and nothing about them is sent online; none of this changes the driving, the tracks or the timing. **Turkey Week** (`../events.js`, November 15 to 26, 2026): every car carries a pilgrim hat on its roll hoop: one shared hat geometry and material from `events.js` (`tkHat`), one extra draw call each. The game reads the one Turkey Week switch on the Back Room page (see `events.js` below) once, when it loads (off means no hats are made); it has no button of its own. **Cosmetics (not public yet, `garage.js`):** the page loads `../captains.js`, `../cosmetics.js` and `../wallet.js`, and fetches `garage.js` (handing it the game's internals: `COS`; every hook in `index.html` is `if(COS)`) only when something needs it: this player may see the Garage (`garageOn`: the cosmetics switch, see `cosmetics.js` below, or `?cosmetics=1` on localhost; or the account signed in is one of the site's captains, see `captains.js` below), or another driver in the room wears something, in which case the file only dresses that car (no Garage button, nothing of this player's own read, worn or sent, plain bots). For everyone else nothing is fetched, sent or drawn and the game is as before. **For a captain, while the shop is off** (`FREE` in `garage.js`), every item is free to wear, what is worn is saved by the game itself as `ss:kit` (`{slot: item id}`, not the shop's locker), nothing is bought or earned, and the sponsor challenges are neither counted nor shown; a captain's answer arrives a moment after the page loads and goes away on sign-out (`cosSync`, `access()`), and a look saved by anyone who may not see the Garage is left alone and not worn. **To open it to everyone, flip the one cosmetics switch (`ENABLED` in `cosmetics.js`).** With the Garage on, the menu gets a **Garage** button in the corner of the menu card beside the logo (so nothing else moves when it appears): a screen with a turning car (drawn by the game's own renderer in place of the demo race) and six tabs, Sponsor, Sticker, Livery, Helmet, Effects and Extras. *Sticker:* the player's own sponsor text (up to 16 letters, digits, spaces and `' & ! . -`; it must pass `NameFilter.isBad`, and a refused text leaves the old sticker on), four letterings, five shapes, two of twelve colours, and which of the five slots it goes on (nose, sidepods, rear wing, engine cover, helmet); saved as `ss:sticker`. *Sponsor:* nineteen made-up sponsors (`SPONSORS`: a colour pair, a mark drawn in code, a wordmark, two or three challenges; the last four, Polly's Crackers, Fancy Pants Dry Cleaning, Dust Bunny Robot Vacuums and Foam Finger Sports Drinks, came with the second wave in November 2026). Signing is free and puts the sponsor's sticker on every slot the custom sticker doesn't use; challenge progress (`ss:spons`) counts only in races the player drives (practice or online) and only for the sponsor signed at the time, and finishing them all grants that sponsor's livery (`BackRoomCosmetics.grant`). Sponsors, liveries, helmets, boost and slipstream effects, tyre smoke colours and two podium celebrations are catalogue items (`GAME_ITEMS` in `cosmetics.js`: sold in packs, free, or earned) worn through `BackRoomCosmetics.equip`; the Garage tries an item on the turning car before it is bought, and buys the pack it comes in. `garage.js` knows each by a short key (`lv-flames`) tied to the catalogue's slot and number in `NAMES`, so add new ones at the end of their slot in both places. *How it is drawn:* nothing is added to a car, only geometry and materials are swapped, so a car is the same number of draw calls. One shared atlas (2048 × 1024; half that on touch screens) holds every sticker (256 × 64) and livery (256 × 128: the side view over the top view) in the race; sticker panels are flat quads 12 mm proud of the paint, merged into the body mesh (seven) and the DRS flap (one), 16 triangles at most; a helmet design is its own 256 × 128 picture; effects go into the existing pool of points. *Team colours:* a livery repaints only the panels `CAR_GEO` marks with colour slot 4 (nose, tub, sidepods, engine cover; slot 4 is painted the team colour exactly as slot 0 when nothing is worn); the airbox, fin, mirrors, both wings and the endplates always stay in the team's two colours, and the name tags, tower and map are untouched. Bots carry one sponsor's sticker per team (picked from the track and the round number among the first fifteen sponsors only, so every browser agrees, pages from before the second wave included) and never a livery. The second wave also added twelve design liveries (livery numbers 24 to 35: Home Jersey, Varsity, Courtside, Pitch, Ice Rink, Centre Court, Black Sails, Ship's Hull, Pinstripe Suit, Tuxedo, Circuit Board, Robot Plating; the new sponsors' liveries are 36 to 39, and `cosmetics.js` marks a livery as earned only when it is a sponsor's), seven helmets (Eye Patch, Bandana, Gridiron, Baseball, Football, Pinstripe, Robot), three effects (Coin Shower, Sea Spray, Data Stream) and two podiums (Ticker Tape, Balloons). *Online:* the look travels in the player's own node as `cs`, one string of at most 64 characters (`1~sponsor~livery~helmet~effect~smoke~font.badge.colour.colour.slots~text`, each item's number within its slot in the catalogue), always in the lobby and about every two seconds while racing (readers keep the last one); pages from before ignore it. `readWire` checks the whole string against one pattern, each number against the catalogue and its slot, and the text for length, characters and the name filter before anything is drawn; nothing checks that the sender owns what it wears (like every other stat). Podium celebrations are only seen by the player. Not built: number fonts. Looks only: nothing in `garage.js` is read by the physics, the bots, the collisions or the timing. It has Spanish (`slipstream/es.js`, through `../lang.js`; the timing tower, lap box and dash are marked `data-noi18n` and translated with `T()` in the page, and the menu and pause screen have the EN | ES switch). - `e63334287a3deaa3/updraft/`: Updraft (Back Room), a third-person climbing game: one continuous course from a city street to the Crown 3000 m up through ten zones (Scrapyard Streets round a three-block tower, Lost and Found's giant floating everyday things, Cloud Isles, Thin Air and the Edge of Space up to the old summit at 1000 m, then Aurora Drift, Storm Front, Skyport, Orbit Yard and The Crown above it), with no checkpoints, so a missed jump means falling until something catches you (Three.js, Firebase Realtime Database rooms under `rooms/up-…`, same project and rules as Rumble Karts; Quick match uses `rooms/up-pub-1` to `up-pub-4`; invite links go through the home page as `#up-`). The page has two scripts. The first, `UpCore` (between `/*CORE-START*/` and `/*CORE-END*/`), has no DOM or Three.js in it: the movement constants `C` (a fixed 1/120 s step; keep them as they are, the whole course is measured against them), the collision (upright boxes, optionally turned or sloped, and cylinders, in an 8 m grid; the vertical move is swept, so even at full fall speed you can't pass through a thin plank), the course (`build`, from a fixed seed, so every player gets the same world), the checker (`check`: every jump between neighbouring path platforms against the jump envelope, plus blocked jumps and low ceilings) and the climb bot (`runBot`, `botInput`), which plays the course with a player's inputs. The course is the zone scripts in `build` (the zones themselves, with their heights, are `ZONES`; `SUMMIT` is the old summit at 1000 m and `TOP` the Crown at 3000 m): each places the next path platform relative to the last (`go`: gap past its edge, height step, turn) while the route circles the middle; set pieces (the scaffold, the crane, the tower's terraces and ledges, the keyboard, swings, lifts, fans, switchbacks with launch-pad shortcuts) are functions there too. `K.maxFrac` caps every jump between path platforms as a share of a perfect sprint jump: 62% in Scrapyard Streets, which teaches the moves, and 80% from Lost and Found on. **The 2000 m above the old summit** (added later) is built after everything else in `build`, from the same random numbers carrying on, so none of it moves anything below: every new piece is marked `nz`, and a hash of everything else (colliders, path, scenery, signs, fans, shortcuts, secrets) is the same as before it was added; keep it that way (add new things at the end, never in the middle, or every platform after them moves). The new zones each have something the lower course doesn't: **Aurora Drift** (1000–1400 m, night, curtains of light) has pulse platforms (`kind: 'blink'`, `blink: {T, on, ph}`) that are lit for 70% of a beat on the shared clock, the next one coming on half a beat later, so two in a row are lit together for a fifth of every beat (`check` makes sure of that window; a dark one leaves a faint outline and the one you stand on flickers and ticks before it goes); **Storm Front** (1400–1800 m, rain and lightning) has gusts (`course.winds`: layers of air, each blowing one way, `acc` 9 m/s², for about 2 s of every 7–8 s after a 1 s warning of streaks and a whoosh; `windAt`) that only push you in the air, and every jump there still makes it with a full gust in your face if you steer against it (`check`), plus wind-turbine blades that turn about their middle (a spinning box, `spinArm`: ride one end to the other and step off when it lines up again); **Skyport** (1800–2200 m, a floating town at sunset) has conveyor belts (`belt: [vx, vz]`, 2.6 m/s: walkways with you and treadmills against you, each starting right by the one before), lanes of barges crossing the route, cannons (`kind: 'cannon'`, `shot`: step onto the pad and it throws you from its middle, the same arc every time, onto the next platform; `check` plays the throw out with no input) and a blimp whose gondola ferries you 20 m across and up; **Orbit Yard** (2200–2600 m, over the curve of the world) has low gravity (`ZONES[i].g`, 0.55; `gAt(y)`, used by the physics, `check` and the bot; a jump from below 2200 m into it is sized for normal gravity), satellites whose panel arms turn, and long moon leaps; **The Crown** (2600–3000 m) has waves of steps that rise and fall one after another, a great pendulum, a carousel of moons on a slow ring round the middle (`type: 'ring'`, which the bot may jump off while it moves), and a last spiral of jewels up to the Crown (`summit: 2`). Each new zone has an `intro` line shown under its name when you get there, its own sky (`ATMO`), music (`CHORDS`, `ROOTS`, `STYLE`) and far scenery. After changing it, run `check` and `runBot` (in an automated browser `window.__up` has them, and `__up.bot(true, 0)` with `__up.advance(seconds)` climbs the whole course in the page; the bot takes about 1233 s to the old summit and 4400 s to the Crown). Moving platforms are functions of a clock everyone shares (server time), so they're in the same place for every player. Online, each climber writes only their own node `rooms/up-/players/`: `n, c, x, z, h, ts` as the rules require, plus `y` (height), `a` (pose), `m` (highest this run), `t` (run clock), `f` (time at the top, the Crown, 0 until then; others ignore an `f` from anyone whose `m` is under 2995, which is what a copy of the page from before the course grew sends at 1000 m), `b` (best height) and `j` (join time); there's no host. A tab in the background keeps its node's `ts` fresh from a 1 s timer, so the others don't drop the climber. Parties can launch it (its row in `GAMES` in `party.js`). The run is saved in the browser under `updraft:run` (`ver: 2`; where you stand, clock, falls, jumps, highest, `fin` the time at the Crown and `mile` the time at the old summit; a run saved before the course grew has no `ver`, and its `fin`, its time at what was then the top, becomes `mile`, so it carries on climbing with its clock; standing on a moving platform, also which path platform it is and where on it, `on`/`lx`/`lz`, so a reload puts you back on it; in the air, your speed `v` and where the fall started `ff`, so the fall carries on), and a saved spot that's inside something or over nothing (after a course change) puts you on the nearest clear spot on the same level within 3 m, or failing that on the nearest path platform below it; records under `updraft:best` (`h` best height; `time` and `wins` the fastest climb to the old summit and how many, still the `summit` and `summits` stats so times from before the course grew stay comparable; `t2` and `w2` the same for the Crown, the `summit2` stat, lower is better, in stats.js's `LOWER`, with its own Leaderboards row). Reaching the old summit shows a banner ("Old summit · 1,000 m", your time and best) instead of the finish screen; a marker post stands there and its sign reads "Old summit"; the height bar runs to 3000 m with a gold mark at 1000 m. The finish screen and fireworks are at the Crown. Moving pieces more than the fog's distance above or below the camera aren't drawn, and other climbers are drawn at any height, settings and name under other `updraft:` keys, and keys under `keybinds:updraft`. Slow motion (hold F by default, rebindable as `slowmo`; Slow on touch screens) works only in the air: the climber's own simulation runs at `SLOW` (0.35×) speed, easing in and out over 0.15 s and stopping at once on landing or a ledge grab. It takes the same fixed `C.DT` steps, just fewer per second, so a fall lands in exactly the same place; moving platforms, the shared clock and the run clock keep real time (so it costs time in a race), and the climber is drawn between steps so it stays smooth. Nothing about it is saved or sent: others just see you fall more slowly. V (the `view` action) switches between the camera behind you and first person, as does zooming all the way in (and out again); the choice is saved as `updraft:view`. In first person the camera sits at eye height (1.58 m, between the last two physics steps so it's smooth at any frame rate), your own figure is hidden but its drop shadow stays so you can judge landings, you always face where you look (so others see you turn), the pitch goes down to 1.52 rad so you can look at your feet, landings dip the view slightly, the eyes are kept clear of anything right beside or above you, and computers show a small dot in the middle; it uses the same mouse capture (Pointer Lock) as third person. Watching someone is always from behind them. Online, after a change, one more update is written once you stop changing, so others don't see you carried on past where you stopped (a quick turn in first person otherwise showed up to 50° over-turned until the 2-second heartbeat). On touch screens: a stick, Jump (hold for a full jump), Sprint (a toggle), Slow (hold), an eye button for first person (hidden while watching), drag to look and pinch to zoom; the `body.touch` rules at the end of the stylesheet place the HUD for phones held upright or sideways. **Secrets** (nothing in the game points to them or hints at them; this is the only place they're written down). There are three, and each is a ride: a short scripted path (`ride`, `ridePlan`) with the physics switched off, so there's nothing to fall off and no input, slow motion never starts (and lets go at once if it was on), it carries on while paused like the rest of the world, a save mid-ride puts you where it comes out, and positions are published as usual so the others see it. Every ride comes out on the normal route, never above it and never past it. (1) The **staff lift**: stand at the foot of the crane's mast down on the street (within 3.3 m of its middle) and hold the `lift` key for a second (G by default; it's in the Controls list as just "Hold to use" and has its own keybind context), or hold Jump on a touch screen; a small "Hold G" ("Hold Jump") prompt shows only on that spot and fills up as you hold. You walk round to a plain yellow door in the mast's +x face and a cab rides up inside the mast (about 6 s, with a hum and a bell) to the top grate, where the route carries on along the jib, skipping the 22 m spiral. Others see a cab round anyone riding in the mast. (2) The **service elevator**: once you're up the crane, cross the jib and drop onto the terrace round the top tower block (112 m), as the route does, then walk round that terrace to the side of the block facing away from the crane (in the shipped course its +x face; the door is 6.8 m from the middle of that face, toward +z). A plain grey steel double door in a plain panel sits at terrace level there; stand in front of it and hold the lift key (Jump on touch) for a second, with the same prompt. You walk in, a cab rides up inside the block (7 s, hum and bell) and you step out of a small lift room on the roof (168 m) onto the roof itself, which is on the route, so it skips the ledges round the top block. Where it goes is worked out from where the mast is (`secrets.elev`: the face `n`, how far along it `s`); the lift room is the only collider, and `check` makes sure its exit is on the roof. The shaft and the cab are a separate scene (`inScene`) drawn over the world only while the camera is inside the shaft (the block's own walls face outward); in third person the camera follows you through the door and sits up in a corner of the cab. Others see you walk in and come out on the roof, and the doors open for them. (3) The **hidden updraft**: the first stack of books past the roof (the second book of Lost and Found, top at about 169.7 m; `secrets.gust.stack`) has a column of rising air off its far side, away from the tower and from the jumps either side of it: 4.4 m out from the book's edge, 2.4 m across in radius, from just under the book's top down 20 m. Take a running or walking jump (or step) off that book's top straight outward, within about 15°, and as you fall into the column it catches you with a burst of wind and streaks, carries you tumbling round the middle of the course and up about 106 m in about 10 s, and sets you down on the book just after the cage lift (`secrets.gust.land`, path 254, 275.8 m). It only counts if the last thing you stood on was that top book and you left it from up there, so a missed jump on the route never triggers it (a fuzz of 22,500 jumps between the neighbouring route platforms, aimed sloppily, found none), and neither do the bot or a watcher. Its path (`way`, smoothed by `curve`) spirals up 13 m from the tower's axis, outside the roof and inside the route's ring, and `check` reports anything solid in its way. Its pose code is `a: 10` (tumbling; older pages show it as standing). Found secrets are kept per browser under `updraft:secrets` (`{lift: 1, elev: 1, gust: 1}`; an old `roof: 1`, from back stairs that used to be in the top block, is just ignored), and the first find of each adds 1 to a `secrets` stat through `BackRoomStats.add` and shows "Secret found: …" in the feed (recorded by stats.js; the Leaderboards don't show it). **Gear (November 2026, captains only for now):** skins, backpacks, height rewards, fall screams and plummet trails, all drawn and played in code, in `updraft/gear.js`. The switch is `GEAR_PUBLIC` (false) near the end of the page's script: `gearOn()` asks `captains.js` (`may(GEAR_PUBLIC, 'gear', 'updraft-gear')`, so `?gear=1` works on localhost or in an automated browser), and only then is `gear.js` fetched and a Gear button added to the menu and the pause screen; for everyone else the page, the menu, the saved data and the node are exactly as before. Captains wear everything free and nothing is bought: 54 skins (15 adventurers, 7 silly ones and, since the November 2026 wave, 16 sports kits, 3 robots, 3 pirates with eye patches, 7 suits and costume-party bosses and 3 more, each group under its own heading in the Gear screen; skin 0 is the climber as before, in the player's colour; shirt numbers are drawn in bars by `digits()`), 10 backpacks (pack 0 is the old climbing pack; the skateboarder, surfer, rock star and tin robot wear their board, guitar or key in its place, and a chosen pack replaces it), 5 fall screams and 4 trails. The three **height rewards** are earned from the player's own saved best height (`updraft:best` `h`), checked every frame: the 1,000 m Badge at 1000 m (the old summit), the Space Helmet at 2200 m (Orbit Yard, the first zone that is really in space: low gravity over the curve of the world; Edge of Space below it is only the edge) and the Golden Crown at 3000 m, the Crown itself, which only a finished climb reaches (`onSummit` sets `h` to 3000); a new one says "New in your Gear" in the feed, and a locked one shows the height it needs. The Space Helmet and the Crown take the place of a skin's hat. Gear opens on its own screen with the climber turning slowly in the open part of the screen (drag to turn) and thumbnails drawn once with the game's own renderer; trying a scream or trail plays a short falling demo. What is worn is saved as `updraft:gear` `{s, p, r, x, t}` and sent as one field in the player's own node, `o`: `"s.p.r.x.t"` (e.g. `"13.2.3.2.1"`), only while Gear is open to them and something is worn (taking everything off writes `o: null`). Older pages ignore it; newer pages fetch `gear.js` just to draw that player, draw the plain climber for any number they don't know, and draw a reward only if the sender's `b` has reached it. A scream plays once a fall passes 18 m/s (others' screams fade out by 45 m away, and only after their pose has said "falling" for 0.35 s), and a trail is a camera-facing ribbon of the last 0.5 s, one extra draw call while it's on screen. Looks only: collision is UpCore's capsule and never reads the figure. A dressed climber is the same jointed figure rebuilt as one vertex-coloured mesh per joint with shared materials, 11 draw calls (one more for a glowing bit, one more for the helmet's glass) instead of the plain figure's 30; its shapes are cached per look and never disposed. Item numbers are permanent and match the 'updraft' items in `cosmetics.js` (add new ones at the end of their slot). **Spanish:** it loads `../lang.js` and its own words (and Gear's) in `updraft/es.js`; zone names, signs and Gear are translated. Text drawn on canvases or built in code uses `TX()` (`T` is the textures here); signs in the world are drawn when the course is built, so they change language on the next load. The EN | ES switch is in Settings. - `e63334287a3deaa3/asteroid-run/`: Asteroid Run (Back Room), a fast single-player runner through tunnels of tiles floating in space (Three.js, no Firebase except stats.js). It is deliberately simple and flat to look at: every tile is one flat colour with a thin lighter outline (one tunnel colour per zone, set in `THEMES`; special tiles have their own colours in `TCOL`), holes show the plain dark starfield behind, the runners are flat cartoon sprites seen from behind (drawn on a canvas, three frames: two running steps and one in the air), crystals are flat spinning diamonds, and there are no lights or shading: everything uses `MeshBasicMaterial` (the tiles add a few lines in `onBeforeCompile` to turn the outline mask into a lighter edge, dimmer for a tile left in the dark), so a wall looks exactly the same once it turns into the floor. You run forward on your own and only sidestep and jump; running off the side of the floor takes you up the wall and gravity turns with you, so the wall becomes the floor (the main trick: a wall is often the way round a hole). A soft dark spot under the runner shows where it will land (none over a hole). Everything that isn't drawing is the `AR` module between `// ==CORE==` and `// ==/CORE==`, with no DOM or Three.js in it, so a test can run it on its own: the runners (`CHARS`), tile types (`T`), the levels (`LEVELS`), the zones and side tunnels (`ZONES`, `SIDES`, which also build the map `MAP` and `PRED`), the endless tunnel (`buildEndless`, `extendEndless`, `ENDZ`), the fixed 1/120 s physics step (`step`), the camera (`camStep`) and the checking bot (`plan`, `runBot`). **Jumping**: by default a tap is a small hop (about 1 m high, 4 rows long) and holding jump makes it bigger, smoothly, up to the runner's full jump once held for about a quarter of a second; letting go early only makes gravity firmer, so nothing drops suddenly. `jumpArc` works out the take-off speed and the two gravities from the running speed so the full jump is always exactly `jl` long and `jh` high (10.5 m, 7 tiles, and 2.5 m for most runners; Moppet 12.5 m and 3.3 m) and a tap is `TAP` (0.4) of the height. The Settings option Jump: Always full (`asteroid-run:set` `fixed`) makes every jump the full one, whatever the hold. A jump still works for `COYOTE` s after running off an edge, a press up to `JBUF` s before landing jumps on landing, landing just short of a tile still steps you up onto it, and in a narrow tunnel the far wall is a ceiling you bump into (`headroom`). Speed rises by a tenth from the start to the end of each level (`speedAt`); Endless goes from 1x to 1.5x over its first 2 km (`endlessSpeed`). **Runners** (each with one fixed full jump; `free`: how it unlocks for nothing, `cost`: crystals to unlock it straight away): Pip (all-rounder, free), Brick (heavy: cracked tiles never give way; 6 levels), Vex (fastest, slippery; clear the Frostbelt side tunnel), Moppet (biggest jump; 18 levels), Twitch (quickest sidestep and a double jump; clear Comet Tail), Wisp (hold jump on the way down to float for up to `GLIDE_T` s; clear Deep Hush), Clink (crystal magnet; 30 levels) and Spool (the Ability key or button lays a glowing bridge over the holes ahead for `BRIDGE_T` s, recharging in `BRIDGE_CD` s; 42 levels). **Tiles** (`T`): normal, cracked (they hold while you keep running but give way 0.3 s after you step on, almost at once if you land on one, and visibly fall away), ice, conveyors left/right/forward/back, ramps (a launch 1.6 times as long and 1.3 times as high, always the full jump; drawn as a lime wedge), sticky goo, speed strips (1.3 times the speed for 1.5 s, and the view widens), glow tiles (always lit) and Spool's bridges (`W.br`, never in the rows). Dark rows (`W.dk`, from `D1`/`D0` in a level) are drawn almost black except from just behind the runner to `LIT` (14) rows ahead, so the next tiles are always visible. **Levels**: 57 (indexes never change, since saved progress is keyed by them; the first 32 are the original levels, lengthened, and 32 on were added later), each 20 to 40 s with any runner, built from a line of pieces (the comment above `LEVELS` lists them) and a fixed seed, so every player gets the same level. Shapes (`SHAPES`): square, six-sided, eight-sided, narrow square, wide eight-sided, a thin six-sided pipe, three-sided and five-sided. They're grouped into ten zones on the main path, each teaching one idea (holes, walls, crumbling tiles, a mixed Junction, narrow tunnels, conveyors, speed strips, ramps, the dark, and the Core finale), with a fork in most zones (either level opens what's next) and three harder side tunnels (Frostbelt: ice, Comet Tail, Deep Hush), each of which frees a runner. The map is a big scrolling picture (drawn top to bottom on a tall phone); levels are named by zone and place (`2-3`) or side tunnel letter (`F2`). The first time a zone is played, Dispatch (the radio voice of the little story: the quake put the asteroid's lights out and you carry the last spark home) says a line or two (`say`), and the map can show it again. Falling 2.2 m below the wall (`DEATH_H`) is a fall into space: the camera holds still while the runner tumbles away for a moment, then you're straight back at the start (tries are counted, no limit). **Endless** is seeded per run (the Daily run uses a seed from the date, so everyone gets the same tunnel all day) and changes zone every `ENDZ_LEN` (360) m, with the zone's colour and hazards (`ENDZ`: holes, crumbling, conveyors, speed strips and ramps, ice, the dark, everything); crystals come in short lines, and picking them up quickly builds a streak (every fifth in a streak gives one more crystal). After a fall the score shows at once; Space, Enter, R or a tap outside the card runs again, and once a run you can spend 15 crystals to carry on from the next solid ring (`respawn`). **Crystals**: each level's three once each, plus everything from Endless; spent on runners and on cosmetic trails (`TRAILS`). After changing a level or the physics, run the bot (`AR.runBot(AR.buildLevel(i), AR.CHARS[k])` in Node, or `__ar.autopilot(true)` with `__ar.advance(seconds)` in an automated browser, where `window.__ar` exists): every level should be cleared by every runner, and pieces like a face piece need room before them (see the comment above `LEVELS`). Drawing: one `InstancedMesh` for all tiles (colour per instance), one each for conveyor arrows, chevrons, cracks, goo, ramps, bridges and falling tiles (only drawn when there are any), one for crystals, the runner, its shadow, the sparks, the stars and the finish frame, so a frame is about 6 to 14 draw calls; tiles are rebuilt only when you move onto a new row. On computers a demo runner (the bot) runs the endless tunnel behind the menu; on touch screens the menu shows a still tunnel. The HUD is three small pills (pause, progress or distance, crystals), a bridge meter for Spool, and short pop-ups for streaks and close calls (jumping off the very end of a tile, landing on its edge). Saved in the browser only: `asteroid-run:save` (`{v: 2, lv: {: {c: crystal bits, t: best time, n: clears}}, bank: crystals kept from Endless, ch: runner, best: Endless metres, runs, own: runners unlocked with crystals, spent: crystals spent, trail, trails, bestBy: {runner: Endless metres}, daily: {day, best}, seen: {zone: 1}}`; a v1 save keeps its levels and crystals, every runner the old rules had unlocked, and its Endless best for the runner it had picked), `asteroid-run:set` (sound, graphics, touch layout, `fixed`) and keys under `keybinds:asteroid-run`. Stats hooks: `max('levels', levels cleared)`, `max('crystals', crystals collected in total)`, `max('distance', metres)` and `max('dist-', metres)` at the end of an Endless run, `add('runs', 1)` for each level cleared and each Endless run. Touch: arrow buttons bottom left and a jump button bottom right (hold it for a bigger jump), Spool's bridge button above it, or (Settings, Touch: Screen halves) hold either half of the screen to sidestep. **Wardrobe** (hidden: captains only for now): aliens to run as, run trails and tunnel colours, all drawn in code by `wardrobe.js` beside the page, which the page fetches (with `../cosmetics.js`, for the names: `GAMES['asteroid-run']`, slots `alien`, `trail` and `tunnel`) only when `wardrobeOn()` is true: `ASTEROID_PUBLIC` (the one line that opens it to everyone; `false` now), a captain (`../captains.js`), or `?wardrobe=1` on localhost or in an automated browser (remembered for the tab; `?wardrobe=0` forgets it). For everyone else nothing more is fetched or shown and the game draws exactly as before. A captain gets a Wardrobe button in the menu (above Settings and help) and every item free to wear. The 39 aliens (20 of them added in November 2026: alien athletes with shirt numbers on the back, two robot aliens, space pirates with eye patches, and aliens in suits, a fedora, a fur hat and a tuxedo, all on one shared round-headed body, `kid()` in `wardrobe.js`) are each drawn from behind in three frames, like the runners, for the game, and from the front for the Wardrobe; an alien only replaces the runner's picture, on the same plane at the runner's own size, and the physics never looks at the picture, so the hit area, speed, jump and ability stay the runner's. The 10 run trails are small flat shapes (stars, drips, bubbles, hearts, confetti, pixels, snowflakes, petals, sparks, rings) in their own `Points` object (one draw call, only while any are alive; the shader cuts the shapes out), dropped only while the runner is moving and always slower than it, so they never go ahead of it; worn, one replaces the crystal trail. The 10 tunnel colours change the plain tiles only (special tiles, holes, the dark and the sky stay as they are), and `wardrobe.js` checks each colour zone by zone before using it: a hole must stand out at least as much as in the worst default zone (contrast 4.31 against the zone's sky), and every special tile that zone uses must be at least 0.15 away from it in OKLab (the default zone colours go down to 0.099, The Core against goo); a colour that fails gives way to the next in the tunnel's list, and a zone with none left keeps its own colour (Candy Checker in Drift Docks). `__ar.WR.audit(n)` gives a tunnel's worst case. Worn items are saved as `asteroid-run:look` (`{a, t, u}`, item numbers from `cosmetics.js`, 0 for none); the game has no online players, so nothing is sent anywhere. **Spanish:** it loads `../lang.js` and its own words in `asteroid-run/es.js` (level, zone and runner names stay English; Dispatch's lines, menus, the map and the Wardrobe are translated); text in the SVG map and canvases goes through `TX()` (not `T`, which is the tile list here), the runner panel and map are rebuilt on a language change, and there is an EN | ES switch next to Controls. Wardrobe item names come from `../cosmetics.js` and stay English. + +- `e63334287a3deaa3/rollaway/`: Rollaway (Back Room), an endless single-player marble runner (Three.js r128, no Firebase except stats.js). A heavy marble rolls on its own down a sun-bleached sandstone aqueduct high above a sea of cloud at sunset; the player only steers, it speeds up from 13 m/s to 40 m/s over about two and a half minutes (`vAt`, 3,600 m, then slowly to 46), and rolling off an edge or touching a hazard ends the run. **Look:** warm sandstone decks with terracotta edge bands (drop edges always have the band; walls that are safe end in a raised rail), stone piers and arches under the deck, broken-off ends at every gap, a painted sky dome whose panorama also lights everything (`scene.environment`, made once from a canvas), a scrolling cloud sea and far rock towers; hazards are all dark iron with cream and rust bands and pointed shapes (posts, rolling drums, pendulums under stone gantries, stampers), so they read by shape and value, not only colour; gems are rounded cyan crystals. No outside images: every texture is drawn on a canvas at load. Everything that isn't drawing is the `RA` module between `// ==CORE==` and `// ==/CORE==`, with no DOM or Three.js in it, so a test can run it in Node: tuning (`P`), speed and difficulty by distance, the track generator (`Track`, `MODS`), the fixed 1/120 s physics (`step`), the bot (`Bot`, `botPlan`) and the passability check (`validate`). **Physics:** the track is a centre line (one sample per metre: position, heading, curvature, bank) with deck pieces that each cover a stretch of it and a sideways range that can narrow, widen or shift; the marble lives in track space (distance `s`, sideways `u`, height `y`). Forward speed depends only on distance, so the time the marble reaches any point is known in advance (`tAt`) and every moving hazard is phased to leave a way through when it arrives. Steering is a sideways force (`A_STEER` 28 m/s², 1.5× when steering against the drift), damped by `GRIP` (4.2/s, 6.5 with no input) so it drifts a little and never slides on ice; a curve pulls outward by v²κ unless the deck is banked; walls and banks push back by gravity along the slope (`G` 22 m/s²); in the air steering is 35 %. Landings faster than 3.2 m/s bounce at 28 %; ramps launch, gaps are cleared by flight, and a marble below any deck that could catch it is out. **Track:** a new seed every run (the Daily run uses one from the date, so everyone gets the same course all day), assembled module by module from 28 modules in four groups (rests: straight, banked turn, flat curve, S-bend, rollers, plaza; layout: narrow beam, half-pipe, curving half-pipe, fork with a narrow risky branch full of gems, zigzag, eye, crossing beams, holes, stepping stones, tilting slabs, wall ride; air: ramp over a gap, double gap, terrace drop, ramp onto islands; hazards: post slalom, post gates, rolling drums, pendulums, pendulums over a beam, stampers, a mixed gauntlet). Every run opens the same way before the seeded modules begin: the start plaza, a wide straight, then one post in the middle of a wide deck about 140 m in, so the first steering choice always comes early and is always easy. Difficulty (`diffAt`, 0 to 1 over 3,800 m) sets deck width (6 m down to 3.6 m), beam width, seconds between hazard rows, gap length as a share of the flight, curve tightness and how many rows a module has; `_pick` adds the connection rules (never the same module twice, a rest after one to three hard modules, never two launches in a row, a plaza and a 13 % speed breather every 800 m). **Checking it:** `RA.validate(track, metres)` follows every reachable state (all states share distance and time, so it is exact) with only 80 % steering, hazards 12 cm bigger and decks 6 cm narrower, and reports any module nothing gets through; `new RA.Bot(track)` looks 1.5 s ahead by simulating its choices on the real track. After changing a module or a physics number, run both in Node on a few hundred kilometres of seeds. **Score:** distance times a multiplier that rises 0.1 per gem and 0.25 per close call (passing a hazard within 0.6 m) and settles back after 4 s; gem chimes climb a scale while you keep collecting. A milestone banner and stone gate every 500 m; a gold strip with two BEST flags across the deck where your best run ended (the Daily run's own best on a Daily run). **Marbles** (cosmetic, by best distance): Lapis, Sunstone 500 m, Glacier 1,000 m, Jade 1,500 m, Ember 2,000 m, Tiger Eye 3,000 m, Nightfall 4,000 m, Pearl 5,000 m; each texture has a light seam so the roll always shows. **Audio** is all Web Audio: rolling rumble and hum by speed and surface, wind rising with speed, landing thumps, a close-call whoosh panned to the side, gem chimes, and a 112 BPM loop in four layers (pad, bass, hats, kick, arpeggio) that come in as the speed rises; Volume, Music, Effects and Mute (M) in Settings. **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 of the screen, and optional tilt; a steering sensitivity slider; R or Space restarts at once (under a tenth of a second). **Drawing:** the deck is built in 16 m chunks from a pool of meshes rewritten in place (one draw call each), piers and arches are two instanced meshes, each hazard kind one instanced mesh, gems one plus one for their halos; world positions are kept near zero by a floating origin. Graphics Auto / Low / Medium / High (`QP`: resolution, view distance, shadow map on High only, normal map, second cloud layer), plus `../autores.js`. Saved in the browser only: `rollaway:save` (`{v: 1, best: score, bestD: metres, runs, gems, ball, daily: {day, best, bestD}, how}`) and `rollaway:set` (quality, sensitivity, reduce effects, volumes, mute, touch mode, tilt, mouse). Stats hooks at the end of every run: `max('distance', metres)`, `max('score', score)`, `add('runs', 1)` (the Rollaway row in `../leaderboard.js`). **Spanish:** `rollaway/es.js` (marble 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/`: Hush Pools (Back Room), an original co-op horror obby for 1 to 4 players in flooded tiled pool halls (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). Players hop between floating tiles above water across nine rooms while a tall, blind monster wades the water and hunts **by sound only**. **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, 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 (1 monster a room, bigger tiles, 50% coins), Normal (up to 3) and Hard (up to 5, smaller tiles, louder for the monster, 160% coins, opened by two Normal escapes). **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)`; falling in is loudest (1.0), clipping the water with your feet 0.7, a hard or edge landing 0.42, running on tiles 0.16, swimming 0.5, valves 1.05, a bottle 1.25 and its echo; walking and creeping are silent. 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`) drifts (0), goes to look at the loudest thing it remembers (1), lunges at a fresh noise close by (2), holds someone (3) or is stunned by a flare (4); memory fades over 8 s (`memWeight`), and it paths around tiles and pillars on a 0.5 m grid (`gridPath`). A lunge takes anyone in reach; 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 camera move, red edges, a screech; no blood), with a gentler version in Settings. **Rooms** (`ROOMS`, built from a seed by `buildWorld(df, seed)`): 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 every monster within 6 m for 5 s and free anyone held) 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`). Under the water for 1.5 s, or 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), `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, the monster's states and forgetting, item checks, seeds, the memory tiles and keypad, coins and upgrades, checkpoints, wipes, revives and valves), headless bots that play whole runs with the real physics (2 to 4 bots escape on Easy and Normal), and two headless browsers in one online room (joining, ready, falling in, going down, a rescue and the host leaving). Automated browsers get a test hook, `window.__hp`. - `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 ` + + +Rollaway + + + + + + + + + + +
+ +
+ + + + + + + + + + + +
+ + + + + + + diff --git a/e63334287a3deaa3/rollaway/preview.jpg b/e63334287a3deaa3/rollaway/preview.jpg new file mode 100644 index 00000000..3f01cc3c Binary files /dev/null and b/e63334287a3deaa3/rollaway/preview.jpg differ