From 9476dd2bfaab29528163b91341f69f4e72aeeff3 Mon Sep 17 00:00:00 2001 From: Ian Massaro Date: Tue, 17 Nov 2026 23:38:35 -0500 Subject: [PATCH 1/4] Backrooms: add the Poolrooms map and a map picker A second place besides Level 0: tiled halls that open wide onto each other, some flooded ankle-deep, with tiled colonnades and low pool edges for cover. Built on the same 4 m grid and pieces, the west half mirrored onto the east about the middle so spawns are fair for any roster. Practice picks the place on the menu (saved in this browser); online the host picks it in the lobby (round.mp). A match in another place is mv 4, and the host falls back to Level 0 (mv 3, unchanged) if any page in the room is older. Mix picks a place per round from the round seed. Co-Authored-By: Claude Opus 5.5 --- README.md | 7 +- e63334287a3deaa3/backrooms-1v1/index.html | 299 +++++++++++++++++++--- 2 files changed, 270 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index d5e9d0a4..a98f881a 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,12 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/showdown/`: Showdown (Back Room), no-limit Texas Hold'em for up to 8 players (Firebase Realtime Database rooms under `rooms/sd-…`, same project and rules as Rumble Karts; invite links go through the home page as `#sd-`). Everything travels through each player's own node: the dealer (the player with the newest dealer number, or with none yet, whoever has been in the room longest) runs the table and publishes it as JSON in `tb`, and seals each player's hole cards to that player's key in `hc` (ECDH P-256 + AES-GCM via Web Crypto), so the database never holds readable hole cards; players write only their own action (`ac`), sit-out (`sit`), rebuy (`rb`) and chat (`ch`). The dealer's browser does see every card, so it isn't cheat-proof against a dealer with developer tools. If the dealer drops, the next player takes over from the last table it saw and refunds the hand in progress. Bots (Easy, Normal, Hard) fill empty seats and run in the dealer's browser. Play chips only; nothing is stored between sessions except practice stats in the browser. The look is all page elements and CSS, with no pictures: the rail, felt, cards (`.cd`), chips (`.chip`) and seat plates are drawn with gradients and shadows, and the felt's weave is one small speckle tile made once in the script (`feltGrain`, which has its own random-number generator so it never touches the one the cards and bots use). `layout()` sizes and places everything; on a short, wide screen (a phone held sideways: wider than tall and at most 520 px high) it adds `.dock` to `#app`, which turns the action bar into a column on the right, shows the table message in `#dockmsg` above the buttons instead of in the middle of the table, and gives the table the space to the left. The moving parts are the deal, the card flip, winning cards lifting (the `translate` property, so it can run with the flip, which uses `transform`), chips sliding to and from the pot, and a slow halo on whoever's turn it is; all of them are switched off under `prefers-reduced-motion`. None of this is sent to other players. Other players' hole cards only ever go into `tb` (each seat's `sh`, hand name `h` and best five `c`, plus a "shows" line in the log) at the showdown: an all-in run-out deals the rest of the board with every hand still face down, and at the showdown hands are turned over in order (whoever bet or raised last on the final betting round first, else the first player after the button), and a hand that can't win or tie any pot it's in is mucked face down instead (its action `l` becomes `Muck`, the log says it mucks, and its cards are never published). Hands that end with everyone else folding are never shown. - `e63334287a3deaa3/chromaflage/`: Chromaflage (Back Room), paint-yourself hide and seek for up to 8 players (Three.js, Firebase Realtime Database rooms under `rooms/cf-…`, same project and rules as Rumble Karts; Quick match uses `rooms/cf-pub-1` to `cf-pub-4`; invite links go through the home page as `#cf-`). Hiders paint their own bodies in a paint studio (brush, an eyedropper that reads the true colour of whatever surface you click, fill, undo, glossiness) and pose to hide (crouch under tables, lie under beds, flatten, or stick to a wall with G or the Stick button and slide up, down and along it at any height, upright or sideways, until they jump to let go); seekers tag them with a blaster that fires a shot every 0.18 s (`FIRE_GAP`) for as long as the mouse button or the touch Tag button is held, with no reload pause: a miss costs one of 10 ink (`INK_MAX`), a hit costs nothing, and ink trickles back all the time at one shot every 2.5 s (`INK_REGEN`), so a seeker can keep firing at a hider who jumps about but blind spraying soon runs the tank dry and then gets a shot every 2.5 s. Fire rate and ink live only on the seeker's computer, which also decides hits (a ray against the hiders as it draws them) and sends a tag claim (`tg`) for the host to check, so changing them needs no change to the room data. Modes: Classic and Infection. Like Showdown, everything travels through each player's own node at `rooms/cf-/players/`, because the shared rules expect `n, c, x, z, h, ts` there and refuse other paths (such as `events`) for new prefixes: position and pose (`y, po, fl, p`, and `wl`: 0, or 1 to 4 for the way the wall a hider is stuck to faces, with `y` its height), body (`s` shape, `sz` size, `rf` glossiness), paint (`pv` version and `pd`, the 256 × 256 body texture as a WebP data URL, or JPEG where the browser can't make WebP; about 1 KB for a plain colour and 10–20 KB for a detailed pattern, re-sent at most every 1.2 s and only when it changed, so late joiners read it straight from the node), the last shot (`sh`), squeak (`ta`) and tag claim (`tg`). The host (newest host number `he`, else whoever has been in the room longest) publishes the round as JSON in its own `rs` and checks tag claims loosely; if it leaves, the next player carries on from the last round it saw. Anything read from another player's node is untrusted (any player can make itself host with a high `he`): `sanitizeRS` rebuilds a received round state field by field (known phases, numbers clamped, player ids checked and lists capped, settings through `cleanSet`), `remoteTarget` keeps positions inside the map and angles finite, and scores are shown as numbers, so keep new round-state fields going through `sanitizeRS` and escape anything put in `innerHTML`. A tab in the background gets no animation frames, so a 1 s timer keeps its node's `ts` fresh and, for the host, keeps the round ticking. Bodies are modelled about 1.7 units tall and drawn at `BODY` (0.64) times their size setting, so Normal is about 1.08 m. The Doll is a soft, rounded figure (a big round head on a short neck, a plump body, thick arms and legs with rounded ends, two small eyes), each part turned on a lathe (`latheGeo`, `dollParts`) with the texture spread evenly up the profile and normals taken from the profile so there are no shading seams; the Block is a slim slab. Each body shape has a 256 × 256 texture atlas where every texel knows its 3D spot on the body, so brushes paint by distance in 3D (`atlasOf`, `Paint`). Keep each part's region of the atlas (the `rect` passed to `latheGeo`) when reshaping a body, or saved and synced paint jobs land on the wrong parts; the Doll was reshaped inside the same regions, so paint saved before that lands on roughly the same places. Maps are axis-aligned boxes plus round props, built by `buildManor` (Hollyhock Manor: 48 × 38 m, a party night in a country house, with an 8 m grand hall whose staircase climbs to a gallery, ten rooms under 4.2 m ceilings), `buildMuseum` (Marlowe Museum: 58 × 50 m, a 7 m lobby, a top-lit grand gallery with free-standing walls, six galleries, a gift shop, a café and the storeroom) `buildRyokan` (Kirinoya Inn: 50 × 40 m, a Japanese inn round a glass-roofed garden courtyard, with four tatami guest rooms, a banquet hall, a tea room, a futon store, the hot-spring bath, the kitchen and a games lounge), and six everyday places: `buildSchool` (Birchwood High: 44 × 32 m, a locker-lined corridor, two classrooms, a science lab, a library, an art room, the staff room, toilets and the PE store), `buildOffice` (Larkspur & Co: 48 × 34 m, a reception, an open-plan floor of desk pods, a meeting room, the manager's office, a kitchenette, a server room, a store, a lounge and toilets), `buildMarket` (Greenleaf Market: 50 × 36 m, a 4.2 m supermarket floor of aisles, produce tables, chillers, freezer islands, a bakery, a deli and six checkouts, a café, the bakery kitchen, a stockroom with pallet racking and a forklift, the staff room, an office, toilets and a cold room), `buildHotel` (Hotel Bellamy: 48 × 36 m, a marble lobby with columns, a piano and a reception desk, a bar with a pool table, a restaurant, and off a carpeted corridor five guest rooms, each with a bathroom whose bath you can climb into, plus housekeeping and the laundry), `buildLeisure` (Riverside Leisure Centre: 50 × 38 m, a 7 m sports hall with bleachers, hoops and a climbing wall, a gym, a dance studio, the reception and café, two changing rooms with lockers and showers, first aid, the equipment store, an office and the plant room) and `buildFlats` (Maple Court: 46 × 31 m, four flats off a landing, each with a living room and kitchen, a bedroom, a children's room with bunk beds, a study, a hall and a bathroom, plus the residents' laundry and the bike and bin store; the north flats are the south ones mirrored by `flat()`). The everyday maps share painters, `everydayMats` and the `everyday` furniture (desks, office and school chairs, lockers, gondola shelving, counters, divans and bunk beds, bathroom pieces, gym kit, bleachers, trolleys, pallets). Walls, floors and ceilings come from `kit`: `wallX`/`wallZ` build a wall as two half-thick slabs, one per room, each reaching 1 cm past the centre line so the two overlap and leave no seam to slip into, each from a side spec (`w` wallpaper, `lo` and `lh` lower panelling, `h` height, `base`, `rail`, `crown`, `casing`), with door openings and their casings; `win`, `pic`, `flat` and `sconce` hang windows (an evening view), framed pictures, signs and wall lights, and `ag` places furniture with its back to a wall. Wall slabs are marked `wall`, and trims, pictures and curtains are not solid, so a hider can still stick to the wall behind them. The `Builder` helpers are `box`, `at` for turned furniture, `prop` for round things from the shared `geo()` cache (baked with the boxes into one mesh per material, so a map is about one draw call per material), `ceil` for ceilings drawn from below only so the menu's view from above looks into the rooms, `spot` for places bots hide under tables, beds and the inn's futon cupboard, and `lamp` for point lights, of which only six spread-out ones are used, three on the Fast setting; the furniture helpers are in `furn` (tables, round tables with cloths, chairs, benches, sofas, beds, a grand piano, a fireplace, plants and palms, lamps and chandeliers, washing lines, curtains you can walk into, vending machines, plinths and mannequins, which make good decoys). The bots only walk the floor: the manor's gallery and the inn's raised entrance step are for players. Each map gives `spawns`, a `seek` start and an `attract` spot for the menu's doll. Boxes marked `soft` (cloth and leaves) block the view and the seeker bot's line of sight but not the blaster's pellets. The boxes are also the colliders, the bots' navigation grid, line of sight and the surfaces the eyedropper and bots sample; they are filed in a 2 m grid (`buildGrid`, `solidsIn`, `rayMap`) so rays and collisions stay quick. Every pattern is drawn on a canvas by the `P` painters (damask and striped wallpapers, wood panelling, marble, tatami, shoji and fusuma, rugs, portraits, landscapes and modern paintings, and so on), from a fixed seed so all players get the same map. Every room must keep a ceiling. To add a map, write a `build…` function and add it to `MAPS`, then check it the way the existing ones were checked: every spawn, the seeker start and every bot `spot` free and reachable from the seeker start, a ceiling and a floor everywhere, no ray escaping the shell, and no solid furniture cut into a wall. Bodies collide as their pose's footprint circles against the boxes (`moveEnt`): each move is cut into steps shorter than the body's radius and anything it runs into pushes it back out the face it came in through (`pushOut`), so nothing can be crossed in one frame; a box whose top is within a step of the feet (`stepOf`: 0.45 m standing, half the body's height crouching or lying) is climbed only when there is room to stand on it, otherwise it is solid (a chair seat over its legs, a bed frame under its quilt); a box whose bottom is within 1 cm of the top of the head doesn't block, so a body that just fits under a table fits; low furniture is solid down to the floor unless the gap under it is at least as tall as the smallest lying body (`minGap`, the Petite Block, about 0.15 m: `Builder.finish` adds an invisible collider under anything lower); a body that finds itself inside something (after growing, say) moves to the nearest free spot that isn't across a wall (`freeSpot`, `wallBetween`), and a move never ends on the far side of a wall. The practice seeker bot "sees" by rendering a small view of you with and without you and comparing the colours (`perceive`, delta E), so better paint really does keep you hidden; it sweeps its gaze up and down so it can spot hiders high on walls, and furniture blocks its view. Practice hider bots sometimes hang on walls or tuck under furniture. Online rooms follow a daily map rotation: `dayMaps` shuffles all the maps with the day number as the seed (days start at midnight US Eastern standard time, `DAY_SHIFT`) and keeps the first three, and the map is `dayMaps(now)[floor(now / 15 min) % 3]` (`rotMap`), worked out from the shared server clock (`Net.now`). The host publishes it as `rs.map` in the lobby and when it starts a round, so a round in progress finishes on its map and the next round or the lobby moves on; the lobby shows the map now and "Next map in m:ss" with the next map's name (`rotText`), and the menu names today's three. The host of a private room can still pick a single map instead of "Daily rotation" (the `map` round setting, -1 for the rotation); Practice has a picker of every map; Quick match and invite links are unchanged. Nothing is stored online between rounds; your name, body, last paint job and settings are saved in the browser under `chroma-…`. Parties can launch it (its row in `GAMES` in `party.js`). On touch screens the page adds `touch` to `body`, and the `body.touch` rules at the end of the stylesheet place the HUD, the lobby card and the paint studio for phones held upright or sideways (keep them clear of the stick and buttons when adding HUD pieces). The lobby card and the paint studio scroll an inner box (`.lb-body`, `.st-body`) instead of the card itself, because Chrome can leave a blank patch in the 3D view under a scrolling box with a solid background. Effects (`splat`, `pellet`, `confetti`, `puff`, all under `fxRoot`) are drawn only on each player's own computer and are hidden from the practice bot's eyes (`perceive` hides `fxRoot`), so they can be restyled without changing what can be hidden against: a pellet is a short streak with a pale tail and a small flash at the blaster, the mark it leaves is one of five splat shapes made once by `splatGeo` (a wobbly blob with lobes and stray drops, in the same pink and about the same size as a plain round mark) that pops open and throws off a few drops, and a find adds a gold ring and a sparkle to the confetti. The Fast setting gets fewer drops and less confetti (`fxHigh`). On the HUD the crosshair kicks on each shot, the FOUND banner, the "Found …" text and the Still hidden number pop when they change (`hudPop`), the clock turns pink and beats in the last ten seconds of hide or seek time, and the results card rises into place; all of these are skipped when the device asks for reduced motion. Lighting, shadows, map colours and patterns, the paint palette and how paint is sampled were deliberately left alone, because in this game any change to how a surface is lit changes how well a paint job matches it. **Turkey Week** (`../events.js`, November 15 to 26, 2026): seekers wear a pilgrim hat as part of their gear; hiders never do, because a hat would give them away: 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. -- `e63334287a3deaa3/backrooms-1v1/`: Backrooms 1v1–4v4 (Back Room; the folder keeps its original `backrooms-1v1` name), a third-person build-fight shooter in Level 0 of the Backrooms (Three.js). Practice is you against the Entity, a bot that runs only in your browser. Online rooms hold up to 8 players split into Red and Blue (1v1 to 4v4, uneven teams like 4v3 are allowed and never filled with bots) in the Firebase Realtime Database under `rooms/br-…` (same project and rules as Rumble Karts; invite links go through the home page as `#br-`). Quick match waits in `rooms/br-queue/players` and pairs two people into a `br-q…` room for a 1v1. Each player writes only their own node `players/`: `n`, `c`, `x`, `z`, `h` and `ts` always (the shared rules expect that shape), plus height, pitch, health, shield, weapon, a dead flag, the match `m` and round `rd` the position belongs to, the team picked in the lobby `t`, kills this match `k`, join time `j`, `mv`, the newest map version the page can build (3), and `ev`, set to 1 by a page that can edit builds; about 20 times a second during a round (15 in rooms of 5 or more) while something changed, and twice a second otherwise or while nothing has. The host is the live player who has been in the room longest (the next in line takes over when they leave; a newcomer only starts judging who the host is once the room's players and round have loaded, so a slow phone joining mid-match can't take over and reset it) and is the only one who changes `round`: `{id, ends, seed, ns, ph, pt, to, rn, sr, sb, ro, dd, rw, mw, fm, rz, mv, ed}`, where `id` is the match, `ph` the phase (`lobby`, `cd` countdown, `fight`, `over`, `end`), `pt` when the phase ends, `to` the rounds to win (3, 5 or 10, host's choice), `rn` the round, `sr`/`sb` the team scores, `ro` the roster (`uid:r;uid:b`), `dd` who is out this round, `rw`/`mw` the round and match winners, `fm` a forfeit, `rz` the host's "Randomize teams" draw (each player then moves themself), `mv` the map version for this match (see below) and `ed` whether builds can be edited in it (see Editing builds). The host writes with transactions guarded on `id`, `ph` and `rn`, and keeps `ends` at the time of writing because the rules cap how far ahead it can be. Shots, builds and deaths go through `events/` (deleted after 5 s): the shooter's rays pass through teammates and the shot lists only the enemies it hit; the victim applies damage only from someone on the other team of the same match, and reports its own death naming the last shooter, which gives the kill credit. A round ends when one team has nobody left: dead, or silent for 10 s (a closed tab removes its node at once). A team with nobody left in the room (disconnected, or silent for 20 s) forfeits the match. A host whose own tab has just frozen waits a moment for the queued updates before judging anyone. Players who join mid-match wait in the lobby or watch until the next one, and dead players watch a living teammate (click, or tap Next on a touch screen, for the next one). **Find tags:** once a round's fight has run for 1 minute 30 seconds (`FIND_AT`), every 15 seconds (`FIND_EVERY`) a name tag shows over every living player for 2 seconds (`FIND_SHOW`), through walls, with how far away they are, so players who can't find each other can; it pops in white, holds in the team colour and blinks out (a plain fade with reduced motion), with a soft ping. A tag for someone off the screen is pinned to the nearest edge with an arrow showing which way to turn. Nothing is sent for this: the clock (`findClock`) is the round's own, online the server-clock time since the fight began (the round node's `pt`, which is when the countdown ended and is left alone for the whole fight phase), so every browser flashes at the same moments, and in practice the seconds fought this round (the tag is the Entity's). Between flashes nothing changes: teammates' tags show all the time, as before, and an enemy's only while in sight. From ten seconds before the first flash a small chip (`#find`, under the score; on a phone, under the health bars sideways and in the top right corner upright) counts down to the next one, and the first flash of a match adds one line to the feed. The tags are the same HTML labels as the ordinary name tags (a fixed size on screen, so readable far away and not huge up close), so they add no draw calls. An older copy of the page in the room just never shows them. **Maps:** every round is a new, randomly generated Level 0, in practice and online, on a grid of 4 m cells with walls on the cell edges and posts on the corners (`layoutV3`, map version 3). Every map is built the same way, so they all feel like the same place: a 3 × 3 room round each spawn, then rooms of 2 × 2 to 2 × 4 cells dropped at random until about two fifths of the floor is rooms, and everything else one-cell-wide (4 m) corridor. Every wall is full height: no low partitions, stray wall slabs, open halls or pillar fields (the most a room gets is one column in the middle, about one room in three). The rooms and corridor cells are joined into a tree and then given a few loops (a second or third way into some rooms, the odd extra link between corridors, most dead ends opened onto something), with three rules: never two openings side by side in one room wall, never four corridor cells open as a square (corridors stay one cell wide), and never a short piece of wall left standing on its own. Where a room opens onto something else the opening is a doorway, with a 0.8 m jamb of wall (`JAMB`) each side wherever the wall carries on past it. Any straight line of more than six cells (`V3_RUN`, 24 m) gets a wall across it near the middle, and the corridor jogs round it. The lighting is the same everywhere: about one ceiling panel in twelve is dead (the floor under it a little darker), up to three flicker on their own, and most maps have one or two banks (a room or a stretch of corridor) that flicker together and dim the walls, floor and ceiling around them; there are no tinted wallpapers, damp carpets or special rooms. Then each spawn is cleared to an open, lit 3 × 3 area, anything that can't be reached on foot is opened up, and the layout is checked for fairness (`fairV2`: both teams' spawns about as far from the middle on foot, the two halves within about a third of each other's cover, no huge detour between the teams); one that fails is redrawn (about one in four), and if sixteen in a row fail (in practice never), the closest is made point-symmetric, which is fair by construction but can leave a few open patches along the middle. Checked on 600 generated maps of every size and roster: no low partitions or free-standing wall pieces, no 3 × 3 block of cells without a wall inside it outside the spawn areas, no straight run longer than six cells, every cell reachable, the same seed always gives the same map; the longest sightline on a map is 23–53 m (v2: 42–69 m). A v3 map has more walls, so its collision boxes are joined up along each wall line (`solidsV3`: walls and jambs that touch end to end become one box, and posts in the middle of a straight run are left out), which leaves fewer boxes than a v2 map (about 210 against 310) and less work per frame for movement and shots. Size depends on the number of players and a little chance: 11–13 cells across for a 1v1 (and practice), 12–14 for 3–4 players, 14–15 for 5–6, 15–16 for 7–8. Red spawns along the west edge and Blue along the east. Online, the layout of round `rn` comes from the match's `seed` and `rn` (`roundSeed`), and its size from that and the roster size, so every player builds the same rooms without anything new being sent; a short blackout covers the change between rounds. **Older copies of the page** (still open in someone's tab after an update) only know earlier layouts, which are kept unchanged in the page and checked to build exactly the same walls, pillars and lights for the same seed: the original maze (`layoutV1`: one per match from `seed`, 12, 14 or 16 cells by room size (`ns`), Red's and Blue's spawn areas cleared), and the previous random layout (`layoutV2`, map version 2: the floor split into areas furnished in different ways (twisty corridors, small rooms, open halls with stray wall slabs, pillar fields, office cubicles behind 1.25 m grey partitions you can see and jump over, solid blocks of wall), joined by doorways or with no wall at all, each lit its own way, sometimes with a different wallpaper or a special room). Each player's node says which maps their page can build (`mv`), and the host writes into a new match the newest version every player in the room has: `mv: 3`, `mv: 2`, or no `mv`, in which case everyone, new pages included, plays the original maze for that match, so a mixed room always agrees on the walls (an older page that joins in the middle of a newer match only watches, and may see the wrong walls until the next match). A host on a v2 page writes `mv: 2` at most, and one on a v1 page never writes `mv`, so the same applies. The collision rules below hold for every layout: automated walks and jumps into walls, doorway jambs, partitions, big pillars and wall blocks, spawns for every roster shape and shots at every kind of solid, run on hundreds of generated layouts, found nothing passing through or stuck inside a wall; and scripted runs and jumps at built walls, floors and ramps from every side, at 60, 30 and 20 frames a second and thrown at up to 20 m/s, with random building and with the Entity's own code, found nothing inside or through a build. Builds can't be placed inside a solid block of wall. **Editing builds:** aim at a wall, floor or ramp your team built (in practice, one you built; never the other team's or the Entity's) from within 6 m (`EDIT_RANGE`) and press Edit (G, or the Edit touch button): the piece turns into a grid of tiles, 3 × 3 on a wall and 2 × 2 on a floor or a ramp (a ramp's are its low and high halves, left and right). Shoot / place opens or closes the tile under the crosshair (hold and sweep for several), Edit again confirms, Reload makes the piece whole again and Aim cancels; on a touch screen the buttons read Tile, Done, Whole and Cancel while editing. **Edit on release** (always on, with no separate setting; the Edit key itself is rebindable in Change keys like any other): hold Edit, sweep the tiles with Shoot / place held (on a touch screen, drag on Tile with the other thumb), and letting go of Edit confirms straight away (`editHold`, `editKeyUp`). A quick tap of Edit that changes nothing (under 0.25 s, `EDIT_TAP`) leaves the grid open as before, so Edit again (or Done) confirms; a longer hold that changes nothing cancels. Reload and Aim work the same while holding. The confirmed edit is the same as before (same `EDIT_T`, same build message). That gives a window, a door, a half wall, an arch, a floor with a corner cut, a half-width ramp and so on. At least one tile has to stay. Nothing changes until you confirm, the change then lands 0.4 s later (`EDIT_T`), and you can't shoot or build while the grid is up or during that 0.4 s, so an edit is never instant in a fight. A piece's shape is `ed`, one bit per tile cut out (tile (u,v) is bit `v*n+u`; 0 is the whole piece). The tiles left are joined into as few rectangles as it takes (`edRects`), and each rectangle is one ordinary solid box, or for a ramp one ordinary ramp sheet with a smaller footprint (`pieceShape`), so there is no second collision system: movement, `pushOut` / `rampOut` and shots run the same code as for a whole piece, you walk through a door and shoot through a window because no box is there, and what is left blocks from every side (tiles that come back on a body move it out, as a new build does). The picture is one mesh made of the same rectangles (`pieceGeo`), so an edited piece is still one draw call; the grid you see while editing is three, in place of the piece, and only on your screen. Checked with the game's own movement and shots against the tiles themselves: every one of the 511 wall shapes both ways round (shots straight and slanted through every tile from both sides, walks at it along its length, thrown and jumping bodies), all 15 floor shapes and all 15 ramp shapes in all four directions, at 60, 30 and 20 frames a second, and whole pieces compared number for number with the page before editing. Online an edit travels as the build message for that spot again with `ed` added, the host answers anyone who comes into a round late (`bq`) with every piece standing, its health, shape and team (`bs`), and only the team that built a piece may reshape it (a message from anyone else is ignored). A page from before editing ignores a build for a spot that is taken, so it would keep the whole piece; to keep a mixed room agreeing on the shapes, every page says in its player node whether it can edit (`ev`), and the host turns editing on for a match (`ed: 1` in the round node, written like `mv`) only if every page in the room can: otherwise the Edit key says a player needs to refresh. The Entity does not edit; when a build stops it, it shoots the part it walked into (`bump`), whatever the shape, and it sees and shoots through openings only. Keys and mouse buttons can be changed in the Controls panel (`keybinds.js`, saved as `keybinds:backrooms-1v1`; the Change keys button under Controls in the menu, and Controls on the pause screen): move, jump, shoot / place, aim (Shift and right click), the three guns, reload, the three build pieces (two keys each), Edit (G), the arrow keys that look around when the mouse can't be locked, and pause (P; Esc is fixed). Clicking to watch the next teammate stays on the left mouse button, and the mouse wheel still switches guns. On touch screens it has a move stick, drag-to-look, Fire/Place, Jump, Aim, Reload, Edit and pause buttons, with the weapon and build slots as buttons along the top; while you watch, those give way to a Next button, and the lobby, pause and results screens are plain buttons that fit a phone either way up. Each browser is trusted for its own health and hits, so it isn't cheat-proof. A test hook (`window.__br`) exists only when `navigator.webdriver` is set (its `findShift` moves the find-tag clock forward so a test need not wait a minute and a half). **How it's drawn** (the picture only: nothing here is sent to other players or changes collision, damage or movement): the scene is lit by a soft overall light plus a warm light from one side and a weak cool one from the other, so walls facing different ways, and the two sides of a character, come out in different shades. The carpet is darker than the walls, and its texture repeats once per cell with a pool of light baked into the middle, so the floor is brightest under each ceiling panel and darkest along the walls. Walls, posts, pillars and doorway jambs have a dark skirting board, which is part of the same geometry (`joinGeos`, `skirtW`), so each kind is still one instanced mesh and the collision boxes are unchanged; working ceiling panels have a soft glow round them (one more instanced mesh). A character's suit is a few meshes, each made of several boxes joined together (`parts`), and each of the three guns is one shared mesh coloured per corner (`GUN_GEO`; `GUN_TIP` is how far each muzzle is from the hands), so the detail costs no extra draw calls; every character has a round shadow on the ground under it, which shrinks during a jump and lies along a ramp. The detail stays inside the outline the plain characters had, so nobody is drawn bigger than before: the suit's body, legs and head are the same boxes, each gun is squeezed along its barrel to the length of the plain one it replaced (`gunFit`: rifle 0.78 m, shotgun 0.86 m, sniper 1.18 m), and the shadow is 1 m across, about the width of the figure (a wider one made characters read as larger). Keep to that if you add more detail. A shot shows a muzzle flash at the end of the shooter's barrel and kicks the gun back; tracers are thin glowing beams sized to stay about two pixels wide near and far, and are drawn from the end of the barrel, though the shot itself still starts at `muzzleOf` as before; where a shot lands there is a flash and three sparks. The tracers, flashes and sparks come from small pools made once (`pool`; the sparks are one instanced mesh), so shooting creates no new objects. With the browser's reduced-motion setting on, the muzzle flash, gun kick and sparks are left out. **Turkey Week** (`../events.js`, November 15 to 26, 2026): every suit wears a pilgrim hat: 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. +- `e63334287a3deaa3/backrooms-1v1/`: Backrooms 1v1–4v4 (Back Room; the folder keeps its original `backrooms-1v1` name), a third-person build-fight shooter in Level 0 of the Backrooms and one other liminal place, the Poolrooms (Three.js). Practice is you against the Entity, a bot that runs only in your browser. Online rooms hold up to 8 players split into Red and Blue (1v1 to 4v4, uneven teams like 4v3 are allowed and never filled with bots) in the Firebase Realtime Database under `rooms/br-…` (same project and rules as Rumble Karts; invite links go through the home page as `#br-`). Quick match waits in `rooms/br-queue/players` and pairs two people into a `br-q…` room for a 1v1. Each player writes only their own node `players/`: `n`, `c`, `x`, `z`, `h` and `ts` always (the shared rules expect that shape), plus height, pitch, health, shield, weapon, a dead flag, the match `m` and round `rd` the position belongs to, the team picked in the lobby `t`, kills this match `k`, join time `j`, `mv`, the newest map version the page can build (4), and `ev`, set to 1 by a page that can edit builds; about 20 times a second during a round (15 in rooms of 5 or more) while something changed, and twice a second otherwise or while nothing has. The host is the live player who has been in the room longest (the next in line takes over when they leave; a newcomer only starts judging who the host is once the room's players and round have loaded, so a slow phone joining mid-match can't take over and reset it) and is the only one who changes `round`: `{id, ends, seed, ns, ph, pt, to, rn, sr, sb, ro, dd, rw, mw, fm, rz, mv, mp, ed}`, where `id` is the match, `ph` the phase (`lobby`, `cd` countdown, `fight`, `over`, `end`), `pt` when the phase ends, `to` the rounds to win (3, 5 or 10, host's choice), `rn` the round, `sr`/`sb` the team scores, `ro` the roster (`uid:r;uid:b`), `dd` who is out this round, `rw`/`mw` the round and match winners, `fm` a forfeit, `rz` the host's "Randomize teams" draw (each player then moves themself), `mv` the map version for this match (see below), `mp` the place the host picked (see Other places) and `ed` whether builds can be edited in it (see Editing builds). The host writes with transactions guarded on `id`, `ph` and `rn`, and keeps `ends` at the time of writing because the rules cap how far ahead it can be. Shots, builds and deaths go through `events/` (deleted after 5 s): the shooter's rays pass through teammates and the shot lists only the enemies it hit; the victim applies damage only from someone on the other team of the same match, and reports its own death naming the last shooter, which gives the kill credit. A round ends when one team has nobody left: dead, or silent for 10 s (a closed tab removes its node at once). A team with nobody left in the room (disconnected, or silent for 20 s) forfeits the match. A host whose own tab has just frozen waits a moment for the queued updates before judging anyone. Players who join mid-match wait in the lobby or watch until the next one, and dead players watch a living teammate (click, or tap Next on a touch screen, for the next one). **Find tags:** once a round's fight has run for 1 minute 30 seconds (`FIND_AT`), every 15 seconds (`FIND_EVERY`) a name tag shows over every living player for 2 seconds (`FIND_SHOW`), through walls, with how far away they are, so players who can't find each other can; it pops in white, holds in the team colour and blinks out (a plain fade with reduced motion), with a soft ping. A tag for someone off the screen is pinned to the nearest edge with an arrow showing which way to turn. Nothing is sent for this: the clock (`findClock`) is the round's own, online the server-clock time since the fight began (the round node's `pt`, which is when the countdown ended and is left alone for the whole fight phase), so every browser flashes at the same moments, and in practice the seconds fought this round (the tag is the Entity's). Between flashes nothing changes: teammates' tags show all the time, as before, and an enemy's only while in sight. From ten seconds before the first flash a small chip (`#find`, under the score; on a phone, under the health bars sideways and in the top right corner upright) counts down to the next one, and the first flash of a match adds one line to the feed. The tags are the same HTML labels as the ordinary name tags (a fixed size on screen, so readable far away and not huge up close), so they add no draw calls. An older copy of the page in the room just never shows them. **Maps:** every round is a new, randomly generated Level 0, in practice and online, on a grid of 4 m cells with walls on the cell edges and posts on the corners (`layoutV3`, map version 3). Every map is built the same way, so they all feel like the same place: a 3 × 3 room round each spawn, then rooms of 2 × 2 to 2 × 4 cells dropped at random until about two fifths of the floor is rooms, and everything else one-cell-wide (4 m) corridor. Every wall is full height: no low partitions, stray wall slabs, open halls or pillar fields (the most a room gets is one column in the middle, about one room in three). The rooms and corridor cells are joined into a tree and then given a few loops (a second or third way into some rooms, the odd extra link between corridors, most dead ends opened onto something), with three rules: never two openings side by side in one room wall, never four corridor cells open as a square (corridors stay one cell wide), and never a short piece of wall left standing on its own. Where a room opens onto something else the opening is a doorway, with a 0.8 m jamb of wall (`JAMB`) each side wherever the wall carries on past it. Any straight line of more than six cells (`V3_RUN`, 24 m) gets a wall across it near the middle, and the corridor jogs round it. The lighting is the same everywhere: about one ceiling panel in twelve is dead (the floor under it a little darker), up to three flicker on their own, and most maps have one or two banks (a room or a stretch of corridor) that flicker together and dim the walls, floor and ceiling around them; there are no tinted wallpapers, damp carpets or special rooms. Then each spawn is cleared to an open, lit 3 × 3 area, anything that can't be reached on foot is opened up, and the layout is checked for fairness (`fairV2`: both teams' spawns about as far from the middle on foot, the two halves within about a third of each other's cover, no huge detour between the teams); one that fails is redrawn (about one in four), and if sixteen in a row fail (in practice never), the closest is made point-symmetric, which is fair by construction but can leave a few open patches along the middle. Checked on 600 generated maps of every size and roster: no low partitions or free-standing wall pieces, no 3 × 3 block of cells without a wall inside it outside the spawn areas, no straight run longer than six cells, every cell reachable, the same seed always gives the same map; the longest sightline on a map is 23–53 m (v2: 42–69 m). A v3 map has more walls, so its collision boxes are joined up along each wall line (`solidsV3`: walls and jambs that touch end to end become one box, and posts in the middle of a straight run are left out), which leaves fewer boxes than a v2 map (about 210 against 310) and less work per frame for movement and shots. Size depends on the number of players and a little chance: 11–13 cells across for a 1v1 (and practice), 12–14 for 3–4 players, 14–15 for 5–6, 15–16 for 7–8. Red spawns along the west edge and Blue along the east. Online, the layout of round `rn` comes from the match's `seed` and `rn` (`roundSeed`), and its size from that and the roster size, so every player builds the same rooms without anything new being sent; a short blackout covers the change between rounds. **Other places (map version 4):** besides Level 0 there is one other liminal place, with its own look and its own way of furnishing the same 4 m grid (`layoutV4`, `furnishPool`). **The Poolrooms**: white and pale-aqua tiled halls of different sizes that open wide onto each other (sometimes with no wall between), about half of them flooded ankle-deep (drawn only: you wade through at normal speed), with colonnades of tiled pillars or low tiled pool edges for cover, under bright, cool, even light. Each place swaps the textures on the shared wall, pillar, partition, floor and ceiling materials and sets the fog, lights and panel colours (`THEMES`, `setTheme`); a place's textures are drawn the first time it is used, so nothing extra is made for a player who only plays Level 0. These places are more open than Level 0, so a straight line of sight along a row or column is cut by a full wall after eight cells (`V4_RUN`) rather than six. They are fair by construction: the west half is furnished, then copied onto the east half turned 180° about the middle (`mirrorV4`), so every Red spawn mirrors a Blue one for any roster (an uneven team's spawn spots are cleared on both halves), then the spawns are cleared and anything sealed off is opened on both halves alike (`connectSym`); `fairV2` still checks every layout and redraws one that fails. **Picking the place:** the practice menu has a row (Level 0 / Pools / Mix) above the difficulty, saved in this browser as `br1v1-map` (the menu backdrop changes to match); Mix picks a place for each round. Online, the host picks from the same row in the lobby; it is written to the round node as `mp` ('pool' or 'mix') and kept for the next match. A match in another place is written with `mv: 4`; Level 0 stays `mv: 3`, exactly as before. A Mix round's place comes from the round's seed (`mixPick`), so every page agrees without anything extra being sent. If anyone in the room is on a page from before the other places (`mv` below 4), the host's page falls back to Level 0 for that match and the lobby says who needs to refresh; older pages never see `mv: 4` and ignore `mp`. **Older copies of the page** (still open in someone's tab after an update) only know earlier layouts, which are kept unchanged in the page and checked to build exactly the same walls, pillars and lights for the same seed: the original maze (`layoutV1`: one per match from `seed`, 12, 14 or 16 cells by room size (`ns`), Red's and Blue's spawn areas cleared), and the previous random layout (`layoutV2`, map version 2: the floor split into areas furnished in different ways (twisty corridors, small rooms, open halls with stray wall slabs, pillar fields, office cubicles behind 1.25 m grey partitions you can see and jump over, solid blocks of wall), joined by doorways or with no wall at all, each lit its own way, sometimes with a different wallpaper or a special room). Each player's node says which maps their page can build (`mv`), and the host writes into a new match the newest version every player in the room has: `mv: 4` (only for a match in another place), `mv: 3`, `mv: 2`, or no `mv`, in which case everyone, new pages included, plays the original maze for that match, so a mixed room always agrees on the walls (an older page that joins in the middle of a newer match only watches, and may see the wrong walls until the next match). A host on a v2 page writes `mv: 2` at most, and one on a v1 page never writes `mv`, so the same applies. The collision rules below hold for every layout: automated walks and jumps into walls, doorway jambs, partitions, big pillars and wall blocks, spawns for every roster shape and shots at every kind of solid, run on hundreds of generated layouts, found nothing passing through or stuck inside a wall; and scripted runs and jumps at built walls, floors and ramps from every side, at 60, 30 and 20 frames a second and thrown at up to 20 m/s, with random building and with the Entity's own code, found nothing inside or through a build. Builds can't be placed inside a solid block of wall. **Editing builds:** aim at a wall, floor or ramp your team built (in practice, one you built; never the other team's or the Entity's) from within 6 m (`EDIT_RANGE`) and press Edit (G, or the Edit touch button): the piece turns into a grid of tiles, 3 × 3 on a wall and 2 × 2 on a floor or a ramp (a ramp's are its low and high halves, left and right). Shoot / place opens or closes the tile under the crosshair (hold and sweep for several), Edit again confirms, Reload makes the piece whole again and Aim cancels; on a touch screen the buttons read Tile, Done, Whole and Cancel while editing. **Edit on release** (always on, with no separate setting; the Edit key itself is rebindable in Change keys like any other): hold Edit, sweep the tiles with Shoot / place held (on a touch screen, drag on Tile with the other thumb), and letting go of Edit confirms straight away (`editHold`, `editKeyUp`). A quick tap of Edit that changes nothing (under 0.25 s, `EDIT_TAP`) leaves the grid open as before, so Edit again (or Done) confirms; a longer hold that changes nothing cancels. Reload and Aim work the same while holding. The confirmed edit is the same as before (same `EDIT_T`, same build message). That gives a window, a door, a half wall, an arch, a floor with a corner cut, a half-width ramp and so on. At least one tile has to stay. Nothing changes until you confirm, the change then lands 0.4 s later (`EDIT_T`), and you can't shoot or build while the grid is up or during that 0.4 s, so an edit is never instant in a fight. A piece's shape is `ed`, one bit per tile cut out (tile (u,v) is bit `v*n+u`; 0 is the whole piece). The tiles left are joined into as few rectangles as it takes (`edRects`), and each rectangle is one ordinary solid box, or for a ramp one ordinary ramp sheet with a smaller footprint (`pieceShape`), so there is no second collision system: movement, `pushOut` / `rampOut` and shots run the same code as for a whole piece, you walk through a door and shoot through a window because no box is there, and what is left blocks from every side (tiles that come back on a body move it out, as a new build does). The picture is one mesh made of the same rectangles (`pieceGeo`), so an edited piece is still one draw call; the grid you see while editing is three, in place of the piece, and only on your screen. Checked with the game's own movement and shots against the tiles themselves: every one of the 511 wall shapes both ways round (shots straight and slanted through every tile from both sides, walks at it along its length, thrown and jumping bodies), all 15 floor shapes and all 15 ramp shapes in all four directions, at 60, 30 and 20 frames a second, and whole pieces compared number for number with the page before editing. Online an edit travels as the build message for that spot again with `ed` added, the host answers anyone who comes into a round late (`bq`) with every piece standing, its health, shape and team (`bs`), and only the team that built a piece may reshape it (a message from anyone else is ignored). A page from before editing ignores a build for a spot that is taken, so it would keep the whole piece; to keep a mixed room agreeing on the shapes, every page says in its player node whether it can edit (`ev`), and the host turns editing on for a match (`ed: 1` in the round node, written like `mv`) only if every page in the room can: otherwise the Edit key says a player needs to refresh. The Entity does not edit; when a build stops it, it shoots the part it walked into (`bump`), whatever the shape, and it sees and shoots through openings only. Keys and mouse buttons can be changed in the Controls panel (`keybinds.js`, saved as `keybinds:backrooms-1v1`; the Change keys button under Controls in the menu, and Controls on the pause screen): move, jump, shoot / place, aim (Shift and right click), the three guns, reload, the three build pieces (two keys each), Edit (G), the arrow keys that look around when the mouse can't be locked, and pause (P; Esc is fixed). Clicking to watch the next teammate stays on the left mouse button, and the mouse wheel still switches guns. On touch screens it has a move stick, drag-to-look, Fire/Place, Jump, Aim, Reload, Edit and pause buttons, with the weapon and build slots as buttons along the top; while you watch, those give way to a Next button, and the lobby, pause and results screens are plain buttons that fit a phone either way up. Each browser is trusted for its own health and hits, so it isn't cheat-proof. A test hook (`window.__br`) exists only when `navigator.webdriver` is set (its `findShift` moves the find-tag clock forward so a test need not wait a minute and a half). **How it's drawn** (the picture only: nothing here is sent to other players or changes collision, damage or movement): the scene is lit by a soft overall light plus a warm light from one side and a weak cool one from the other, so walls facing different ways, and the two sides of a character, come out in different shades. The carpet is darker than the walls, and its texture repeats once per cell with a pool of light baked into the middle, so the floor is brightest under each ceiling panel and darkest along the walls. Walls, posts, pillars and doorway jambs have a dark skirting board, which is part of the same geometry (`joinGeos`, `skirtW`), so each kind is still one instanced mesh and the collision boxes are unchanged; working ceiling panels have a soft glow round them (one more instanced mesh). A character's suit is a few meshes, each made of several boxes joined together (`parts`), and each of the three guns is one shared mesh coloured per corner (`GUN_GEO`; `GUN_TIP` is how far each muzzle is from the hands), so the detail costs no extra draw calls; every character has a round shadow on the ground under it, which shrinks during a jump and lies along a ramp. The detail stays inside the outline the plain characters had, so nobody is drawn bigger than before: the suit's body, legs and head are the same boxes, each gun is squeezed along its barrel to the length of the plain one it replaced (`gunFit`: rifle 0.78 m, shotgun 0.86 m, sniper 1.18 m), and the shadow is 1 m across, about the width of the figure (a wider one made characters read as larger). Keep to that if you add more detail. A shot shows a muzzle flash at the end of the shooter's barrel and kicks the gun back; tracers are thin glowing beams sized to stay about two pixels wide near and far, and are drawn from the end of the barrel, though the shot itself still starts at `muzzleOf` as before; where a shot lands there is a flash and three sparks. The tracers, flashes and sparks come from small pools made once (`pool`; the sparks are one instanced mesh), so shooting creates no new objects. With the browser's reduced-motion setting on, the muzzle flash, gun kick and sparks are left out. **Turkey Week** (`../events.js`, November 15 to 26, 2026): every suit wears a pilgrim hat: 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. - `e63334287a3deaa3/drop-zone/`: Driftfall (Back Room; the folder is `drop-zone`), a third-person battle royale for up to 30 players on Gullrock Isle (Three.js; Firebase Realtime Database rooms under `rooms/dz-…`, same project and rules as Rumble Karts; invite links go through the home page as `#dz-`; Quick match uses the public rooms `dz-pub-1` to `dz-pub-4`, the fullest one still boarding first; online matches are people only, at least 2). Everyone rides the Drifter (an airship) across the island on a line that changes every match, jumps when they like (Space, or Jump on a phone; anyone still aboard drops automatically as it leaves the island), falls, opens a steerable glider (Space again, or automatically about 44 m up) and lands anywhere, on roofs and hillsides too. Then it's loot, build and fight until one is left. **Island:** 240 × 240 m, with real terrain since map version 5 (hills, a ridge, cliffs, a reservoir and a shore: see Land) (it was 320 m until map version 2: the seven places were moved closer together as whole blocks on the 4 m grid, the buildings themselves are unchanged), about 40 s' run across and 57 s corner to corner at 6 m/s, built by `buildWorld()` from a few tools; each place is built inside `grp(dx, dz, dy, …)` with its shift from the old layout and the height of its pad in `OFS`, so the place code still reads in the old coordinates: `house()` (walls with doors and windows, a floor per 4 m level and a flat roof, both sitting between the walls rather than under them, zigzag ramp stairs from `zigzag()` that need a free cell at each end, a parapet, and a trim band round the outside between levels; how each is drawn is in Buildings below), `wallRun`, `slab`, `staticRamp`, props (`crate`, `bale`, `car`, `fence`, `pine`, `oak`, `rock`, `bush`). Seven places: Haybale Farm (barn with a loft and roof stairs, farmhouse, silo), Signal Point (a 20 m lattice tower with zigzag ramps), Pinecone Plaza (a two-level mall round an atrium, shops along the north side, car park), Spillway Dam (a 12 m dam wall with stair towers at both ends, a pump house), Moonbeam Motel (two wings of rooms, a balcony reached by a ramp, an empty pool), Starfall Crater (a ring of boulders round a fallen star, two sheds) and Timber Camp (log cabins and a sawmill shed), plus sheds along the tracks. Every floor and roof is at a multiple of 4 m on the same 4 m grid as builds (each place's pad is too). All static geometry is merged into 16 chunk meshes with vertex colours (one material; on the plain look no textures except the builds', the ground's and the buildings' own (see Buildings), which are mipmapped and anisotropic, and no shadow maps), the ground is one mesh over the height grid, chests, floor loot, each build kind, tracers and particles are one instanced mesh each, so a view with 30 players in the match measured 16–55 draw calls; each player is one mesh (the merged body, plus the glider when it's out), and everyone's legs are one instanced mesh and the held items one instanced mesh per kind (`legIM`, `gunIM`, filled by `syncLimbs()` just before each render from the models' leg and item `Object3D`s, which only carry the pose), so 30 players close together cost about 36 draw calls instead of about 120 (legs and items are hidden past 70 m). Solid boxes sit in a spatial hash of 8 m cells (`hash`, `rhash` for ramps), which movement, `groundAt` and the ray walk (`raycast`, cell by cell) use instead of the whole list. **Look:** characters are built from `ROUND_BOX` (a box with rounded edges and smooth shading, added with `bagRBox`), still one merged body per player with instanced legs; hitboxes were unchanged by that (they shrank with the characters later, see Character size). The Graphics setting (`driftfall:gfx`, Pretty or Fast) and `fxWatch()` pick one of three levels, applied by `lookSync()` from `drawScene()`: 0 is the plain look above (always on touch screens and on Fast); 1 adds a surface grain to the one shared material (`MAT.onBeforeCompile` lays a drawn noise texture over every face from three sides using each mesh's own coordinates, compiled in only while `MAT.defines.FINE` is set), real shadows from the sun (one 2048 px map covering 92 m around the camera, moved in whole-texel steps by `followSun()`; everything using `MAT` and the builds cast and receive, flagged by `shadowFlags()`), a sky dome with a soft sun (hidden inside the storm, where the flat purple sky takes over) and a sea that catches the light; 2 adds a light colour grade (`grade`: the finished frame is copied to a texture and redrawn with a little more colour and contrast and darker corners; there is no bloom, because in daylight most pale surfaces are already at full brightness). Because it is a shooter the frame rate comes first: it starts at level 1, steps up to 2 only after about 6 s of frames under 12.5 ms, and steps down after 2 s over 18 ms once `autores.js` has lowered the resolution to 0.8 or less; a level it had to leave is not tried again that visit (`fxMax`). Level 1 roughly doubles the draw calls near buildings (the shadow pass draws the chunks around you again). Nothing about the look is sent to other players. **Flicker fixes (map version 2):** no two faces share a plane any more (floors and roofs used to share the walls' outer faces, partitions reached into the floor above, posts shared faces with slabs and railings, and the trim band was a solid slab over each upper floor that also hid the mall's atrium and the stair holes); the camera's near plane follows the view (0.08 m pulled in against a wall, 0.15 m on foot, 0.5 m in the air, 1 m on the Drifter) and the far plane is 800 m, so distant faces a few centimetres apart don't fight; the farm's stripes were 4 m wide to match the ground's 2 m vertex grid (they are 1 m furrows now that the ground is a picture, see Ground). Keep new boxes off each other's faces (stop a box 1–2 cm short, or let it pass through the other) rather than flush with them. **Movement, building and shooting** started as a copy of Backrooms 1v1–4v4 (the same jump, step and `moveEntity`/`pushOut`; the speed, the collision box and the ramp rules have since changed, see Collision, Character size and Pace), the same wall/floor/ramp binds (Q/Z, F/X, C/E) and pieces on the 4 m grid (up to 8 levels above the land under them; see Land for how they meet a slope), the same over-the-shoulder aim from the camera with rays from the muzzle, headshots and damage numbers. Builds cost 10 scrap (you start with 30); the Crowbar (V or 5, or an empty slot) gathers scrap from trees (14 a hit), rocks and walls (6–10), and loot has scrap bundles. **Destruction:** builds and most of the map break. Each weapon has its own structure damage `sd` per bullet (Pistol 24, Heavy Pistol 55, SMG 12, Drum SMG 15, Pump Shotgun 13 and Auto Shotgun 9 a pellet with their close-range falloff, Rifle 22, Heavy Rifle 40, Bolt Sniper 150, Scout Sniper 80; the Crowbar 50), scaled by rarity and distance like player damage. Builds have 150 (walls) or 140 health and darken in three stages. On the map, `buildWorld()` makes breakable *pieces* with `brk(health, scrap, fn)` (everything `fn` adds is one piece): each 4 m cell of a house wall per level (with its trim band and, on top, its parapet; 240), each 4 × 4 m cell of a floor or roof (200), partitions (150 a cell), trees (170), rocks (80 + 60 per metre of size), cars (260), the farm truck, crates, bales, fence sections, railings (in up to 4 m lengths), the motel's balcony, posts and sign, the sawmill's posts and roof and the log pile. The ground, the dam's wall, ribs and stair towers, the tower's posts and floors, the silo, the star, stairs and ground-level decorations never break, so the map stays playable. A piece is a range of vertices in the chunk meshes plus its boxes; breaking it squashes the vertices to a point (one small buffer update a frame, `mpFlush`, no extra draw calls) and takes its boxes out of the hash, so players, shots, builds and bots go through; the pieces left standing round a broken wall, floor or railing keep a ragged edge (see Buildings). Damage darkens a piece in three stages the same way. Boxes of pieces in a line (a wall's cells, a floor's row) are merged into one solid per unbroken stretch (`runs()`), so movement and rays check about as many boxes as before. `mpLink()` records which pieces touch and which touch the ground or something unbreakable; when a piece breaks, anything that has lost every path to the ground breaks too (a roof whose walls are gone), and chests and loot on it drop (`mpBreak`). The breaker gets twice the piece's crowbar scrap. Pieces are numbered in build order (1,185 of them), the same in every browser; a new match restores them (`resetMap`). **Loot** is decided by the match seed, so nobody has to send it: about 82% of the 40 chest spots have a chest each match (`spawnLoot`), and each floor spot has a 72% chance of an item (`FLOOR_R` odds); a chest gives a weapon (`CHEST_R` odds, better than the floor's) with its ammo, often a heal and sometimes scrap (`chestLoot`). Weapons (`WEAP`): ten, two in each of five families (`fam`: pistols, SMGs, shotguns, rifles, snipers), each with its own model, colour, sound, damage, fire rate, spread, range and falloff, magazine and reload, and ammo type (light, rifle, shells, heavy); see Weapons below; rarity (Common to Legendary, grey/green/blue/purple/gold) adds 7% damage a step and trims the reload. Heals (`HEALS`): Bandage +25 health (2.5 s), Medkit to full (6 s), Shield Fizz +25 shield (2 s), Shield Jug +50 shield (4.5 s); shield caps at 100 and you walk slowly while using one. Four slots (1–4, the mouse wheel, or tapping the slots); ammo, scrap, heals and weapons are picked up by walking over them when there's room, and G (or the touch Open/Take/Swap button) opens chests and swaps the item in your hand for one on the floor (with nothing in reach it edits the build you are aiming at, see Building and editing). Knocked-out players drop everything. **Storm** (`STORM`, `makeStorm`): the circle (180 m radius, `R0`) covers the island at first, then closes in six phases toward seeded centres, each pulled toward the middle if it would fall at sea (first close 70 s after the Drifter sets off; the last closes to nothing about 4¾ minutes in), and damage outside (health only) grows from 1 to 15 a second. The Drifter's line starts and ends 230 m either side of a point within 37 m of the middle, so it's always over the sea at both ends. The minimap (tap it, or M, for the big map with place names) shows the circle, the next one (dashed), the Drifter's line and you. **Rooms and matches:** each player writes only their own node `rooms/dz-/players/`: `n, c, x, z, h, ts` always (as the shared rules expect), plus `y`, `p` (pitch), `hp`, `sh`, `st` (state: `l` lobby, `b` on the Drifter, `f` falling, `g` gliding, `a` on the ground, `d` knocked out, `o` watching), `w` (what's in hand), `m` (the match), `j` (join time), `k` (knockouts), `pl` (placing), `dm` (damage), `oc` (chests they opened this match, dot-separated) and `pk` (loot they took, comma-separated, so a late joiner or a new host sees the right island), and `ev/e0`…`ev/e23`, a ring of their recent events (each with a number `i` that only goes up, the match `m` and a time `t`): `s` shots (muzzle, tracer ends, the new health of builds hit `pd` `[key, hp]` and of map pieces hit `md` `[id, hp]`, hits on players `hs`), `b` builds and edits of them (see Building and editing), `o` chest opened, `u` item taken, `dr` item dropped, `x` knocked out (by whom, placing, the dropped items). Writes are `update()`s of only the fields that changed: about 12 a second while you're moving in a match (10 with 10+ others in the room, 8 with 20+), a heartbeat every second or two otherwise. Every node also carries `mv`, the map version (2 since the island shrank, 3 for the slower pace, 4 for the November 2026 fixes: solid ramps, and later the smaller characters, the pace and the new weapons, 5 for real terrain, 6 for edited builds; a node without it is version 1). The host is the live player on the same map version who has been in the room longest; its node also carries `ms`, the match state (`{id, ph: 'lobby'|'play'|'end', ce: countdown end, sd: seed, t0: when the Drifter sets off, ro: roster, nh: people at the start, wn: winner, we: when the results end, mv: map version}`), and during a match `br: {m: match, b: …}`, the broken map pieces as a base64 bitset with trailing zeros dropped (about 200 characters with everything broken). Players apply the shooter's reported health for builds and pieces, the lowest anyone reports, but never more than one shot of that weapon could take; a late joiner, anyone who missed an event, and the next host take the rest from `br`. The host's node also lists the builds standing (`bd`, see Building and editing), so a late joiner gets them too; there's no list of broken builds, because a broken one is just not in it. **Map versions:** the host only counts people on its own version for the lobby, the countdown and the roster, and only those elect a host; a page that sees someone on a newer version says "This match uses a newer map, reload to join." with a Reload button and sits matches out; the host's lobby says how many people have an older copy. Pages from before map versions existed don't know any of this: they're simply left out of the new pages' matches. Next time the island changes, raise `MAPV`. A match starts when the host presses Start (with 2 or more people) or 60 s after a second person joins the lobby; a lone player can't start one; the Drifter line, the storm and the loot all come from `sd`, and the clock from `t0` (server time), so everyone agrees without sending them. **Bots** are in Practice only (11 of them; online matches are people only, so no bot slots, no bot list in the host's node and no bot hand-over). They're marked BOT in tags, the feed and the results, and this browser runs them: they jump, glide to a chest, loot, fight, heal, run from the storm and now and then wall up when shot; they walk straight at things where the way is clear, round cliffs, boulders and buildings by `landPath` (see Land) and in and out of buildings by the nearest ground-floor door (`setGoal`), stepping to one side when something holds them up, shoot through breakable cover (builds, walls, trees) at someone within 35 m, break through a breakable thing they're stuck against (up to ten tries) or a line of builds they can't get round (see Building and editing), and leave loot they get stuck on alone for 25 s; they don't use stairs, so upstairs loot is for people. They're tuned to be beatable: a reaction of 1–1.6 s, loose aim (0.085–0.135 rad error, more until they've watched you a while), a little over half their weapon's fire rate and rare building; a rifle bot 20 m from someone standing still does about a quarter of the damage it used to. **Hits:** the shooter's browser decides what its shots hit (`resolveShot`) and lists hits in the shot event; the victim's browser applies them only after a sanity check (`acceptHit`: a real weapon, no more than one shot of it can do, from within 16 m of where the shooter really is, within the weapon's range, and not faster than it fires), and reports its own knockout, which credits the shooter; hits on bots go to the host. If the host leaves, the next in line carries on the same match from the last `ms` it saw, with the broken pieces it already has. Someone who joins mid-match waits in the lobby panel or watches (Watch the match), and drops in at the next one; a room holds 30 (`MAX_ROOM`). Other players and bots are drawn with `netsmooth.js`. Results: placing, knockouts, damage and time, with the room's final order when the match ends. Leaderboards hooks (online matches only, which always start with at least two people): `add('matches', 1)`, `add('wins', 1)`, `max('kills', n)` (most knockouts in a match) and `min('place', n)` (best placing; `place` is in stats.js's `LOWER`). Saved in the browser under `driftfall:` keys: `name`, `col` (your colour), `sens`, `room`; keys in `keybinds:drop-zone`. Touch: a move stick, drag-to-look, Fire (Place, Use or Hit as it fits), Jump, Aim, Reload, an Open/Take/Swap button that appears when something's in reach, an Edit button that appears when the crosshair is on a build of yours, and the Crowbar, four slots and the scrap chip as buttons along the top (tap the chip to build: the three pieces appear next to it; tap it again, or a slot, to stop); the map is top right. Practice (offline) is the same match against 11 bots with no database at all, on its own clock that stops while paused. A slow frame is played in steps of at most 1/20 s (up to a quarter of a second), since the Drifter and the storm run on the clock. **Keeping it smooth (November 2026 audit):** every shader is compiled while the page loads (`warmShaders`, with the hidden meshes shown for a moment; the storm wall's used to compile, and freeze a frame, the first time it closed in), and the minimap's island picture is drawn during the menu rather than on a match's first frame (it takes about 30 ms). Sounds have a budget (`voice`: 14 nodes per 1/20 s, then only loud ones, and your own hit, hurt and pick-up sounds always), so a big fight or a building coming down doesn't build hundreds of audio nodes in one frame. The HUD only writes a value to the page when it changes (`hudSet`), name tags reuse their vectors and only move when they move a pixel, banners restart their slide-in without forcing a layout, and the storm (`stormAt`), hitboxes, the camera and movement no longer make new objects every frame. The lobby list is only drawn while the lobby is showing (every update from anyone used to redraw it, four times a second, mid-match), player names go through the name filter once (`cleanName` keeps them), and an update with no new events doesn't sort the event ring, so taking in another player's update costs about a fifth of what it did with 30 in a room. Writes are unchanged (`update()`s of the changed fields, about 50 bytes each, 10–12 a second while moving), so it plays with pages from before the audit. Each browser is trusted for its own health and hits, so it isn't cheat-proof. A test hook (`window.__dz`) exists only when `navigator.webdriver` is set. **Turkey Week** (`../events.js`, November 15 to 26, 2026): every player's cap is a pilgrim hat, built into the same body geometry (`bodyGeo`), so no extra draw calls; the game reads the one Turkey Week switch on the Back Room page (see `events.js` below) once, when it loads, and has no button of its own. **Collision (November 2026 fix):** ramps used to be a walking surface only, so a body could walk into one from the side or from under its high end and jump up through it from below, which is how people came up through stairs, ramp builds and the floors the stairs lead to. A ramp is now also a solid slab 0.36 m thick under its surface (`rampIn`, `rampBlocked`, `rampUnder` next to `moveEntity`): its side and its underside stop a body, its underside is a ceiling for a jump, and like a box it carries a body whose footprint overlaps it at all. So the map's zigzag stairs have to be walked round to the foot of each flight (the free cell at each end is for that), and two ramps built in one cell facing opposite ways no longer make a staircase. A body on the ground follows a ramp up as it moves rather than afterwards. Something built on a body (`pushOut`) moves it out the side its middle is already on, by no more than 1.2 m, never across the piece and never into a ramp; while a body is inside something it can only move back out, and can't rise. A piece built by this browser (you, a Practice bot) isn't placed if someone here would be left inside it (a floor through the head of someone on a ramp used to pop them up through it); a ramp built on someone stands them on it. Pieces arriving from other players are always placed. Loot heights come from `groundAt`, which now counts a ramp's edge, one more reason old and new pages mustn't share a match (see map versions). **Character size (November 2026):** characters were a fifth too big for the world, so everything about them is 0.8 of what it was (`BS`): the model is 1.72 m tall with its cap instead of 2.15 m and about 0.8 m across the shoulders instead of 1.0 m (the group is scaled, so the legs, the held item and the glider shrink with it); the collision box is 0.6 m wide and 1.6 m tall (`R` 0.3, `H` 1.6; was 0.72 and 1.95); the hit areas are a head box 0.45 m wide from 1.2 to 1.67 m up and a body box 0.67 m wide up to 1.2 m (were 0.56 m, 1.5 to 2.08 m, and 0.84 m up to 1.5 m), so everyone is a smaller target by about a third in area; the eye and bot-aim heights (`EYE` 1.3, `AIM_Y` 0.9), the muzzle (`MUZ_Y` 1.1) and the name tag (2 m up) follow. The camera sits 4 m behind instead of 3.5 m and 0.7 m to the side instead of 0.78 m, so a character takes about a third of the screen's height instead of nearly half. Jump height (1.7 m), step height (0.6 m), doors, walls and builds are unchanged, so doors and windows are roomier and a jump clears relatively more than it did. **Pace:** everything that sets how fast a match feels is in one block near the top (`SPEED`, `AIR`, `BUS_V`, then `WEAP`'s `dmg` and `STORM`'s times). In November 2026 it was all slowed by a sixth to a fifth (running 6.6 to 5.4 m/s, weapon damage about a sixth lower, the storm's times 1.2 times longer so the last circle closes 5:41 in rather than 4:44); running then felt sluggish, so the movement speeds came most of the way back while damage and the storm's times stayed: running 5.4 to 6.0 m/s (bots still 0.92 of it; aiming 0.7 and healing 0.45 of it as before), steering while falling 13.5 to 15 m/s and falling 25 to 28 m/s, gliding 9.2 to 10.3 m/s forward and 5.5 to 6.1 m/s down, the Drifter 20 to 22.5 m/s (it crosses the island in about 20 s instead of 23 s). **Weapons (November 2026: ten instead of five):** each family has a quick, light one and a slow, hard-hitting one, so two finds of the same family play differently. Damage a shot (headshot), seconds between shots, magazine, reload: Pistol 20 (35), 0.2, 12, 1.3 s and Heavy Pistol `hc` 42 (74), 0.55, 6, 1.7 s (silver, a fat cylinder, wood grip); SMG 12 (18), 0.075, 28, 2 s and Drum SMG `ds` 15 (23), 0.11, 40, 2.6 s (yellow, a drum under it; slower but tighter, longer range, a bigger magazine); Pump Shotgun 9 pellets of 8, 0.9, 5, 2.1 s and Auto Shotgun `as` 7 pellets of 6, 0.4, 8, 2.6 s (blue; wider spread, 32 m instead of 40 m); Rifle 18 (27), 0.12, 30, 1.9 s and Heavy Rifle `hr` 34 (54), 0.28, 18, 2.2 s (olive and wood; the most accurate when aimed, 180 m); Bolt Sniper 82 (164), 1.3, 4, 2.5 s and Scout Sniper `ss` 44 (88), 0.5, 8, 2.8 s (bone white, a small green scope, less zoom). The old five keep their ids (`pi`, `sm`, `sg`, `ar`, `sr`) and numbers; the Shotgun and Sniper are now called Pump Shotgun and Bolt Sniper. Chests and floor loot roll all ten (`W_ODDS`: 12, 10, 11, 9, 11, 9, 15, 11, 7, 5 in the order above), so the loot a seed gives is different from before; the new ids travel in `w` (what's in hand), in shot events and in dropped and taken items, and a page from before them would reject them, which is why the map version went to 4: old pages are kept out of new matches and told to reload. To add a weapon: a row in `WEAP` (with `fam` and `col`), its id in `WIDS` and `W_ODDS`, a model in `GUN_GEO` (with the end of its barrel, which goes into `GUN_TIP`), a rarity-band position in `RTAG`, a sound in `sfxShot`, and optionally `TR_W`, `FLASH`, `KICK`, `PUNCH`, `RECOIL` and `RELOAD_ST`; then raise `MAPV`. Bots pick and use weapons by family. `ICONS` holds a small picture of every weapon, the crowbar, the two heal models and the three build pieces, drawn once at load from the same geometry the game uses (`makeIcons`). **Aiming (November 2026):** holding Aim is different for every weapon, set by four fields in its `WEAP` row and a picture in `SIGHT`: `fov` (the zoom; the normal view is 72), `ad` and `as` (how far behind and to the side the camera sits; the normal view is 4 m and 0.7 m), `pose` (where the gun is held while aiming, seen over the shoulder: since the models were remade it is only a small lift from the normal hold, because the arms stay in the pose the body is drawn in while a weapon is held) and the sight drawn over the middle of the view in place of the crosshair (inline SVG in `#sight`, so it stays sharp). Pistol: fov 58, three white dots; Heavy Pistol: 50, a fat post in a notch; SMG: 62, a small ring; Drum SMG: 56, a ring with four ticks; Pump Shotgun: 60, a wide dashed circle and bead; Auto Shotgun: 66, wide brackets; these six stay over the shoulder at 3 to 3.4 m. The two rifles go to the eye (`ad` 0, your own character hidden): Rifle fov 46 through a small square red-dot window, Heavy Rifle fov 34 through a round tube with a red chevron and drop marks. The snipers have a real scope (`#scope`: a round lens in a black surround with a rim and a darker edge to the glass, `SCOPE` sets its size and colours): Bolt Sniper fov 16 with fine cross hairs, mil dots and thick outer posts; Scout Sniper fov 30 with a wider, green-rimmed lens and a duplex cross with an open centre. Look sensitivity already scales with the zoom. Nothing about aiming is sent to other players, so they don't see your gun raised. **Weapon models and feel (November 2026 remake):** all ten were rebuilt to the standard of Shell Crackers' guns; only looks, motion and sound changed, so damage, fire rates, magazines, spread, ranges and everything sent to other players are as they were and the map version is still 4. Each is still one merged mesh with its colours in the corners (one draw call for everyone holding that weapon and one for all of them on the ground, as before), now 340 to 770 triangles instead of 110 to 240 (Pistol 340, Heavy Pistol 508, SMG 504, Drum SMG 536, Pump Shotgun 612, Auto Shotgun 512, Rifle 612, Heavy Rifle 592, Bolt Sniper 772, Scout Sniper 676). `GUN_GEO` builds them from a few kinds of part: `bx` a box (optionally tilted), `ob` a bar with its long edges cut off and shaded smooth (so a body reads as rounded plastic), `cyl`, `pin` and `peg` a cylinder along the barrel, across it or upright, and `ex` a side outline pushed out sideways with bevelled edges (the stocks); `grip` and `guard` add the grip and the trigger guard every weapon shares. In a weapon's own coordinates -z is forward and the right hand (a 0.146 cube) is centred on (0, 0, 0.12): the grip goes down through the hand, the body sits on top of it, and a stock runs back over the forearm and stops at the chest (z 0.4), so with any outfit the weapon is in the hand and nothing passes through the arm or the body (before, the hand was inside the body of the gun and the stock ran through the forearm). `HOLD` is where a weapon is held: a little outside and above the middle of the hand and turned 4° outward, so its top shows over your shoulder from behind; it also tips up and down with the aim (yours, bots' and other players', from the pitch already sent). From directly behind your own character you still only see the back half of it past your shoulder (the colour, the scope, the drum, the carry handle), because the arms hold every weapon in the pose the body is drawn in; the whole outline shows on other players, on the ground, in the hotbar and when you aim over the shoulder. `GUN_TIP[id]` is the end of the barrel: the flash, the tracer and the spent case are drawn from the weapon as it is held (`gunTip`, `gunPoint`), while the shot itself still starts at `muzzleOf` and what is sent is unchanged; looking down the rifles' sights the flash and the tracer start just under the sight, and a scope shows no flash. `animModel` adds the motion, all of it turning about the hand: `KICK[id]` (how far a shot shoves the weapon back, how far the muzzle jumps and how fast it settles; the crowbar has its own swing, `SWING`, see Body and animation), the pump of the Pump Shotgun and the bolt of the Bolt Sniper worked between shots (0.2 to 1.1 s after the shot, two sounds and the case hopping out, `gunAct`; other players' too, from their shot events), a reload motion for each kind (`RELOAD_ST`: magazine out, magazine in, rack; the Pump Shotgun a shell at a time; the Heavy Pistol's cylinder; the Bolt Sniper's bolt) with a sound at each stage, and a swing up from below when an item is taken out (`userData.sw`). Reloads show for you and for bots only, since a reload is not sent. `FLASH[id]` is the size of the muzzle flash and the length of its tongue (shotguns wide and short, rifles and snipers long, SMGs a flicker; the big ones add a dimmer glow), `TR_TL` how long each family's tracer is, `shell` the spent case (a bit from the shared pool, only within 30 m; shotgun shells are red, the Heavy Pistol keeps its cases), and `PUNCH[id]` widens your view by up to 1.7° for a moment with each of your own shots (zoom only, so the aim point does not move; `updateCamera` eases it back). With reduced motion there is no kick, action, swing, case or view punch. Sounds are still made on the spot: `sfxShot` has ten shots that differ in pitch, length and tail (`burst` can now start late and sweep its filter), and `sfxPump`, `sfxBolt`, `sfxReload` (out, in, rack, shell, open, shut), `sfxSwitch` and `sfxDry` (the click of an empty weapon with nothing left to load) are new. Floor loot is the same model, turning about its own middle (`GUN_MID`) and nearly level so the outline reads, over a glow in the rarity colour with a clearer ring; past 75 m a weapon is only its glow. The rarity band on a held weapon is a cut-edged sleeve to match the bodies (`RTAG`, drawn by `rarIM` as before). **Hotbar (November 2026):** every slot shows a picture of what is in it, taken from `ICONS` (so it is the item's real model: the ten weapons, the crowbar, a first-aid box for Bandage and Medkit, a bottle for the two shields, and the three build pieces), with the rounds loaded or the count in the top right corner, the short name underneath and the rarity as a bar along the bottom (`slotIcon`, `slotLabel`). Scrap has its own chip in the hotbar (`#matsBox`: a stack of planks and the count in big figures, which jumps when it changes and turns red below the cost of a piece) instead of a small line in the health panel, and each build piece shows its cost (10) next to the same little plank, greyed and red when you can't afford it. The three build pieces are only in the hotbar while you are building (`#slots.building`): the new Build key (B, `build` in the key settings, `toggleBuild`) or a tap on the scrap chip goes in with the piece you last used and comes back out, and Q/Z, F/X and C/E still go straight to a piece as before; a slot key, the crowbar or Aim leaves build mode and the pieces go away again. **Land (November 2026, map version 5):** the island is no longer flat. `designLand()` fills a grid of heights (`TH`, one every 2 m, reaching 16 m past the 240 m square for the sea bed) and `terrainH(x, z)` reads it with the very triangles the ground is drawn with, so what you see is what you stand on. Everything asks that one function: the drawn ground (`landGeo`), walking, falling, gliding and landing (`walkH`, `groundAt`, `moveEntity`), shots, sight lines and the camera (`rayTerrain` inside `raycast`), where loot, chests, props, trees and bots stand, builds, the storm's centres, the bots' paths and both maps. The grid is made from whole-number hashes, + − × ÷ and square roots only and rounded to 1/32 m, so every browser has the same land to the last bit and loot lies at the same height for everyone. Sea level is 0. Shape (`designH`): rolling noise for the low ground; smooth mounds measured from points pushed about by noise, the highest winning where they meet (Signal Point's hill at 16 m, a ridge from it east to the top of the dam at 20 m, the plateau that holds the reservoir, the farm's tableland at 8 m, a knoll on the west shore, a hillock south of the plaza, the timber shelf at 8 m); creased, ridged noise on the high ground; the crater is a real bowl whose rim is lower at four gaps; a wandering coast with round corners and beaches, and cliffs where the high north and east meet the sea. Each place stands on a level pad (`PADS`, `LVL`: farm 8 m, Signal Point 16, plaza 4, dam yard 8, motel 4, crater floor 4, timber camp 8; the five sheds on the multiple of 4 m nearest the land under them, `SHED_Y`) that blends back into the land over 6 to 12 m, and `grp()` raises everything the place adds by its level (`OFY`), so buildings, doors, stairs and ramps are exactly as they were. Single props (`onLand`: trees, rocks, bales, crates, fence sections, the crater's boulders) stand on the land under them, sunk a little. What moved: the farm's field is smaller and lies on the slope below the yard; the dam's paved yard is shorter (the valley closes in at both ends of the wall); the reservoir is real water 9 m above the yard and narrower than its old painted rectangle; one shed moved 12 m south; trees stand in clumps; two crater boulders that sat across a shed's doors are gone; a chest against a wall keeps its loot inside the room. **Slopes:** the steepest ground a body can walk up is 45° (`SLOPE_MAX`: 1 m up per metre along). Steeper land is a cliff: it stops a body like a wall, and a body that lands on one slides down it at 7.5 m/s (`SLIDE_V`) and can't jump until it is off (`e.slide`). Gentler ground is followed up as you move and stuck to on the way down, so nobody hops downhill. Where the sea is deeper than 1 m a body stays 1 m under the surface (`WADE`), and wading waist-deep is slower (0.72 of running). The camera is pushed in by the land as by a wall and is never under it. **Surface** (`landMaterial`; it replaces the 2048 px picture of the whole island, which was a blur up close): the shader decides what each pixel of ground is from its height, its slope and a small control map drawn once at load (`paintControl`: 1024 px, 512 on Fast and on phones; red is dirt, green is paving, blue is how much darker): grass with broad paler and darker patches, sand below about 1.4 m that is wet at the waterline with a line of foam, bare rock on faces steeper than about 40°, dirt for the tracks, yards, clearings and the ploughed field, paving with its joints drawn on the 4 m grid. Fine detail comes from one tiling texture made in code (`landDetail`: 512 px, 256 on Fast; blades, grain and pebbles, rock strata and concrete in its four channels), read once every 5 m and, for broad variation, at a 47 m scale, so it is sharp at your feet and the tiling never shows from the air; where two materials meet the grain decides which wins, so a track's edge is a crisp ragged line of pebbles and tufts rather than a fade. Every corner of the ground carries a baked shade: darker in hollows and where a hill or cliff stands between it and the sun. Pretty reads the 47 m scale from the texture, adds a finer layer of detail, strata mapped from both sides on cliffs and wind in the grass (six reads a pixel, as many as the old Pretty ground, one of them filtered at a slant); Fast reads two textures a pixel (the old ground read one) and takes its broad variation from a value stored at each corner of the ground. Water (`waterGeo`): the sea and the reservoir are sheets whose colour and clearness are set at each corner from the depth under them (clear turquoise shallows, solid blue further out). Scatter (`scatterLand`): grass tufts where the ground is grass (4,400 on Pretty, 1,600 on Fast, 1,200 on phones; they shrink away between 40 and 65 m) and small stones (420, or 150), two instanced meshes, neither solid. **Cost,** at the same five views before and after: draw calls are up by one to four (Pretty 18–32 before, 20–35 after; Fast 8–22 before, 9–24 after: the ground is still one mesh, the sea and the reservoir replace the sea and its shallow ring, tufts and stones add two); triangles went from 55–84 thousand to 84–114 thousand on Pretty and from 51–80 thousand to 64–94 thousand on Fast (the ground's own 37 thousand are unchanged; the rest is tufts, stones and a few more trees); the ground's textures went from about 21 MB of graphics memory to 7 MB on a computer and from 5.3 MB to 1.8 MB on Fast and phones. Frame times could only be measured in software drawing, where they were too noisy to rank (between the same and half as long again in both looks), so try it on a real school laptop before trusting it. Nothing new runs every frame except height lookups (one grid read and a few multiplies each) and the wind's clock; a 150 m ray over the land costs about 8 millionths of a second (6 before). **Builds on slopes:** the grid stays level, at multiples of 4 m, so builds still line up with buildings and each other. A wall must show at least 1.5 m above the highest land along it, and where its foot is above the land a skirt of darker planks fills the gap down to the ground (`skirtOf`, `skirtIM`: part of the same solid, one more draw call while any exist); a floor may not be more than 0.3 m under the land at the highest point of its cell; a ramp's top must stand 0.5 m clear of the land, its foot may run into the hillside and you walk onto it where it comes out; nothing may be more than 8 levels above the land under it (`landOk`). `playerBuildSpec()` and the bots take the lowest level that passes (`landFit`), so a piece is never placed underground; on a place's pad the levels are what they always were. The rule that a piece isn't built where it would trap someone is unchanged and counts the skirt. Every browser has the same land, so everyone agrees which pieces are allowed and nothing new is sent. **Bots on the land:** `buildNav()` cuts the island into 4 m cells and closes the ones that are cliff, inside a building, or filled by a boulder, the dam's wall or the foot of a stair; when the straight line to a goal crosses a closed cell (`landClear`), `landPath()` finds a way round (A*, run only when a bot picks a goal) and hands back a few corners to walk through. Deep water costs three times as much as land and high ground a little less than low; of two places to wander to, a bot usually takes the higher. Held up by a trunk or a corner, a bot steps to one side, then the other, before giving up. In stepped bots-only matches (tests only: `__dz.step`, `STUCK_LOG`) no bot gave up on a goal. **Maps:** `buildMapBg` draws the minimap and the big map from the land itself: sea by depth, sand, grass that pales with height, rock on steep faces, tracks and paving from the control map, lit from the north-west so slopes read, and a darker line every 4 m of height. To change the land: edit `designH` or `PADS` (keep every pad a multiple of 4 m), check that no cliff cuts a place off, then raise `MAPV`. **Buildings (November 2026, still map version 5):** every building, the props round them and the light they stand in were remade, without changing what is solid. `house()` makes exactly the boxes it always did, in the same order, so the 1,185 breakable pieces keep their numbers, sizes and neighbours, and stairs, doors, loot spots and the bots' paths are where they were (checked with a fingerprint of every box, piece, ramp, loot spot and nav cell before and after; a page from before the change and a new one play in the same room and break the same pieces). What changed is what is drawn. Each building has a style (`KS`: barn, farmhouse, hut, mall, pump, motel, office, mine, cabin, shed; pass `st` to `house()`): an outer and an inner wall surface, trim, a plinth, corners (boards, log ends, steel angles or concrete pilasters), window and door frames with sills, the door (a sliding barn pair, a leaf folded back against the wall, a steel leaf with a hazard band, or none), shutters, flower boxes, a canopy or porch roof over doors, the roof edge (eaves on rafter ends, a stepped cornice, or a fascia with a neon tube), a capped parapet, the roof, floors, a floor laid on the ground indoors, ceilings and skirting. `kitWall()` adds all of that to a wall cell inside the cell's own `brk()`, so it breaks with the cell and nothing is left hanging; a building can add its own extras per wall cell (`x`), roof cell (`rx`) and floor cell (`fx`): the barn's hatch, hoist, beams and vents, the mall's name, skylights, coolers and strip lights, the hut's cooler and dish, the pump house's risers, the office's and motel's signs, the cabins' chimney breasts. The drawing tools: `kb()` (a detail box: drawn only, never solid, only the faces asked for), `wk()` (the same in a wall's own terms: along it, up, out from its face), `deco()` (any other shape, turned any way), `sign()` (raised block letters from a small dot font, `FONT`, drawn cell by cell so each letter breaks with its piece of wall), `lampPost()` and `bays()`; `FK` makes `sbox()` draw its box with a different surface on each face, and `NOVIS` makes it count toward its piece's size without being drawn (the kit draws it instead). Detail drawn while `DECO` is set, and everything from `kb()`, doesn't count toward a piece's size, because that size decides which pieces touch and hold each other up. To add detail: draw it with these inside the piece's `brk()` and never call `solid()`; keep anything that isn't solid thin, low (under about 0.4 m), flat against a wall or above head height, so nobody can hide inside something shots pass through. Anything that changes a solid box, a doorway, a stair or the number or order of pieces needs `MAPV` raised. **Surfaces** (`KIT_TEX`, `TX`): one array texture with fifteen layers, each a 2 m tile drawn in code at load (upright boards, clapboard, brick, stucco, corrugated sheet, cast concrete, shingles, logs, floor tiles, roofing felt, glass, riveted panels, straw, stone blocks, hazard stripes), laid on in metres from each face's own position, so a plank or a brick is the same size on every wall (128 pixels a metre; 64 on phones). A layer is a pale pattern tinted by the wall's paint (its vertex colour), except where its alpha is 0, where it keeps its own colour (mortar, nail heads, stripes). The island's chunks carry one more attribute, `dzA`: the layer, the height above the foot of the thing (the shader darkens and dirties the bottom metre or so of every wall, post and trunk) and how far indoors a face is (indoor faces are dimmer, more so on Fast, which has no shadows to do it). Each building has its own slight colour cast (`TINT`). It needs WebGL 2; without it the island keeps plain paint. One texture read a pixel on both looks, and no new passes. **Stairs, railings, props:** the map's stairs are drawn as sixteen steps over a soffit (what is walked on is still the smooth ramp); railings are panels with a cap rail and a post; cars and the farm's tractor are rounded toy vehicles with wheels, lights and bumpers inside the same solid boxes; crates are banded planks and bales are straw; the motel has loungers, a tiled pool with lane lines and a ladder and its name in raised letters with neon round it; the plaza's planters have a timber seat round the rim and its cars stand in painted bays under lamp posts (drawn only: a pole is 12 cm thick); the silo is ribbed and hooped with a ladder; the tower has white bands, cross braces above the first floor and a mast with drums, panels and a beacon; the dam is cast concrete with sluice gates, its name and lamps along the walkway; the sawmill stands on stone pads under a tin roof on rafters, with plank stacks and stumps; shards stand out of the fallen star. **Broken edges:** a wall, floor, roof or railing piece that breaks no longer leaves a clean hole: the pieces still standing round it keep a few jagged stubs of it where it joined them, and a wall that stood on the ground leaves rubble along its foot (`shardsFor`, one instanced mesh, `shardIM`, up to 1,200 stubs, a draw call only while something is broken). Stubs are drawn only; a stub goes when the piece it hangs on goes (`shardsOff`); which stubs exist depends only on what is broken, so everyone sees the same and a late joiner gets them from the broken list. **Light:** the sun is where it was (a roof, the two sunlit sides and the two shaded sides of a building are different tones); the fill light's ground colour is pale stone instead of grass green and a little stronger (0.58, ambient 0.11), so walls in shade keep their own colour instead of going olive. Shadows (Pretty) are unchanged and sit under the new eaves, canopies, sills and the balcony; the darker foot round every building on the ground was already there. **Cost,** at five views, before and after: draw calls are unchanged (16–25 on Pretty, 16–24 on Fast, not counting the shadow pass, which draws the chunks near you again); triangles went from 96–111 thousand to 121–150 thousand on Pretty and from 79–94 thousand to 99–125 thousand on Fast (Fast, as set when the page loads, and phones leave out the kit's smallest pieces, `KLITE`); the chunks' vertices went from 109 thousand to 224 thousand (about 4 MB to 11 MB of graphics memory with the new attribute); the surfaces add one texture of 5.2 MB (1.3 MB on phones). Frame times could not be measured here (software drawing), so try it on a real school laptop and a phone. Not done: a simpler version of far buildings (the island is 240 m across and already 16 meshes), filmic tone mapping and sRGB output (they would change every colour in the game, guns and characters included), ambient occlusion and bloom passes, glass in windows (windows stay open holes because shots pass through them), pitched roofs (roofs are walked on), benches and big roof clutter such as tanks (they would need new solid boxes, which needs a new map version). **Building and editing (November 2026, map version 6):** building was a copy of Backrooms 1v1–4v4's from the start (the same placing from your own cell and the way you face, the same 0.09 s build clock, so holding Place while you move or turn puts up about ten pieces a second, the same ghost and sounds), and it now has Backrooms' editing too, on Driftfall's own pieces, so there is still one build system. Also carried over: a new piece pops in from 0.82 of its size in about a ninth of a second (`piecesTick`; not with reduced motion); the ghost shows what you will get, a wall's skirt included (it used to show only the 4 m box, which floats above a slope); every piece knows who built it (`owner`: a player's id, a Practice bot's, `me` in Practice). Kept from Driftfall: 10 scrap a piece (an edit is free), the land rules and skirts, the rule that a piece isn't built where it would trap someone, the 4 m grid, health and the three shades, build mode and the hotbar. **Editing:** aim at a wall, floor or ramp you built from within 6 m (`EDIT_RANGE`) and press Edit (H, `edit` in the key settings, because G is Open / Take here and T is the chat; G does it too when nothing is in reach to open or take; on a touch screen an Edit button appears while the crosshair is on a build of yours): the piece turns into a grid of tiles, 3 × 3 on a wall and 2 × 2 on a floor or a ramp (a ramp's are its low and high halves, left and right). Fire opens or closes the tile under the crosshair (hold and sweep for several), Edit again confirms, Reload makes the piece whole again and Aim cancels; the touch buttons read Tile, Done, Whole and Cancel meanwhile. At least one tile has to stay. Nothing changes until you confirm, the change lands 0.4 s later (`EDIT_T`), and you can't shoot or build while the grid is up or during that 0.4 s, so an edit is never instant in a fight. Driftfall has no teams, so your side is you: the only builds you can edit are the ones you placed, never another player's or a bot's. Picking a slot, the crowbar or a build piece, opening the big map, being knocked out or going more than 10 m away closes the grid and changes nothing. **Shapes:** a piece's shape is `ed`, one bit per tile cut out (tile (u,v) is bit `v*n+u`; 0 is the whole piece), with Backrooms' own `ED_N`, `edRects` and `pieceShape`: the tiles left are joined into as few rectangles as it takes, and each rectangle is one ordinary box in the spatial hash, or for a ramp one ordinary ramp sheet with a smaller footprint, so there is no second collision system: you walk through a door and shoot through a window because no box is there. For that, every ramp (the map's stairs too) is now a sheet with a footprint `ax0`…`az1` and a range `t0`…`t1` up its slope (`addRamp` gives the map's the whole cell), and `rampH`, `rampUnder`, `rayRamp` and the ceiling test in `moveEntity` read those instead of assuming the cell; a whole piece is the one box or sheet it always was. A wall's skirt is not part of the grid: under an edited wall it is a box of its own, the full width, from the land up to the wall's foot, so a door cut where the land is lower has a sill (walked over if it is under 0.6 m, jumped onto if it is more). The trap rule covers edits: tiles are not put back onto someone in this browser who can't simply be nudged clear (`wouldTrap`; you are told someone is in the way), and a door put back with you standing in it moves you out. **Drawing:** whole pieces stay in the three instanced meshes; an edited piece's rectangles are unit boxes in one more instanced mesh shared by every edited piece of every kind (`partIM`, `partsOf`; each box's window of the plank texture is a per-instance attribute, `uvw`, so the planks run on across a cut), which makes thirty edited pieces one draw call, not thirty (measured: 36 calls with thirty whole pieces in view, 34 with the same thirty edited, the three kinds' own meshes then being empty); the grid you see while editing is three more, in place of the piece, and only on your screen. **Online:** an edit travels as the build event for that spot again with `ed` and `n` added (`n` counts the piece's edits, so an older shape never replaces a newer one), and is taken only from the player who built the piece. The host's node also carries `bd: {m, s}`, the builds standing, nine characters a piece (kind and direction, x, z, level, `ed`, `n`, and the builder as a place in the roster; `buildList`), written again at most every two seconds: a late joiner gets every piece in its shape from it, and a page that missed a build or an edit catches up (`applyBuilds`). A page never removes a piece because of the list (a build the host itself missed stays missing for the host), and doesn't put back one it saw break in the last 8 s. A page from before this would keep the whole piece where a door was cut, and the two would disagree about what is solid, so the map version went to 6: older pages are kept out of new matches and told to reload, the usual way. **Bots** don't edit. They see and shoot through openings only (their sight line and their shots are the game's rays), walk through a door that is in their way, and break the part of a build that holds them, looking at head and shin height as well as chest height (`botBreak`), since an edited piece can hold a body by its top or its bottom alone. A bot that slides to and fro along a line of builds for two seconds without getting nearer its goal now breaks through it (stepping aside never came to a stop, so it never counted as stuck; that was so before editing too). **Checked** with the game's own movement and shots against the tiles themselves: on flat ground every one of the 511 wall shapes both ways round (275,940 shots straight and slanted through every tile from both sides, 14,308 walks, 840,000 moves of thrown and jumping bodies at 60, 30 and 20 frames a second), all 15 floor shapes and all 15 ramp shapes in all four directions; on slopes 14 walls with skirts of 0.5 to 3.7 m in 20 shapes each (shots at every tile and at the skirt, 1.7 million moves, doors walked through where the land allows and stopped by the sill where it doesn't), and 8 floors and 8 ramps in every shape; whole pieces compared number for number with the page before (37 pieces on flat and sloping ground, 444,000 moves and 11,100 rays, all identical). Weak or not done: the first wall on rising ground can still show as little as 1.5 m above it (the land rule from map version 5 was left alone); you still start with 30 scrap, three pieces, so a build fight needs the crowbar first; on a phone the build pieces are still behind the scrap chip; a body that another player's build lands on can still be left inside it (as before: only this browser's own builds and edits are refused). **Locker (November 2026, captains only for now):** skins are built but players can't see them yet. Nothing about the Locker is on the page or read from storage unless `lockerOn()` says this player may see it: the account signed in is one of the site's captains (`../captains.js`, see below), or, for testing, the page is opened with `?locker=1` on localhost or in an automated browser (remembered for that browser tab only: `sessionStorage` `driftfall:locker`; `?locker=0` forgets it; on the live site the address does nothing). A captain's answer arrives a moment after the page loads and goes away if they sign out (`lockerSync` shows or hides the button and puts the saved outfit on or takes it off; an outfit saved by anyone who may not see the Locker is left alone and the Noob is worn). Everyone else wears the Noob and has only the Face button (see Noob and drawn faces, below). To make it public, change one line: `LOCKER_PUBLIC` to `true`. With it on, the menu gets an Outfits button beside the name box (the box is moved into a row with it, so nothing below moves when it appears), which opens the Locker: a grid of the skins (each card's picture is drawn once, from the skin's own geometry, by `pics`) and your character turning in front of the island (drag to turn it; it uses the game's one renderer, with the camera moved to a character standing at `SPOT` and the picture shifted into the free part of the screen by a view offset; on an upright phone the character is on top and the cards scroll underneath). The choice is saved as `driftfall:skin` (the skin's id) and worn in Practice and online; while the Locker is on, the practice bots wear skins too, so each can be seen in a match. `OUTFITS` holds Standard and 24 skins. First twelve built to the contributor's November 2026 sketches in the sketches' own colours (they don't use the player's colour): Pilgrim, Turkey Person, Noob, Feathercap, Pilot, Golden, Fishface, Army Soldier, Airline Pilot, Soccer Player (Red/Blue), Soccer Player (All Red), Clown. Then twelve that take the player's colour for the main garment or the trim: Hooded Jacket, Racing Suit, Overalls, Toy Knight, Space Suit, Raincoat, Chef, Diver, Robot, Varsity Jacket, Builder, Wizard. Bare skin (face, hands, the footballers' arms and knees) is the player's own tone, except Noob (yellow), Golden (gold) and Fishface (orange), whose colour is the costume. A skin is a different set of boxes on the same body (`fitBase` gives every one the same torso, head, arms and hands, which `bodyRig` then shapes and gives bones: see Body and animation), built by `bodyGeo(hex, skin, fit)` into the same one merged mesh with vertex colours, so there are no textures and no extra draw calls for a body: stripes, the Golden sheen and camouflage are painted square by square on rounded boxes (`bagPaint`, `bagCamo`), and shirt numbers, buttons, feathers and the tail fan are small boxes (`bagTurn` for tilted ones). Legs: the standard legs are untouched (`legIM`); skins that set `legs` are drawn by one more instanced mesh for all of them together (`fitLegIM`: one extra draw call for the whole view while anyone in view wears one, none otherwise), whose leg has the standard leg's shape cut into ten bands (`fitLegGeo`) and takes four colours, a shoe colour and a pattern per leg (`legSpec`: kit with shorts, bare knee, sock top and a hoop; two-part for boots or the turkey's orange shins; spots; camouflage), read in the shader of its own copy of the material (`FLMAT`). Triangles per character, legs included: standard 3,852 (4,056 with the pilgrim hat); skins 2,344 to 3,808 (2,932 to 3,988 with the hat), so never more than the standard. Fairness: the collision box and the hit areas never look at the model, so they are identical for every skin, and every skin has the same body, height to the top of the head and pose. What differs is only the look, and where the sketches and strict sameness pull apart the sketches won: the twelve sketch skins carry no backpack, so from the side the outline of the bare-backed ones is 85 to 98% of the standard's (bare-headed ones are 6 cm shorter than the standard cap); Turkey Person's tail fan reaches about 18 cm past each shoulder (it is not a hit area); Pilgrim, Pilot, Airline Pilot and the two football kits are darker than the darkest standard colour (average brightness 0.26 to 0.34 against 0.35); Army Soldier is green camouflage, shifted a little bluer than the sketch so it is not the grass's own green, but it is still the hardest to spot on grass. The second twelve are held to the standard: as wide and deep (each has something on its back as deep as the backpack), 0 to 15% larger in outline and never smaller, at least 0.98 of its brightness, no ground-coloured parts. During an event the event's hat (`eventHat`, Turkey Week's pilgrim hat) takes the place of every skin's own headwear, helmets, caps and the clown's wig included, so everyone keeps the same outline; costume heads stay (Turkey Person's hood and beak, Fishface's head), with the hat on top. A later event's headwear (the game has no winter look yet) goes in `eventHat` and then works for every skin. Online, a skin travels as one small number in the player's own node, `sk` (its place in `OUTFITS`; left out for the Noob). A page from before the Locker ignores it and draws the standard body; a page that gets no `sk`, or one it doesn't know, draws the Noob (`fitOf`); the map version was not raised, so old and new pages still share matches. A new page draws another player's skin whether or not its own Locker is on. To add a skin: add an entry to `OUTFITS` with `id`, `name`, `body(B, c)`, optionally `hat(B, c)`, `legs` and `skin`; add only at the END and never reorder or remove one, because its place is the number that is sent (`NOOB` is found by its id, but pages already out there read the numbers). Keep it on `fitBase`, at or under 3,852 triangles with its legs (`R` is 192, `L` 48, `X` 12; outfit legs 1,024 a pair, standard 768), and away from the ground's colours. **Noob and drawn faces (November 2026):** everyone starts as the Noob (`NOOB`, its place in `OUTFITS`): players, the practice bots and anyone whose node has no `sk`. Players without the Locker can't see or pick anything else, and the outfit's name is never shown to them. So that players can still be told apart in a fight, the Noob carries the player's own colour where it shows from every side: a backpack as deep as the standard one, its straps (front, back and over the shoulders) and the belt (the colour is the same one as the dot beside the player's name in the lobby). Name tags and the minimap are unchanged (tags show names only; the minimap shows only you or the player you watch), so nothing there disagrees with the look. The menu has a Face button beside the name box for everyone (a captain's Outfits button goes after it), which opens the Face screen (`Face`): a grid 12 squares wide and 10 high to draw on in black only, with a pencil, an eraser, undo, clear and six starter faces to stamp (`FACE_STARTS`), and your character's head beside it on the island (the Locker's stage, `STAGE`; drag to turn it). Mouse (the right button rubs out), finger (drag draws a line, the page does not scroll) or keyboard (arrows, Space or Enter fills or empties a square, P pencil, E eraser, Z undo, Escape is Done). The grid's left is the face's left as you look at it. The drawing takes the place of the outfit's own eyes and mouth (an empty grid is the outfit's own face); for a captain it goes on every outfit, on the face or on the front of the headwear (each outfit's `face` or `hatFace` spot says where; Racing Suit's dark visor opens to the face, Toy Knight's eye slit and Robot's eyes go, Diver wears a full-face mask with the drawing on its glass, Wizard's beard is trimmed so a mouth shows). Turkey Person's beak and wattle stand in front of the middle of the lower part of the grid (20 of the 120 squares can't be seen from straight in front). In the world the black squares are flat quads a centimetre in front of the face, added to the body's own merged mesh (`bagFace`): vertex colours, no texture and no extra draw call. Squares side by side are one strip, cut every four squares so it follows the curve of the head: at most 120 triangles more per character (a checkerboard), 60 for a fully black grid, usually 10 to 40. The Noob is much cheaper than the standard look (2,704 triangles with legs against 3,852), so a frozen practice frame with 12 characters has about 14,000 fewer triangles than before and the same draw calls. A body is rebuilt only when its colour, outfit or face changes, and another player's new face is taken at most once every 3 seconds. Saved as `driftfall:face` and sent in the player's own node as `fc`, only when there is a drawing: 20 characters from `A-Z a-z 0-9 - _`, six squares to a character, row by row from the top left. `faceOf` lets through exactly that and nothing else (anything else, and the empty drawing, is the outfit's own face). A page from before this ignores `fc`, and since a Noob sends no `sk` it draws new players in its standard look in their own colour; a new page draws an old page's player as a Noob in their colour with the default eyes. The bots are Noobs wearing the starter faces, picked by their number (with the Locker on they wear the outfits instead); a player's drawing is never put on a bot. Each viewer has a switch, "Show other players' drawn faces" (on the menu and the pause screen; saved as `driftfall:faces`, `0` when off): off, every other player has their outfit's own face on that screen. Nobody checks the drawings: the grid is coarse and black only, but someone can still draw something rude, and a viewer can only hide everyone's drawings, not one player's. **Body and animation (November 2026):** the body has a shape and moving arms, with the same triangles and draw calls. **Shape:** `bodyRig` takes whatever an outfit drew on `fitBase` and narrows the waist and widens the chest toward the shoulders (`BODY_W`, a width factor at each height: 0.76 at the waist, 0.99 at the belt, 1.06 at the chest), and presses the top of the chest down, most near the neck (`SQ_Y`, `sqK`), so the shoulders slope to a short neck. The neck, head and hair (drawn while `BW` is 1), the headwear, anything in front of the face and anything on the back (packs, tanks, shields, the tail fan) are left alone, so drawn faces, hats, Turkey Week's hat and the height don't change, and every outfit's coats, straps, vests and belts follow the same body without any change to the outfits themselves. Legs taper from hip to ankle (`legTx`, `legTz`), still drawn by `legIM` and `fitLegIM`. Triangles are unchanged (the Noob 2,704 with its legs, every outfit as before) and so are the draw calls: the body is now a `THREE.SkinnedMesh` with four bones (hips, chest, left arm, right arm) and its own copy of the material, `BMAT` (the same shader with skinning on, shadows and Pretty grain included). `bodyRig` gives each corner its bone: a part centred on an arm's line at shoulder height (`ARM_SEG`: sleeve, cuff, band, hand) follows that arm; the rest blends from the hips to the chest between 0.96 and 1.12 (model units), so the chest turns over the hips without a seam. **Poses** (`POSES`, set by `posePut`) are twelve numbers: the chest's lean and turn, each arm's turn about its shoulder (`ARM_P`) and a slide outward, and the crowbar's angle in the hand. 0 is the pose the body is drawn in (both arms forward on a weapon), which every weapon still uses, so held weapons, aiming, reloads, the pump and the bolt are exactly where they were (checked number for number against the page before) and the hands stay on every grip. `animModel` blends toward the pose for what someone is doing over about a fifth of a second: the crowbar out (the right hand at the chest, the bar resting back over the right shoulder, so it shows from behind; the left arm hangs and swings against the legs), falling (arms out), gliding (both hands up on the glider's handles); the held item is carried along with the right arm and the chest (`heldFollow`), and nothing is in the hand while falling or gliding. **Glider** (`GLIDER_GEO`, its origin between the handles at `GLIDE_Y`): two handles where the hands are, a strut from each up to the wing, a crossbar above the tallest hat, a yellow middle and orange and blue side panels tipped up a little (240 triangles instead of 60, still one draw call while out). It unfolds over about a third of a second when it opens and folds away as you land while the arms come down; the body hangs 0.3 rad forward under it with the legs trailing and leans into turns, worked out from how fast the heading turns and how fast it slides sideways, with the wing banking a little more than the body. **Crowbar swing** (`SWING`, keyed in seconds): a wind-up up and back over the right shoulder with the chest turning right (0.055 s), a fast arc down and across to the front (0.1 s: contact), a follow-through to the left (0.17 s) and back to the carry by 0.44 s, just inside the crowbar's 0.45 s between hits. The hit itself still lands when you press, as before; the spark, the whack and, for your own hits, a small camera shake (`shakeAt`, a sixth of a second; not with reduced motion) are held back to the moment of contact (`SWING_HIT`, 100 ms), so what you see and hear agree. Everyone's swing starts from the shot event every crowbar swing already sends (`swAt`), and the glide pose comes from the state, position and heading already sent, so nothing new is sent and pages from before share matches (they draw the old look). With reduced motion there is no swing (the arms still take each pose). **Feet:** a stride on the ground is as long as the ground it covers (`LEG_L`, hip to sole; the swing grows with the square root of the speed), so a planted foot no longer slides: at 2, 4 and 6 m/s it moved forward over the ground at 1.5, 2.1 and 3 m/s before and at 0 to 0.03 m/s now. Past 70 m a character's arms keep their last pose. **Cost:** in a frozen practice frame with 12 characters, draw calls and triangles are identical before and after at all three screen sizes (laptop: 34 calls, 166,086 triangles); `animModel` takes about 8 to 13 millionths of a second a character instead of 2 to 5 (about 0.3 ms a frame with 30 players in view), each body uploads four bone matrices a frame, and building a body takes up to about 1 ms more (only when someone's colour, outfit or face changes). Frame times could not be measured here (software drawing). Hit areas and the collision box are unchanged and still never look at the model. Weak: from straight behind you only see the swing's wind-up (the arc and the hit are in front of the body); the arms are single pieces with no elbows, so the shoulder carry has the hand at the chest; the very first shadow drawn on Pretty may compile one more shader (the skinned shadow) on the spot. Collision rules (keep them if you touch movement): you and the Entity are boxes 0.72 m wide and 1.95 m tall; map walls, posts, pillars (0.9 m and 1.5 m), office partitions (1.25 m tall, 12 cm thick: jump onto or over them) and built walls and floors are solid boxes. A ramp is solid too (`inRamp`): a sloping sheet 0.33 m thick whose top you walk on. With the middle of a body over a ramp, the body is clear of it only on top (feet no more than a 0.6 m step below the surface, which is how you step onto the low end or land on it from a jump) or underneath with its head under the ramp's underside; anything between counts as inside the ramp, and movement never goes there: walking or jumping into a ramp from the side or from behind stops you (`rampBlocks`), under one you can only stand where there is head room (the 1.5 m under the high end) and a jump there stops at the underside, and nothing gets up through a ramp from below. (Until November 2026 ramps were walkable surfaces only and could be walked and jumped through.) Movement goes one axis at a time so you slide along walls; a move that would enter a solid is dropped unless it is a step of up to 0.6 m onto something with head room; and a frame that would move you more than 0.25 m (below about 25 fps; frames are capped at 50 ms) is split into shorter steps, so nothing as thin as a wall can be skipped over. You stand on anything your box overlaps and fall only once you are clear of it, and walking up a ramp into a floor stops you under it (if a floor dropped on you pushed you down below a ramp's surface, you can still walk back down the ramp, just not further up). The only way into a solid is a build landing on you (your own, the Entity's or another player's), and the game then shoves you out the shortest way (sideways out of a wall, up onto or down from under a floor) that ends inside the map without passing through any other wall or build on the way, rather than trapping you or letting you walk through it; the same push-out runs at spawn and on every step. A ramp that lands on you (`rampOut`) lifts you onto it if that is no more than 2 m up, so a ramp placed in the cell you are standing in puts you on it ready to climb; otherwise you are moved the shortest free way: along the slope to where there is head room underneath or to where it is low enough to step onto, out of a side, or up or down. Other players' drawn positions are clamped to the map and pushed out of solid boxes too (not ramps: each player's own page keeps them out of those), so a corner cut between two updates, or a late update carried on, never draws (or lets you shoot) someone inside a wall. Shots are rays tested against every solid, ramp surface, the floor and the ceiling before players, so they can't pass through walls or builds. -- `e63334287a3deaa3/blockstorm/`: Blockstorm (Back Room), a blocky first-person shooter by GitHub user **dessyc9** (the original is at dessyc9.github.io/blockstorm), ported here with their permission. The fight is on the roofs of five sky towers above an endless city in rain and lightning, joined by eight glass maze bridges; a shove (F) can push someone off the edge. Free-for-all (most kills when the clock runs out) or capture the flag (Blue vs Red, two flags each, first to 3 captures). Everyone starts a match with the same Common guns and kills unlock the next rarity (`TIER_KILLS`: Rare at 5, Epic 10, Legendary 20, Mythic 30); a storm core on the middle tower gives a full shield and +30% damage for 15 s. The Shop (all free, new guns every day from a seeded generator) and Loadouts are the original game's and are saved in this browser only (`blockstorm_profile`); they don't change the guns used in matches. **What changed in the port:** the original's online play went through public MQTT relays (HiveMQ and EMQX, with mqtt.js from jsdelivr), a lobby hub and an "online now" list on those relays, and an owner account (a password-derived signing key, a crown, a kick button and top-tier guns for the owner). All of that is gone: online play uses the site's Firebase rooms, names come from the game's own name box (`blockstorm:name`, filled by party.js; it starts from `ol:name` or `party:name` if there is none), and the Back Room's Online, Party and Playing now panels do what the hub did. three.js is the original's r160 ES module, now from cdnjs (`three.module.min.js`): a small module puts it on `window.THREE` as a plain object, then `../autores.js` (deferred, so it runs after that module and before the game's module) wraps `THREE.WebGLRenderer` as in the other 3D games; moving the game to r128 would have meant retuning all its lighting and colours. **Online:** rooms under `rooms/bs-` in the Firebase Realtime Database (same project and rules as the other games), up to 12 people (`MAX_PLAYERS`), invite links `#bs-`. Quick match uses the public lobbies `bs-pub-1` to `4` (free-for-all) and `bs-ctf-pub-1` and `2` (capture the flag), which start by themselves with 9 medium bots, run 5 minutes and start the next match 12 s after one ends; any other code is a private room where the host picks the mode and bots (none, medium, hard, extreme) in the lobby and presses Start. The shared rules only let a browser write its own node and expect `n, c, x, z, h, ts`, so everything is in `players/`: `n` name, `c` shirt colour, `x y z h p` position, yaw and pitch, `w` gun slot, `sc` shots fired, `lf` life number, `a` alive, `m` match, `lk` look seed, `j` join time, `v` format (1), and `ev/e0`…`ev/e31`, a ring of events with a number `i` that only goes up (`h` a hit you landed, added up per target per update, `sv` a shove, `pj` a launcher shot; from the host `kl` a kill, `hu` you were hurt, `hm` your hit killed, `kn` knockback, `bo` storm core, `ct`/`nt` feed lines). The host is the live player with the smallest `j` (a tab that was frozen for 5 s goes to the back of the line); its browser runs the match exactly as the original's host did (bots, damage, kills, clock, flags, storm core, gun tiers) and also writes `rs` (the match: `id`, `st` lobby / play / end, `md` mode, `bl` bot level, `nb` bots, `t0` start and `len` length rather than an end time, `et` when it ended), `ch` (one row per fighter: id, alive, health, shield, kills, deaths, spawn shield, best streak, team, tier, storm core, life, and where it last spawned, which is how a client is placed), `bm` (bots' names and looks), `bt` (bots' positions and shot counts), `cf` (flags and score) and `k` (storm core ready). Players send their own position about 12 times a second and the host its bots at the same rate; every fighter is drawn from those time-stamped updates with `netsmooth.js`, and others' shots are drawn from the `sc` counts. Each browser is trusted for its own position and hits, so it isn't cheat-proof. If the host leaves, the next in line takes over the match from the last state it heard, and its bots become that browser's to run; people who join mid-match take a bot's place. **Leaderboards:** play time through `stats.js`, and `kills`, `kdkills`, `deaths`, `mkills` (most in a match) and `wins` (online only, with at least one other real player in the match); the boards are in `leaderboard.js`. **Touch:** on touch screens a move stick, drag to look, Fire, Jump, Aim, Reload, Swap, Shove, pause and scoreboard buttons, and the gun slots at the top are tap targets; the health, gun and clock readouts move to the top so nothing sits under a thumb upright or sideways. The keyboard and mouse controls are the original's. A webdriver-only test hook is `window.__bs`. - `e63334287a3deaa3/spire/`: Spire (Back Room), an obby-style parkour race up a tower stacked from random sections (Three.js, Firebase Realtime Database rooms under `rooms/tw-…`, same project and rules as Rumble Karts; Quick match uses `rooms/tw-pub-1` to `tw-pub-4`; invite links go through the home page as `#tw-`; rooms hold up to 12). Everything that isn't drawing lives between the `// ==CORE==` and `// ==/CORE==` markers in the page: movement (`PHYS`, `simStep`), parts (upright boxes and cylinders, each optionally moving by `line`, `spin` or `orbit`, timed, crumbling, lethal, bouncy, a conveyor, a climbable truss, `ice` (on the ground you speed up at `ICE_ACC` and slow at `ICE_DEC`, so you slide), a launch pad (`boost`: landing or stepping on it sets your velocity to that vector, and the take-off speed that caps air control is measured again from it) or a wind zone (`zone: 'wind'` with a `wind` vector, usually timed: while it's on it carries you like a conveyor, in the air too)), the section library (`MODS`), towers (`buildTower`), the obby (`buildObby`, `WORLDS`) and the checking bot; it has no DOM or Three.js in it, so a test can run it on its own. Physics is a fixed 120 Hz step with the player as an upright cylinder; moving parts are placed by time alone, so every player who shares the round clock sees the same tower. A jump reaches 3.37 (3.67 counting the pop onto a ledge just above your feet) and you run at 7.5. In the air the stick only nudges you (`airControl`): measured against the way you're flying, it speeds you up (`AIR_ACC`, but never past your take-off speed, or the walk speed if that was slower), turns you (`AIR_TURN`) and slows you (`AIR_BRAKE`), so holding back stops a running jump instead of turning you round, and holding sideways for a whole jump moves you about 2.3; from a standing jump the stick gets the full `AIR_ACC`. Sections keep the step from one route part to the one after next above 3.67 (a big jump can't skip a part), keep beams longer than a running jump, and make hazards too tall or too fast to simply hop. When changing a section, also try running jumps (with the real `simStep`) from each part of its route to every later one, to make sure none can be skipped. A section can offer a second way through: Fork in the Road has a slow lift and a gold shortcut (a narrow beam through a laser, a truss and two pillars, with a SHORTCUT sign, from a part's `sign`); its `build` takes a fourth argument `alt` that routes the bot through the shortcut, and `verifyModule(id, d, mir, t0, seed, alt)` checks that way too. Each section in `MODS` is built in its own frame: it starts on the 4 × 4 pad centred at (0, 0, 8) and must end with `B.exit(H)`, its exit pad at (0, H, -8), staying inside radius 12.5 and above y = 0. Towers are versioned so everyone in a room builds the same one: `towerPlan(seed, n, easy, v)` with `v` 1 is the original 19 sections in the original order (kept exactly, for a host on an older copy of the page), and `v` 2 (`TOWER_V`) adds Gust Gaps, Ice Steps, Launch Pads and Fork in the Road (marked `v: 2` in `MODS`) and climbs steadily: each slot takes the unused section whose difficulty is nearest a target rising from 1.4 to 4 (with a little chance mixed in), and the tightness `d` rises from about 0.12 to 0.72. Towers turn every other section 180° and may mirror any, and between sections there is a porch, a truss and a landing 5.5 higher (`RISE`), more than a jump plus a body (5.37), so nothing you can stand on in one section lets you reach the next one's low parts. Every section also lists a route for the bot (`B.j`, `B.w`, `B.jon`): before each jump the bot simulates it with the real `simStep` and only jumps when it lands (in the air it asks for just the speed that brings it down over the target, `aimAir`, as a player who commits to a jump would), and it waits or hops past hazards, so a route that completes proves the section can be beaten with the real movement numbers. Each landing between sections is also checkpoint `k` (`cp` on the part, its spot in `W.cps[k]`). Towers can have checkpoints (on your own, the Checkpoints switch on the menu, saved as `spire:cpOn`, on by default; online, the host's Checkpoints option, `cp` in the round): then reaching a landing saves your place (a mint landing, a fanfare and a mint mark on the height bar), anything lethal or R puts you back on it, and dropping more than 4 below it counts as a fall and does the same. Without checkpoints, red sends you to the bottom and a fall just lands you lower, as before. Either way the first time you reach each landing the feed shows your split time, and the fastest-tower best counts both (a clean run is just as quick either way). Coins float over two spots on each section's route (the same ones for everyone in a room, picked from the tower's seed): each one you pass through is one coin, picked up in the physics step. When adding or changing a section, run the bot over it at several difficulties, mirrored and not, and at several start times, and over whole towers (`verifyModule`, `runBot`; the page exposes them as `window.__tw` in automated browsers). Online, like Chromaflage, everything travels through each player's own node at `rooms/tw-/players/`, which must always hold `n, c, x, z, h, ts`: position and animation (`y`, `a`), the round the player is in (`r`) and a finish claim (`f`, `round:milliseconds`). The host (newest host number `he`, else whoever has been in the room longest, chosen only once the room's players have loaded) publishes the round as JSON in its own `rs`: `{id, seed, ph, t0, dur, n, ez, ff, rf, fin, ne, cp, v}`, where `seed` builds the tower (with tower version `v`; a round without `v` is version 1 and one without `cp` has no checkpoints, so a host on an older page still works), `t0` is the server time it starts, `ff`/`rf` mark the first finish (from then the clock runs at double speed) and `fin` is the finish order. Other players check the round before using it (`cleanRS`: finite times within a day of now, a finish list of `[uid, ms, name]`, names cleaned), so a broken host can't freeze their page. The host takes finish claims at their word, so it isn't cheat-proof. If the host leaves, the next player carries on from the last round it saw. A tab in the background gets no animation frames, so a 1 s timer keeps its node's `ts` fresh and, for the host, keeps the round ticking. Nothing about a round is kept online after it ends. Saved only in the browser, under `spire:` keys: name, colour, hat (`spire:hat`), checkpoints on your own (`spire:cpOn`), settings, the host's round options (now with `cp`), and a profile (`spire:profile`: coins, XP, towers climbed, best times, falls, the furthest obby stage, best practice times and the hats bought with coins, `hats`), `spire:awarded` (the last online round that paid out, so rejoining it doesn't pay twice) and `spire:climbed` (set after the first truss climb; until then a tip shows at the foot of a truss). Hats (`HATS`): a cap, party hat, beanie, top hat, crown and traffic cone unlock with your level, and a halo, Viking helmet, propeller cap and wizard hat cost 100 to 500 coins (the menu's Hat row; a locked one says what it needs, or offers to buy it). Your hat travels online as `k` on your node. In a tower the sky runs on toward sunset as the camera climbs (`skyAt`); online a place pill beside the clock shows where you are (finishers in order, then everyone else by height), and the height bar has a strip in each section's colour and a gold ring on the leader. Climbers squash and stretch as they jump and land, and flying fast (a launch pad, a long fall) brings in speed lines and widens the view a little. Keys use `keybinds.js` (`keybinds:spire`). V (the `view` action) switches between the camera behind you and first person, as does scrolling all the way in or out; in first person your body moves to layer 1, which only the sun's shadow camera sees, so it's hidden but still casts its shadow, and spectating always uses the camera behind the climber you watch. The choice is saved as `spire:view`. On computers the mouse aims: clicking the game while playing captures it (Pointer Lock), so moving it turns the camera with no button held (0.0026 radians per pixel times Sensitivity, pitch kept to the same limits as before), and a crosshair replaces the cursor (a dot in first person). While aiming in third person the camera sits over your right shoulder and you turn to face where you aim as you move; Shift lock also keeps you facing it standing still. Esc, the pause menu, results, the Controls panel, the menus and spectating all let go of the mouse (only Esc and losing it some other way bring up the pause menu), and a small "Click to aim" shows while it's free during play; you can still move then. If the browser refuses the lock three times running (Chrome refuses a request within about a second of Esc), the hint goes and the old drag-to-look carries on, but every click still tries again. Settings and the pause menu have Sensitivity (`spire:sens`, shared with touch) and Invert Y (`spire:invY`, also for touch, off by default). On touch screens the page adds `touch` to `body` for a move stick, a Jump button, an eye button for first person, drag to look and pinch to zoom, with the Controls buttons hidden. Drawing: parts that never change are merged into one mesh per look and per four sections (vertex colours; the bevelled edges and side shading come from a per-face `fe` attribute that `boxGeo`/`cylGeo` add), while moving, blinking and crumbling parts and checkpoints keep their own meshes; lethal parts are unlit neon with a glow. Scenery (hills, trees, mountains, clouds, the obby's islands) is one mesh each, the sky is one shader, and dust, sparkles and confetti are two point buffers. Graphics Pretty (`spire:gfx` `high`, the default on computers) adds soft sun shadows that follow you, a second cloud layer and more particles; Fast (`low`) is the default on phones. Parties can launch it (its row in `GAMES` in `party.js`, `{ k: 'tw', n: 'Spire', d: 'spire', max: 12, nk: 'spire:name' }`), the Online panel offers room invites to it, and it's in the feedback box's game list. It was archived for a while (October 2026) and brought back with checkpoints, the new sections, coins and hats. - `e63334287a3deaa3/turbo-trail/`: Turbo Trail (Back Room), a speedrun obby: 25 short levels (about 6 to 12 seconds each at gold pace) in five worlds of five, Candy Coast, Neon City, Lava Forge, Frost Peaks and Star Drift, each with its own sky, sea, palette and scenery (Three.js, Firebase Realtime Database race rooms under `rooms/sr-…`, same project and rules as Rumble Karts; Quick match uses `rooms/sr-pub-1` to `sr-pub-4`; invite links go through the home page as `#sr-`; rooms hold up to 12). Everything that isn't drawing lives between the `// ==CORE==` and `// ==/CORE==` markers in the page, with no DOM or Three.js in it, so a Node script can run it on its own: movement (`PHYS`, `simStep`), parts (upright boxes and cylinders, optionally moving by `line`, `spin` or `orbit`, blinking (`timed`), crumbling, lethal, a jump pad (`bounce`), a climbing wall (`wj`), ice, or a zone: `speed` pads, `lowg` low gravity and the `portal`), the level builder (`Course`), the levels (`WORLDS`, `LEVELS`, `buildLevel`) and the checking bot. Physics is a fixed 120 Hz step with the runner as an upright cylinder (radius 0.42, height 2), so it plays the same at any frame rate (a slow frame runs several steps; nothing moves more than 0.5 in one step, and the thinnest solid or lethal part is 0.25), and parts are found through an x/z grid of 10 × 10 cells. Running speed is 12.5 with snappy acceleration, a jump rises 3.24 and carries about 9 at full speed, with 0.12 s of coyote time and a 0.14 s jump buffer; in the air the stick speeds you up, turns you and brakes you (`airControl`) but never past your take-off speed. Speed pads push you to 27 along their arrows (the extra speed fades on the ground in about a second and stays in the air), jump pads throw you 7.8 up, and touching a striped climbing wall in the air lets you jump again off it (up 16.5, 8 away from the wall, keeping your speed along it; you also slide down it slowly). Levels are written with the `Course` cursor (`start`, `run`, `gap`, `stones`, `blocks`, `pad`, `bounce`, `bars`, `stairs`, `movers`, `pistons`, `spinner`, `lasers`, `wallrun`, `chimney`, `crumble`, `blinks`, `slalom`, `lowg`, `orbit`, `drop`, `turn`, `portal`); each piece also adds the checking bot's route. The bot plays with the real `simStep`: before each jump it simulates the jump and only takes it if it lands, it hops or waits for hazards, and it pushes off climbing walls; when changing a level, run the bot over it at several start times (moving parts depend on the clock) and at the top upgrade speed (`runBot(buildLevel(i), t0, 90, run)`). The medal times in `MEDALS` ([gold, silver, bronze] per level) come from the bot: gold is its median time over several start times plus 4% and 0.25 s, rounded up to a quarter second, silver is 1.3 × gold and bronze 1.75 × gold, so they need re-working out if a level changes. A level's clock starts with your first move and a fall, a lethal part or R puts you back at the level's start with the clock reset; in a Full run (all 25 on one clock, starting with your first move on 1-1) the clock keeps running through falls and T starts the run over. After each portal the split (your full-run time there against your best run's, or the level time against your best) shows green when ahead and red when behind. Stars: 1, 2 or 3 for a bronze, silver or gold best; they unlock speed upgrades (`SPEEDS`: +4%, +8%, +12% at 12, 30 and 50 stars, chosen in the Garage and used online too) and trails (`TRAILS`, at 3 to 75 stars; a camera-facing ribbon of the last 0.45 s, one draw call). Saved only in the browser under `turbotrail:` keys: `name` (a plain string, which party.js puts back after a party launch), `color`, settings (`sens`, `invY`, `follow`, `ghost`, `vol`, `mus`, `gfx`, `zoom`, `slock`, `hostC`, `room`), `prog` (`{reached, best: [25 times], run: {t, sp: [25 splits]}, speed, trail, clears, falls, runs}`), `ghost:` (your best run on that level, 20 samples a second as comma-separated whole tenths of x, y, z and hundredths of the facing, replayed as a see-through runner when Best ghost is on) and `awarded` (the last race win counted). Online, like Spire, everything travels through each runner's own node `rooms/sr-/players/`, which must always hold `n, c, x, z, h, ts`: also `y`, `a` (animation, 5 while respawning), `l` (which level of the course you're on), `r` (the race the position belongs to), `tr` (trail), `j` (join time) and `f` (a finish claim, `race:milliseconds`). The host (newest host number `he`, else whoever has been in the room longest, chosen once the room has loaded) publishes the race as JSON in its own `rs`: `{id, ph: 'race' | 'inter', t0, cs, nm, fin, ff, ne}`, where `cs` is the course (a random world's five levels, five from all over, or all 25: the host's Course option in the pause menu, saved as `turbotrail:hostC`), `t0` the server time it starts (a 5 s countdown), `fin` the finish order `[uid, ms, name]` and `ff` the first finish; the race ends when everyone live has finished, 30 s after the first finish, or after 45 s a level plus 20 s, then results show for 9 s and the next race starts. Guests clean the host's race before using it (`cleanRS`), so a broken host can't freeze them. The race clock is the simulation clock, so every runner sees the moving parts in the same places; other runners are see-through ghosts (with their trails) drawn from a short history of their updates with `../netsmooth.js`, only while they're on the same level as you, and a list on the right shows everyone's progress. The host takes finish claims at their word, so it isn't cheat-proof. A background tab keeps its node fresh (and, for the host, the race moving) with a 1 s timer. Camera: behind you, pulled in so it never ends up inside a wall, easing round to the way you're running while you hold forward (not while strafing, and not for 0.7 s after you turn it yourself; Settings → Camera: Free turns that off), and a little wider at high speed. On computers clicking the game captures the mouse (Pointer Lock) to look around; Esc frees it. Keys are rebindable with `keybinds.js` (`keybinds:turbo-trail`). On touch screens the page adds `touch` to `body`: a run stick, Jump, a restart button, and drag anywhere else to look; Fast graphics by default. Drawing: parts that never change are merged into one mesh per look (bevelled edges from a per-face `fe` attribute, as in Spire), moving, blinking and crumbling parts keep their own meshes, scenery is one mesh per level, the sky one shader and particles one point buffer, so a level is about 20 to 30 draw calls; Pretty graphics adds sun shadows. Leaderboards hooks: `BackRoomStats.min('obby', seconds)` for a finished full run (`obby` is already in stats.js's `LOWER` list; stats are kept per game folder, so it doesn't mix with Spire's), `max('stars', total)`, `add('levels', 1)` at every portal and `add('wins', 1)` for winning a race against at least one other runner. Ads follow the `AD_SLOT` pattern (empty). A test hook (`window.__sr`, with `advance(seconds)`, `autopilot(on)` and `buildLevel`/`runBot`) exists only when `navigator.webdriver` is set. - `e63334287a3deaa3/escapade/`: Escapade (Back Room), a 3D escape-room obby (Three.js, Firebase Realtime Database rooms under `rooms/er-…`, same project and rules as Rumble Karts; Quick match uses `rooms/er-pub-1` to `er-pub-4`; invite links go through the home page as `#er-`; rooms hold up to 12). **Worlds:** six worlds of eight levels (48), each level a themed set of rooms with one way out, harder world by world. World 1, Breakout (Detention, Lab Rats, Hot Kitchen, Toy Box, Down the Drain, The Vault, Orbit Station, The Warden), is built into `index.html`, unchanged. World 2, Lost and Found (Overdue (a library), Clockwork (a clock tower), Cold Feet (an ice cave), Lost Temple, Mirror Manor (a haunted house), Stage Fright (a theatre), Gale Point (a lighthouse in a storm) and After Hours (a museum, the world's finale)), is `escapade/worlds/w2.js`; its first five were levels 9–13 before worlds came, with the same ids. World 3, Deep Down (Cave-In (an old mine), Deep End (a flooded cave), Off the Rails (an underground railway), High Water (a pump station), Fish Tank (an aquarium), Crystal Clear (a crystal cavern), Hull Breach (a sunken ship) and Hot Core (a volcano, the world's finale)), is `escapade/worlds/w3.js`; it added water you swim in (jump strokes up; an Air bar while your head is under), minecarts on rails (`rail`), water and lava that rise (`rise`, started by a flag or a trigger zone) and dark rooms you need the lantern for (`B.dark`, item `lamp`). World 4, Full Power (Assembly Line (a toy factory), Sorting Day (a recycling plant), Spin Cycle (a power station), Growing Pains (a greenhouse), Hot Swap (a data centre), Night Shift (an observatory), Spare Parts (a robot lab) and Meltdown (a power plant, the finale)), is `escapade/worlds/w4.js`; it added belts and fans a lever turns round (`rev`), pressure plates you stand on (`B.hold`), presses and piston walls that crush (`B.crusher`, `B.press`) and red, green and yellow keycards with their doors (`B.cardDoor`). World 5, Sky High (Hot Air (a balloon festival), Big Top (a flying circus), Thunderclap (a skyscraper in a storm), Sky Deck (a revolving restaurant), Zeppelin (an airship), Cloud Keep (a castle in the clouds), Orbiter (a satellite) and Eye of the Storm (a weather station in a hurricane, the finale)), is `escapade/worlds/w5.js`; it added updrafts (`B.lift`), cannons you fire yourself from (`B.cannon`, a `{w5: 'cannon'}` button), lightning on a timer with rods that power gates (`B.bolt`), groups of parts that turn a step at a press (`B.turning`, `B.turnBtn`, `B.align`) and the `clouds` scenery. World 6, The Last Door (One Way Home (a labyrinth with one-way flaps), Sun and Sand (a pyramid), Siege Works (a fortress), Dragon's Wake (a dragon's keep), Borrowed Time (a vault of clocks), Upside Dream (a dream), Long Climb (a climb over a molten sea) and The Last Door (the Keeper, a three-phase boss, and the end of the game)), is `escapade/worlds/w6.js`; it added one-way flaps (`oneway: [nx, nz]`, `B.oneway`), rings of fire you jump (shape `ring`, move `pulse`, `B.ring`) and the shadow (`B.shadow` zones: a chaser that walks your own path a few seconds behind you); escaping its last level shows "You beat Escapade!". Each of Worlds 3–6 keeps its shared code in its own marked blocks in `index.html` (`// ---- World core additions ----` inside the CORE, `// ---- World drawing additions ----` outside it) with one-line hooks ending `// W hook`; each does nothing unless a level uses it, and `worlds/README.md` section 13 lists every helper. Worlds 3–6 are `needs: 3` (`CORE_VER` 3). Each world after the first is its own file, `worlds/w.js`, loaded only when it's needed (picked in the menus, the level an online room is playing, or the next world when you reach a world's last level), so the page stays small; a world file only describes levels (`Escapade.world({n, needs, levels})`), and every shared helper, puzzle part and the bot live in `index.html`. **`escapade/worlds/README.md` is the guide for building a world**: the API, every helper and puzzle with its parameters, seeds, checkpoints, stars, the bot route, the tests a level must pass, a performance budget, a difficulty guide and the mechanics already used. The `WORLDS` list in `index.html` (one line per world: name, colour, blurb and its eight level ids) is what the menus show before a file loads and what progress counts by. `CORE_VER` goes up when the page gains something world files can use; a file says which one it needs, and a page too old for it (or one that can't load it) shows an "Update needed, reload" notice instead of breaking. Everything that isn't drawing lives between the `// ==CORE==` and `// ==/CORE==` markers: movement (`PHYS`, `simStep`, Spire's numbers: jump 3.37, 3.67 with the ledge pop, run 7.5, fixed 120 Hz step, so the frame rate never changes the physics), parts (upright boxes and cylinders, filed in a 6 × 6 xz grid for collision; moving by `line`, `spin` or `orbit`; timed, crumbling, lethal, bouncy, conveyors, ladders, low-gravity zones; and for levels 9–13: `ice` (slippery: you speed up and stop slowly, `PHYS.ICE_ACC`/`ICE_DEC`), the move types `swing` (a pendulum: platforms and blades that stay level, hanging `len` below a pivot) and `roll` (one way at a steady speed, then round again: the temple's boulder), ladders (trusses) that move and carry you while you hang on (stick off = hang, stick into it = climb), `tp` portals (`[x, y, z, yaw]`: where they send you; put the arrival point a little above the floor), zones `cold` (you freeze after `PHYS.COLD` seconds in it, shown as a Warmth bar) and `warm` (a fire thaws you), and `slide` crates (one shove and they slide until something stops them); and for World 2's last three: zones `wind` (`wind: [vx, vz]`, blows you along on the ground and in the air, in gusts when `timed`; white streaks show it, fainter just before a gust; the bot leans into it), the lever button `{toggle}` (flips a flag on and off, for scenery that swaps with `onIf`/`offIf`) and `B.all(flags, set)` (a flag that comes on once all of its flags are: the museum's vault), plus level options `sea` (a molten sea to the horizon instead of the lawn) and `msgs`/`unlock` (a level's own feed messages and Unlocked! banners)), the puzzle parts and `logicStep`/`useBtn`/`tryCode`, the level library (`LEVELS`, each with a `par` target time and a `build` that also writes the checking bot's route) and the bot; it has no DOM or Three.js in it, so a Node test can run it on its own. **Puzzles are flags** in the level's state `W.st.f`: a part with `door: 'flag'` is solid until the flag is on (a number means "on until that time": timed gates); `onIf`/`offIf` make a part exist only while a flag is on/off (the space bridge, the Warden's arms); `lock: 'item'` opens a door when you come near carrying the item; `item` parts are pickups (`key`, `card`, `fuse`, `gem`); `btn` parts are used with E / the USE button: `{set}` (a button), `{timed, dur}` (a valve), `{seq, sym}` (recipe buttons, pressed in the order `W.seqs[g].order`), `{pad}` (a keypad; the code is `W.codes[k]`, four digits from the level's seed), `{need, then}` (a fuse box), `{dial, key, n}` (turns one hand of the clock: `W.dials[g]` holds the target time, from the seed; all of a group's dials on target sets its flag), `{mirror}` (turns a mirror a quarter; `beamTrace` follows the moonbeam in `W.beams[g]` across the floor, and the beam reaching its target sets the flag); `plate` parts latch a pushed crate (`push`, kept inside `lim`, pushed along one axis at a time) and set their flag; `step` parts (`{seq, sym}`, the temple's stones) count when you land on them, in the order `W.seqs[g].order` (the mural shows it). The library's code is `W.codes.lib`, its digits shown on four coloured books in the order `W.books.lib`; the manor's right mirror is the colour `W.rose` (from the seed, like every other clue). Walls are 10 tall (22 in the low-gravity bay) so nothing standable gets you over them. Each level keeps the puzzle in its own copy for every player: there are no shared doors, so nobody can open or block anything for anyone else. **Stars**, saved in this browser under `escapade:prof` (`{best: {levelId: seconds}, st: {levelId: bits}, esc, deaths}`; bits 1 escaped, 2 beat `par`, 4 found the gem; the gem counts once found in any escaped run), by level id as always, so saves from before worlds came load as they were (8 escaped shows World 1 done and World 2 open; 13 shows World 2's first five done). The menus: Play carries on from the first level you haven't escaped; Worlds shows a card per world (name, stars of 24, how many escaped, locked or coming soon), then that world's eight levels. A level opens when you escape the one before it in its world; a world opens when you escape the last level of the one before it (or any of its own levels, say online). The menu counts escapes of 48 and stars of 144. Death (touching anything red and glowing, or falling) respawns you at your last checkpoint after 0.6 s; what you found and opened stays, crates not on their plate go home, crumbled tiles come back and timed gates shut (`softReset`). On your own the clock stops while paused or while the keypad is open. **Online**: each player writes only their own node `rooms/er-/players/`: `n, c, x, z, h, ts` as the shared rules require, plus `y`, `a` (animation), `j` (join time), `rr` (the round you're playing), `f` (your finish, `round:ms:server time`) and, from the room's leader only, `lr`/`ll`/`lt` (round number, level, start time). The leader is the live player who joined first (`Net.leader`); everyone else follows the leader's round, loading that level with a seed made from the round (so codes and recipes match for everyone) and running moving parts from `lt`, so all players see the same moving platforms. Late arrivals' own clocks start when they arrive. When everyone in the room is out (6 s later), or two minutes after the first escape, the leader starts the next level; the leader can also pick a level from the pause menu. If the leader leaves, the next one carries on with the same round. Other players are drawn with `../netsmooth.js` and only while they're in your round. Every value read from another node is checked (`onNode`). Each node also has `v`, its page's `CORE_VER`. The leader can pick any level in the worlds and levels it has opened itself (pause menu, Pick the room's level); everyone else loads that level's world file when they see the round (the round starts 4.5 s later, and a late loader's clock starts when it arrives), and a page that doesn't know the level shows the update notice. Pages from before worlds came (no `v`) only know levels 1–8 and simply don't follow a later level: the room list says they need to reload and the leader's feed names them. Keys are rebindable through `keybinds.js` (`keybinds:escapade`, actions `forward`, `back`, `left`, `right`, `jump`, `use`, `shiftLock`, `view`, `zoomIn`, `zoomOut`, `reset`). Touch: stick, JUMP, USE (green when something can be used), drag to look, pinch to zoom; shown only on touch screens. Other saved settings: `escapade:` `name`, `color`, `room`, `sens`, `invY`, `vol`, `mus`, `gfx`, `view`, `zoom`, `slock`. Leaderboards hooks: `BackRoomStats.add('escapes', 1)`, `max('cleared', n)` (levels escaped, up to 48), `max('stars', n)` (up to 144), `min('total', seconds)` (World 1's best total: the sum of its eight best times once they all have one, as before worlds came, so totals already on the board still compare; the menu calls it "World 1 total") and `min('total-w', seconds)` for each later world (`total-w2` … `total-w6` are in `stats.js`'s `LOWER`; the board has a row for each world). Ads follow the `AD_SLOT` pattern (empty). A test hook (`window.__er`, with `advance`, `frames`, `autopilot`, `depth`, `ensureWorld`) exists only when `navigator.webdriver` is set. **When changing a level**, keep the route in its `build` working and re-run the bot on it at several start times, and check that every puzzle door is still needed: with one door kept shut and all the others open, running, jumping and running jumps from everywhere reachable must not reach the exit (the checks used for this branch ran exactly that on all eight levels; levels 9–13 were checked the same way, with the search keeping the whole player state so rides on moving ladders count, and with each portal taken away in turn: the manor's right mirror and its last mirror are needed; World 2's last three too, with levers as part of the search: the theatre can't be crossed with its levers left either way, and its stage door, the lighthouse's beacon and the museum's vault and exit doors are all needed). Worlds 3–6 were checked the same way: the bot from the spawn and from every checkpoint at several seeds and start times, the search with each gate shut in turn (extended to swim, ride carts, carry keys and turn the turning rooms), random runners for clipping, draw calls, phones and an online room; the merged page still plays Worlds 1 and 2 exactly as before (same parts, codes and bot runs). The checking bot has route steps for the new things: `ladder` (a plan saying wait, grab, hang or climb), `dial`, `tp`, `kick` (a sliding crate) and `steps` (stepping stones, by way of a hub platform). @@ -81,7 +80,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/back-four/`: Back Four (Back Room, a daily soccer puzzle): 16 players into four groups (418 in `puzzles.js`), 4 mistakes, "one away" hint, colours easiest to hardest. - `e63334287a3deaa3/stat-duel/`: Stat Duel (Back Room, a daily soccer puzzle): higher or lower on finished totals (international caps or goals of players retired from international football, Premier League goals of players who left it); daily run of 10 (ends on a miss) built from the date, plus an endless unlimited streak. - `e63334287a3deaa3/top-bins/`: Top Bins (Back Room, a daily soccer puzzle): name a whole list (14 in `lists.js`: Ballon d'Or winners by decade, most Ballon d'Or wins, World Cup Golden Ball / Golden Boot, Euro and Copa América winners, first ten European Cup winners, Premier League all-time scorers at the end of 2024-25, England's top scorers, Spain's and Italy's most-capped, Premier League champions, Zlatan's clubs) in 3 minutes; the daily list repeats every 14 days. -- `e63334287a3deaa3/party.js`: Parties (Back Room). A Party panel above the games: create a party (5-character code) or join one, up to 8 people; the person who has been in it longest is the leader, picks a multiplayer game and presses Play together, and every member's browser opens that game in a new room (`#-p<6 random characters>`) and joins it. Back returns everyone to the party. Party invite links are `/#pt-`: the home page holds them until the Back Room code is entered, then joins the party instead of opening a game. Works on the phone version too (`m/index.html` loads `party.js`, lends it its `openGame`, and sends `#pt-` invites to the party instead of Rumble Karts), and both after the home-page reveal (the home page's `reveal()` loads `party.js` from the Back Room folder and lends it `openGame` through `window.BackRoom`) and on the Back Room page opened directly (a `` right after `` (every Back Room game, the Back Room and phone pages, Hype Cycle Exchange, Boxed and the home page; not the admin page). `NameFilter.clean(name)` masks rude words at the start of a word after their first letter (`F***face`), the same way and with the same look-alike digits as `social.js`'s and `leaderboard.js`'s `mask`, and turns a name that hides one of the worst words some other way (`f.u.c.k`, `fuuuck`, `xfuckx`) into `Player`; clean names come back unchanged. On its own it cleans the name boxes the games use (`#name`, `#inName`, `#joinName`, `#hostName`, `#newName`, `#ptyName`, or any `input[data-name-filter]`, such as the Online name box) on load, on blur or change, and on any click, Enter or submit before the game's own handlers run, so Play, Join and Host always read a cleaned name; it doesn't change a name while it's being typed. `social.js`, `party.js`, `leaderboard.js` and `stats.js` also pass every name through it in their `cleanName`, so names other people already saved are masked where those panels show them. A new game gets it by using one of those ids for its name box (or `data-name-filter`) and adding the script tag. The word lists are stored in ROT13; the comment at the top of the file says how to add words, and which list also looks for words hidden inside names. - `e63334287a3deaa3/social.js`: Online (Back Room). An Online panel under the Party panel lists everyone who has the Back Room open, by name plus a seat tag worked out from their uid (rows 1–40, seats A–F, like `Nico · 14C`), so two people with the same name can be told apart (seats can still repeat now and then; there are 240). Each person shows as Idle, in a party (and its size), or in a game. The name starts as the signed-in account's first name, else the saved party or game name, and can be changed in the panel (saved as `ol:name`). **One name everywhere:** `ol:name` is the player's name for the Online panel, the Party panel and the Leaderboards, in one order (`ol:name`, then the Google account's first name, then `party:name`, then a game's saved name) in `social.js`, `party.js` and `stats.js`. A rename in the Online box (or the Party panel's name box, which saves both keys) is written to the Online node and, while in a party, to the party node within half a second, so other people see it in about a second; `social.js` also sets just `n` on the player's leaderboard entry (`rooms/lb-all/players//n`, only if the entry exists, at most every 4 seconds; once after each page load too, so an entry left with an old name catches up), and fires `backroom:name` (`{uid, n, mine}`) on `document`, as it does when someone else's Online node changes name, so the Leaderboards rename that row at once without a new read. Other tabs follow through the `storage` event. Measured with two windows: before, a rename reached the other window's Online list in 0.8 s but never reached the Party panel (the party node kept `party:name`), and the leaderboard entry only changed the next time a game published (up to 60 s with a game open, never without one; the other window needed a Refresh after that); after, Online 0.9 s, Party 0.9 s, Leaderboards 1.2 s live and the entry in about 2 s. Game name boxes (`ss:name`, `shellcr-name` …) stay each game's own and don't rename you; party launches fill them with the one name. Hide me (`ol:hidden`) takes you off the list, and you can't chat while hidden. **Joinable games:** next to Hide me, **Let people join my games** (localStorage `ol:join`, `'0'` = off; on by default; saved with the account by account-nudge.js; also a "Let people join: On / Off" button in the Online drawer, for use over a game) lets anyone in the Back Room join the online game you're in, party or not. While it's on, you aren't hidden and you aren't in a party set to Private, your Online node carries `jg` (game key from party.js's `GAMES`), `jr` (room code after the game's prefix) and `jt` (when you got there, server time); they're removed when you leave the room or switch it off, and go stale with the node's heartbeat like everything else there. Single-player games and games not in party.js's `GAMES` are never advertised. **Finding the room:** the game runs in its own window (the home page's game layer, the phone page's frame, or party.js's layer on the Back Room page, where party games now open instead of replacing the page) and keeps its connection to itself (every game's `Net` sits inside the game's own function, so the page can't read it). So social.js lists the rooms the open game could be in: the room in the game's address (`#-`, which every party game sets when it joins a room by code), the room party.js launched it into, the code in its room box, and its Quick match rooms (`pub-1` to `pub-6`; Rumble Karts' `lobby` to `lobby-6`). It reads `rooms//players//ts` for each (one small read each) and takes the first that heard from you in the last 20 s; the found room is checked again every 4 s while the game is open, the others every 6 s until one matches. Not covered: Backrooms' Quick match (it pairs two players into a 1v1 room with no code), single-player modes, and a game opened in its own tab. Everyone in a joinable game gets a **Join** button on their row ("In Shell Crackers · Join", or **Queue** when the room is full and the game plays in rounds), from playingnow.js's checks (`window.BackRoomPlaying`); it opens the game in that room the same way Playing now does, and closes the drawer if it was open over a game. When someone's node starts advertising the room you're in after you got there, a small toast says "Ben joined your game" for 5 s (not for your own party, who arrive together; not for blocked or muted people). Tap someone to open their card: Request to chat, invite them to your party (one is created first if you're not in one; they get a Join / No thanks card and Join puts them in your party through party.js), or send them a room code (pick a game and a code; while you're in a game it fills in the room you're in). Private messages need a chat request first: the other person gets a toast and a card with Accept / Decline (and Block), and only once they accept can either side message the other; a message from someone who hasn't been accepted (an older client, say) is dropped, and that person's thread just says to request a chat or to accept theirs. A request runs out after 10 minutes if nobody answers, and then the requester can ask again (one open request per pair; at most one request per person every 10 minutes and ten in 10 minutes in all); a declined request shows "Declined" and can be repeated after the same 10 minutes. If both people request each other at once, that counts as a yes. Accepted pairs are kept in this browser (`ol:chats`, uid to time, at most 60) so you don't have to ask again every visit; End chat in the thread forgets the pair here and tells the other side, which forgets it too. Party invites and room codes aren't chat, so they don't need a request; the cabin chat is unchanged. **Parties:** people in the same party can message each other straight away, without the chat request (their card says so and has no Request to chat button); "the same party" comes from party.js's own member list (the `rooms/pt-` nodes, through `Party.members`), minus anyone on the current leader's kick list (`Party.out`), never from what someone writes in their Online node, so nobody can claim to be in your party. Outside a party, and once someone leaves or is removed, the request is needed again. Block, session block and mute work exactly as before (a blocked party member can't message you and is hidden). **Party chat:** a group chat for the party, opened from the Party chat button in the Online panel (shown while in a party), in the Party panel, in the people drawer, or in a game (see `gamechat.js`). Each message is sealed separately to every member who is in the party at that moment and online here (not to anyone you blocked), with the same ECDH + AES-GCM as private messages, and kept in your own node as `pc/` (the last 6 to each member, `{ i, t, b }`; inside: `{ f, to, k: 'g', c: party code, x: text }`); copies for people who leave the party are dropped, and the oldest copies are trimmed if the node would grow past 50,000 characters. The node also carries `av`, the player's edited avatar as a code (see `avatar.js`; absent if never edited), and `nt`, the colour of their name tile (`'t1:'` or `'t0'`, see `avatar.js`; absent if never chosen), which colours their card in the list and in the drawer. A browser only shows a party message that names its current party code and comes from someone on its current member list, so only the party can read the chat, and people who join later don't see earlier messages; everyone online can see that something was sent to whom and when, as with private messages. Blocked and muted people's party messages are hidden (like the cabin chat), the word filter and the shared rate limit (one message every 1.5 s, five in 10 s) apply, a party message from someone else shows a toast when no game is showing it, and party chat is never logged. Report in someone's private conversation also includes the last 20 party-chat messages (everyone's, marked `[party]`) when that person wrote in the party chat, and the confirm box says so. The party chat is kept for the tab in sessionStorage `ol:pchat` (`{ c: code, m: [...] }`, 80 messages) and starts empty in a new party. `window.BackRoomChat` (`state`, `recent`, `send`, `listen`, `seen`, `open`) lets the in-game chat inside a game's iframe read and send it through this page; it only hands out messages already checked, filtered and masked here. While a game is open, a Chat button next to Online in the game's top bar (shown while in a party with someone) opens the game's own chat box, or the Party chat drawer for a game without one. Deepword is in `GAMES` too (status "In Deepword", room codes), so its top bar gets these buttons. **Join party / Request to join:** when someone's party is Public (its leader's node carries `pp`, see party.js), the leader's row in the list has a Join party button ("Party full" at 8; a game's Join button takes its place while the party's game is joinable), the card of anyone in that party has Join party in place of Request to join, and their status reads "Public party of 3"; it joins through `Party.join(code, true)`, which refuses if the party has gone Private, is full, or its leader removed you in the last 10 minutes, and asks first if you'd be leaving a party of your own. Otherwise the card of someone in a party has Request to join, next to Invite to party. It sends a sealed `j` to that party's leader: to them if they lead it, otherwise to their leader when that person is online (the card says so and shows how it's going, with a button to open the leader's chat); if a `j` reaches someone who isn't the leader (their leader is offline, say), their browser answers `x` with `lead` and who the leader is, and the requester sees "Only the leader can accept — ask " with an Ask button when that leader is online. A leader with room gets a toast and a card with Let them in / Decline; Let them in sends `y` with the party code, and the requester gets a Join party button (toast and card) that joins through party.js, so a person who was kicked is still kept out by the party's own 10-minute rule; Decline sends `x`. A full party (8), someone who isn't the leader, or someone no longer in a party answers `x` straight away with the reason. One open request per party (per leader) at a time, 10 minutes to answer, a repeat only 10 minutes after a no, and the same ten-requests-in-10-minutes limit as chat requests; a `y` or `x` only counts when it answers a request this tab sent. Join-request state lives in the thread in sessionStorage (`jq`, `jx`, `jw`, `jc`, `jl`, `jln`, `jin`, `jnd`), like chat requests. Room invites only ever become the site's own invite links (`/#-`, Rumble Karts `/#`) built from a known game and a checked code, never a link someone typed, and opening one goes straight into that game's room. The cabin chat is one public chat for everyone online; it shows the last 30 minutes from people who are still here. Each cabin message is also saved, sealed, to Firestore `chatlog` for the admin page (see below). A Privacy link to `/privacy.html` sits at the bottom of the panel. Mute (`ol:mute`) hides someone's cabin-chat messages and silences their notifications; Block (`ol:block`) also hides them from the list and hides their messages, requests and invites; both are saved only in this browser. Block for this session does the same as Block but is kept in sessionStorage (`ol:sblock`), so it's forgotten when the tab closes; the Blocked section of the people view lists both, with "(this session)" on the latter, and Unblock clears either. While a game is open in the page's game layer (home page, phone page, or a party launch), an Online button in the game's top bar opens the same list, chats and invites, and the status shows "In "; a game opened by its card on the Back Room page opened directly leaves the page, so that person goes offline until they come back. Loaded like party.js: a ``) and calls `BackRoomElo.report({ id, won, opp: [{ u: uid, s }, { bot: 1, s }] })` once where its online match or round ends (search each game for `BackRoomElo`): `opp` is everyone you played against, not teammates, and `s` is your result against that one opponent (1 beat them or your team won, 0 lost, 0.5 drew), so team games give every opponent the same `s`, races and free-for-alls go by finishing place, Driftfall counts everyone already out as beaten and everyone still alive as a loss, Tumble Trials rates once per show (when you go out or the final ends), and in Chromaflage a seeker beats each hider that was found while a hider beats the seekers by staying hidden. The change is the usual Elo one (K 36 for the first 10 matches, then 24), averaged over the opponents and multiplied by the number of real opponents (×1 for one, 25% more for each extra, at most ×3); bots count as rated 1000, and a match with no real opponent isn't rated, so practice and bot-only rooms never move a rating. Everyone starts at 1000 and stays in 100–3000. `id` stops a match being rated twice (results screens can be drawn more than once). Storage: this browser's `elo:` (`{ r, g, wn, pk, uid }`) and the Realtime Database at `rooms/elo-/players/` (`n, c, x, z, h, ts` as the shared rules need, plus `r, g, wn, pk`), written by the player's own browser; on load the account's saved rating wins, and opponents' ratings are read from their nodes when a match is reported. So, like every Back Room stat, it is self-reported and not cheat-proof. It never signs in or makes a Firebase app itself (it uses the game's), and every call swallows its own errors, so it can't stop a game. After a rated match a small pill at the top shows the new rating and the change. stats.js reads `elo:` into the game's `elo` stat (the list of folders is next to `READ`), and leaderboard.js has an Elo board first for each of these games (for Slipstream, after its lap and record boards); as with Shell Crackers, the board keeps the best value it has seen, so it shows a player's highest rating. To rate another game: add the script tag and one `report` call, add its folder to the list in stats.js, and add the Elo row to its entry in leaderboard.js. -- `e63334287a3deaa3/netsmooth.js`: smooth movement for other players in the online games. Updates over school Wi-Fi and Firebase arrive late and in bursts, so a game that moves someone to their newest update makes them lurch and stall, and one that shows them a fixed time in the past freezes them whenever an update is later than that. Each remote player gets a `NetSmooth.lag()`, which measures how late their updates really arrive and shows them just far enough in the past that the next one is almost always already here (about a tenth of a second on good Wi-Fi, more on bad, never more than 0.45 s), easing that delay so the timeline never jumps; `NetSmooth.sample()` draws them between the two updates around that moment and carries them on for up to 0.3 s if an update is late. Used by Shell Crackers, Backrooms 1v1–4v4, Hail Mary, Coil, Quarry, Chromaflage, Odd One Out, Spire, Turbo Trail, Escapade, Updraft, Driftfall and Blockstorm. Kartwheel, Slipstream, Boostball, Rumble Karts and Tumble Trials keep their own approach: cars, karts and racers are projected forward to the present from their speed, which matters more there than perfectly even motion. Settings were tuned with a simulation of good, school and bad Wi-Fi: compared with chasing the newest update, other players stall about a fifth as often and almost never lurch, for roughly a tenth of a second more delay. +- `e63334287a3deaa3/netsmooth.js`: smooth movement for other players in the online games. Updates over school Wi-Fi and Firebase arrive late and in bursts, so a game that moves someone to their newest update makes them lurch and stall, and one that shows them a fixed time in the past freezes them whenever an update is later than that. Each remote player gets a `NetSmooth.lag()`, which measures how late their updates really arrive and shows them just far enough in the past that the next one is almost always already here (about a tenth of a second on good Wi-Fi, more on bad, never more than 0.45 s), easing that delay so the timeline never jumps; `NetSmooth.sample()` draws them between the two updates around that moment and carries them on for up to 0.3 s if an update is late. Used by Shell Crackers, Backrooms 1v1–4v4, Hail Mary, Coil, Quarry, Chromaflage, Odd One Out, Spire, Turbo Trail, Escapade, Updraft and Driftfall. Kartwheel, Slipstream, Boostball, Rumble Karts and Tumble Trials keep their own approach: cars, karts and racers are projected forward to the present from their speed, which matters more there than perfectly even motion. Settings were tuned with a simulation of good, school and bad Wi-Fi: compared with chasing the newest update, other players stall about a fifth as often and almost never lurch, for roughly a tenth of a second more delay. - `e63334287a3deaa3/autores.js`: automatic resolution for the 3D games, so they stay smooth on school laptops. Every three.js game except Quarry (which has its own version) loads it right after `three.min.js`. It watches the frame rate, and when frames drop below about 45 a second it makes every three.js renderer on the page draw at a lower resolution, a tenth at a time, down to half; when frames stay smooth it steps back up (more slowly towards a resolution that was too slow before, so it doesn't keep flipping). It multiplies whatever `setPixelRatio` the game asks for, so a game's own graphics setting still counts. The scale each game settles on is remembered in the browser (`localStorage` key `autores:`), so the next visit starts there. No game code calls it; it wraps `THREE.WebGLRenderer`. `AutoRes.scale` shows the current scale and `AutoRes.off()` turns it off for a visit. - `e63334287a3deaa3/account-nudge.js`: the sign-in nudge and account save (Back Room). Loaded on the Back Room page and the phone page (one `