diff --git a/README.md b/README.md index 01b6b92a..b253be9c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `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. **Seeker kit** (hidden: captains only for now; `KIT_PUBLIC = false` and `kitOn()` in `index.html`, and `?seekerkit=1` turns it on for testing, on localhost or in an automated browser only): seven hats (a detective deerstalker, a safari hat, a painter's beret, a museum guard cap, a hard hat, an exterminator cap and goggles), four tools that take the blaster's place in the hand (a magnifying glass, a paint scraper, a spray bottle and a feather duster), plus, from 19 Nov, twelve more hats (8 to 19: team cap, football helmet, sweatband, referee cap, pirate hat with an eye patch, fedora, top hat, robot antenna, champion headband, hockey helmet, bowler hat, mascot ears) and eight more tools (5 to 12: foam finger, pirate hook, walking cane, whistle, tennis racket, hockey stick, spyglass, robot claw), each still one merged mesh, a paint splash when the wearer catches someone (a ring of see-through droplets that flies outward and is gone within 0.6 s, and a small SPLAT! above the caught hider's head) and a caught animation for the hider they catch (it hops and pops along its own up direction, spinning only when it was upright), all drawn by `kit.js`, which the page fetches only when this player may open the Seeker kit (a button under the body choices on the menu opens a screen with a model of you as a seeker) or someone in the room wears a kit; for everyone else it never loads and every hook (`if(CK)`) does nothing. Seekers only: hats and tools are added inside the seeker gear (`Avatar.gear` and `Avatar.gun`), which the page shows only while a body is a seeker, and the two effects start only once the host has marked a hider found, are drawn under `fxRoot` for at most 1.2 s and leave no marks, so nothing changes how a hider looks or how easy a hider is to see while hiding. Shooting is still the camera's ray, so a tool changes neither reach nor tagging (the pellet still starts at the hand), hats stay low and above the visor, and your own hat and tool are hidden while the camera is pulled in close to them. A kit is four item numbers, the `no` of Chromaflage's items in `cosmetics.js` ([hat, tool, splash, caught], 0 for none; `kit.js` keeps its lists in the same order, so never reorder them), saved as `chroma-kit` and sent in the player's own node as `kt` (`'3.1.1.0'`, only when something is worn; older pages ignore it, and `kit.js` checks every number and draws the plain gear for one it does not know). Each hat and tool is one mesh (its pieces merged with vertex colours, one geometry per item, one shared material); a dressed seeker's blaster becomes one merged mesh too and a hat replaces the Turkey Week hat, so a dressed seeker is never more draw calls than a plain one. It has Spanish: its words are in `chromaflage/es.js` (lang.js; map names and the signs inside the maps stay in English), with a Language switch in Settings and the pause menu. - `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). **Edit on release** (a setting, on by default, in the menu under Look sensitivity and on the pause screen, saved as `br1v1-editOnRelease`; a `br1v1-editRelease` saved by the first version is still read; the Edit key itself is rebindable in Change keys like any other): hold Edit and the tile under the crosshair is picked at once, every tile the crosshair then sweeps across is picked too (no need to hold Shoot / place, though it does the same), and letting go of Edit confirms (`editHold`, `editKeyUp`, `paintTile`). The first tile of a sweep decides whether it opens or closes tiles. A quick tap of Edit (under 0.25 s, `EDIT_TAP`) that did no more than pick that first tile leaves the grid open with that tile still picked (so two taps make a one-tile window), the setting-off way: Shoot / place opens or closes the tile under the crosshair (hold and sweep for several) and Edit again confirms. A longer hold that changes nothing cancels. Either way Reload resets the piece to whole (the touch button reads Reset) and Aim cancels; on a touch screen the buttons read Tile, Done, Reset and Cancel while editing, and a finger put down on the grid picks the tiles it touches instead of turning the view (`editFingerDown`, `screenRay`), so you hold Edit with one thumb, drag the other over the tiles and let go. While you edit, the line of help names the shape so far (Door, Window, Arch, Half wall, Narrow ramp…, `edName`) and what to press next; until your first confirmed edit it spells the whole thing out (`br1v1-editHelp`). The tile under the crosshair is worked out on the grid's own plane, and a point up to a third of a tile off the edge counts as the edge tile (`edTileAt`, `EDIT_EDGE`), so the bottom row of a wall you stand against is easy to pick; when the line of sight finds none of your builds, eight lines just around it are tried (`EDIT_FAN`), so an edge or a seam up close still opens. Your own body is hidden while the grid is up, so it doesn't cover the tiles. 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, and then the new shape is there at once (it used to land 0.4 s later, `EDIT_T`, now gone); you can't shoot while the grid is up, and a Shoot / place still held from picking tiles doesn't fire until it's let go (`editLatch`). The build message is the same as before. 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. **Locker** (hidden: captains only for now): `locker.js` holds 36 outfits (18 sports kits, 4 robots, 4 pirates with eye patches, 6 costume-party suits, astronaut, wizard, firefighter and knight), 19 gun skins (7 of them animated: Gold, Chrome, Neon Pulse, Frostbite, Lava, Galaxy, Rainbow Flow and Circuit Board shine, pulse, flow or twinkle on one shared clock), 6 build skins, 8 elimination effects and 8 round-win celebrations, all drawn in code; the same items, by number, are Backrooms' block in `../cosmetics.js` (`backrooms-1v1`, prefix `br`). `BR_PUBLIC = false` near the top of the page is the one switch that opens it to everyone; until then `lockerOn()` asks `../captains.js` (`BackRoomCaptains.may(false, 'locker', 'br1v1-locker')`, so `?locker=1` works on localhost or in an automated browser), and a Locker button and screen appear in the menu only for those players. `locker.js` is fetched only for them, or when someone in the room wears something; for everyone else it is never loaded, `LK` stays null and the page draws, sends and saves exactly what it did before. While the shop is off everything is free to wear and what is worn is saved as `br1v1-kit`. Online it travels in the player's own node as one optional field, `lk` (a letter per slot and the item's number, e.g. `o12g3c2`: o outfit, g gun skin, b build skin, e elimination, c celebration), checked strictly; an unknown number draws the default for that slot, and a page from before the Locker ignores the field and draws the plain suit. Looks only and fair in ranked play: every outfit is built on the plain suit's own boxes (legs, body, head, sleeves, gloves) with a pack the size of the air tank on its back, so none is drawn smaller; the main colour is the team colour online (an outfit's own colours only in practice). The test hook's `__lk.fair()` draws each outfit flat from four sides against the plain suit in both team colours: outline 100–120% (hats add height), brightness never lower, colour distance from the walls and carpet never more than 0.02 lower, no more of it close to the wall or carpet colours, at least 40% of it in team colours (the rest is bold white, black, gold, silver and bright accents, never wall yellow, carpet brown or the other team's colour). Locker items use their own shared material (`lockerMat`), which adds a little of each item's own colour as light, because the dim yellow room light turns bright colours muddy; the plain suit and plain guns keep the game's own materials. Gun skins recolour the same three guns (`GUN_SRC`, cut into stripes or patches, through the same `gunFit`, so length and shape are unchanged; the sniper's lens stays). Build skins only change the picture on a piece (opaque, the same frame and brace; each measured at least as far from the walls, carpet and team colours as plywood), and a piece takes its builder's skin (a late joiner's `bs` copy of the round draws plywood). Elimination effects play where the player falls (centred on the body), for everyone, when the player who got them wears one, and are over in 1.5 s (the falling body takes 2.2 s). Celebrations play only while the round is over and the wearer's team won it, and stop as soon as they move or shoot; they move only the picture. An outfit is fewer draw calls than the plain suit (6–7 against 12) with geometry cached per outfit and team colour; skins and effects add none except two instanced meshes while an effect plays. During Turkey Week an outfit with its own hat hides the pilgrim hat. **Spanish** (lang.js): its words are in `backrooms-1v1/es.js`, text it puts together (banners, lobby, help line, results) goes through `TX()`, HUD parts that change during play are `data-noi18n`, and only team and room keys go over the network, never words. - `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). It runs on the site's own three.js r187 (`/lib/three/r187/three.min.js` with its r128 layer, see `lib/three/README.md`; `../autores.js` still loads right after it) instead of r128 from cdnjs, and looks and plays as before: every edit the page and `locker-extra.js` make to a built-in shader goes through `shRep` / `shEd` (near the renderer), which names the place in the console if r187 hasn't got the text it searches for, and the few r187 differences that showed are handled where they arise (comments there say r187). Everyone rides the Drifter (a big blue cargo plane, see The Drifter below) across the island, jumps when they like 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, AR 22, Heavy AR 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 with a little plane on it, 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 (dark red; wider spread, 32 m instead of 40 m); AR 18 (27), 0.12, 30, 1.9 s and Heavy AR `hr` 34 (54), 0.28, 18, 2.2 s (dark teal; 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 (pale slate, 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. **Names (November 2026, clearer guns):** every name is " " with the type one of Pistol, SMG, Shotgun, AR or Sniper, so it always says what kind of gun it is (the Rifle and Heavy Rifle became AR and Heavy AR; ids, saved data and network messages are unchanged); `name` is shown everywhere (hotbar, pickup prompt, pickup line, kill feed, ammo panel) and `short`, the type alone, only in a hotbar slot too narrow for the whole name (`fitSlotName`, so on a phone a slot reads PISTOL, SMG, SHOTGUN, AR or SNIPER and the ammo panel above the slots gives the whole name of the gun in hand). The two of a family share a colour, light and dark (pistols cream and silver, SMGs orange and yellow, shotguns red and dark red, ARs teal and dark teal, snipers slate and pale slate). 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: `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) and `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). Pistol fov 58, Heavy Pistol 50, SMG 62, Drum SMG 56, Pump Shotgun 60, Auto Shotgun 66: these six stay over the shoulder at 3 to 3.4 m; the two ARs go to the eye (`ad` 0, your own character hidden), AR fov 46 and Heavy AR 34. **Reticles (November 2026, clearer guns):** one style per family, the same from the hip and aimed (aiming only pulls it in, because the spread is smaller and the view zoomed), drawn by `RET` into `#cross` (an inline SVG, one CSS pixel per unit, put on a whole pixel in the middle of the view, 2 px white lines over a 1 px dark edge on each side so they stay sharp and read on bright sky and in dark rooms): Pistol a dot in a thin ring; SMG a small ring with four short ticks outside it; Shotgun a wide ring broken into four arcs; AR the classic four lines and a dot (the dot turns red when aimed, like a red-dot sight); Sniper from the hip a ring with cross hairs through it; the crowbar, heals and building a dot. Rings and gaps are the real spread of the shot in pixels at the current zoom (`RET.size`: `hip` or `ads`, more while moving, from `curSpread`, the same numbers the shot uses), plus a short kick of a few pixels after each of your own shots (`retKick`, `RET_KICK`) that eases back in about a tenth of a second. The snipers aim through 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, Scout Sniper fov 30 with a wider, green-rimmed lens), both with the same plain reticle (`SNIPER_RET`): thin cross hairs 1.5 px wide at any size with an open middle and a red centre point, two small marks on each arm and thick posts from the edge, with a faint pale edge so they show in a dark room. (Before, every weapon had its own sight picture in `SIGHT` and `#sight`; both are gone.) 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 300 to 770 triangles instead of 110 to 240 (Pistol 304, Heavy Pistol 508, SMG 504, Drum SMG 536, Pump Shotgun 612, Auto Shotgun 552, AR 556, Heavy AR 536, Bolt Sniper 772, Scout Sniper 676). In the clearer-guns pass (November 2026) each was pushed towards its stereotype so the family shows at a glance: the Pistol lost its under-barrel lamp (a plain slide on a frame); the Pump Shotgun's barrel is thicker; the Auto Shotgun lost its carry handle (it read as a rifle) and got shorter and chunkier: a fat barrel with a big square brake, a low rail, a fat box magazine and a solid stock; the AR has the classic black carry handle with the rear sight on it, a tall front sight post, a round ringed handguard and a black stock; the Heavy AR has a top rail with a small boxy red-dot sight, a long square handguard with a front grip, a big curved magazine and a shorter, thicker barrel with a brake (no bipod or wood any more, which made it look like a sniper); the Bolt Sniper's bipod legs now hang down and forward instead of lying folded. The Heavy Pistol stays a revolver (its reload works the cylinder) and the SMG, Drum SMG and Scout Sniper keep their shapes. `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 of the AR), 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 name underneath (a weapon's whole name, or just its type where the slot is too narrow) 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 eighteen 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, and since the audit natural rock with cracks and lichen for `rock()`, bark for trunks and leaf clumps for canopies and bushes, `TX.RK`, `TX.BK`, `TX.LV`), 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). It works as in Backrooms (one copy of the code, see there): **Edit on release** is a setting, on by default, in the menu next to the faces switch and on the pause screen (`driftfall:editOnRelease`): hold Edit (or G when it is doing the editing), the tiles the crosshair sweeps across are picked, and letting go confirms; a quick tap leaves the grid open, and then (or with the setting off) Fire opens or closes the tile under the crosshair and Edit again confirms. Reload resets the piece to whole and Aim cancels; the touch buttons read Tile, Done, Reset and Cancel meanwhile, and a finger put down on the grid picks the tiles it touches, so on a phone you hold Edit, drag the other thumb over the tiles and let go. The line of help names the shape and spells everything out until your first confirmed edit (`driftfall:editHelp`); targeting is as generous as Backrooms' (`edTileAt`, `EDIT_FAN`), and your own body is hidden while the grid is up. At least one tile has to stay. Nothing changes until you confirm, and then the new shape is there at once (it used to land 0.4 s later); you can't shoot while the grid is up, and a Fire still held from picking tiles doesn't fire until it's let go. 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). **Spanish (November 2026):** the whole game has Spanish through `../lang.js` (switch in the menu's settings and the pause menu), with Driftfall's words in `drop-zone/es.js`; the menus, lobby, results, Creative tools, Face and Locker are translated by lang.js, while the HUD, banner and kill feed are `data-noi18n` and put their words through `T()` (an exact lookup in es.js's list, cheap enough for every frame), and player names, room codes and place names are never translated, nothing translated is sent, and a weapon's rarity is written out per weapon in es.js because Spanish adjectives agree with the noun (`'Rare Pump Shotgun'`), with an extra shorter word (`'Shotgun (tight)'`) for the narrowest phone slots. -- `e63334287a3deaa3/ironveil/`: Midnight Ops (**preview, admin page only**; Back Room folder; the folder keeps the working title `ironveil`, and the display name lives in ONE constant, `IV.GAME_NAME` in `js/core.js`, which fills the page title, the logo, the content note and the "turn your phone" card, so the name can change without touching anything else), a single-player first-person Second World War campaign (an over-the-shoulder view stays in Settings as "View") (three.js r187 from the site's own build, `/lib/three/r187/three.min.js` plus `three-addons.min.js` for GLTFLoader and SkeletonUtils, see `lib/three/README.md`; plus `../autores.js`, `../keybinds.js`, `/e63334287a3deaa3/lang.js` with its own `es.js`, `stats.js`; Web Audio; no Firebase, nothing online). v1 has **Boot Camp** (a five-minute training course) and **Mission 1, Night Drop**; missions 2 to 8 are listed on the map table as "Coming soon" with their one-line briefings (`IV.menus.COMING` in `js/menus.js`). **Content note and blood:** the first time the game opens (until accepted) a screen before the title says it contains war violence and blood, with an "I understand, continue" button and a Back link (`localStorage` `ironveil:terms` = `1`). Settings has a **Blood effects** switch (on once accepted): off turns every blood effect (hit puffs, spray, the small fading decals, which are capped at `TUNING.blood.decals`, the screen-edge flecks) into dust. No dismemberment, gore close-ups or executions, no hate symbols: the enemy wears field grey with a plain invented white chevron on the helmet. **Files:** `index.html` (page, styles, HUD and menu markup), `js/core.js` (namespace, the one `TUNING` object with every feel number and its units, maths, seeded noise, settings and save), `world.js` (renderer, quality presets Low/Medium/High, sky, moon and fog, the heightfield, colliders in an 8 m spatial hash, ray casts, how lit a point is for stealth), `kit.js` (merged static geometry with world-space UVs, hedgerows, walls, fences, trees, buildings with real door and window openings, props, instanced grass and crops), `env/` (the environment kit, `window.IVEnv`, made separately: ground, grass, trees, hedges, walls, props, atmosphere and decals, all generated in code (its `env/post.js` is Ironwing's now; Midnight Ops draws through `js/render.js`); loaded with plain script tags before the game's own files; `?noenv` shows the old code-made stand-ins), `art.js` (the art factory: every hedge, wall, fence, tree, building, prop, pole, crop field, grass, the stream, the atmosphere and the bullet-impact hook go through `IV.art.*`; when `window.IVEnv` (the environment art module in `ironveil/env/`) is loaded it draws them and `kit.js` only makes the colliders, so layout, collision, nav and cover never change with the look), `nav.js` (0.5 m walk grid, A*, string pulling, cover points), `player.js`, `camera.js` (over-the-shoulder camera with collision, shoulder swap, the scope, aim assist), `weapons.js` (every bullet is a projectile with drag, gravity and wind; the scope's drop marks are computed from the same simulation), `ai.js`, `ally.js`, `fx.js`, `audio.js` (all synthesised), `hud.js`, `menus.js`, `touch.js`, `main.js` (fixed 60 Hz step with interpolation, app state, test hooks), `missions/bootcamp.js`, `missions/nightdrop.js`, and `js/chars-standin.js` (see Characters). **Saving:** `localStorage` `ironveil:save` = `{v: 1, diff, missions: {id: {done, medal, best, last}}, settings: {...}, cp: {mission, diff, idx, data}, tut}`; `cp` is the last checkpoint (its `data` holds the mission's flags, which soldiers are dead, objectives, ammunition, the clock and stats), so Continue on the title resumes there; finishing a mission clears it. Key bindings are `keybinds:ironveil`, the language is the Back Room's `lang:v1`. Bump `v` and migrate in `load()` if the shape changes. **Missions are data plus a few functions**, registered with `IV.missions.register({id, num, title, line, briefing: [...], preview: [{text, opt}], world: {size, day, height(x,z), surface(x,z), groundColor(x,z,y,n,c), waterLevel?, fog, fogColor}, build(M), setup(M, cpIndex, data), step?(M, dt), frame?(M, dt), sketch(g, w, h, sk), medals: [{text, ok(stats, M)}] x3})`. `build` makes the static world once (kept while you replay); `setup` places the player, squadmate and soldiers for a checkpoint and starts the script. The script uses `M.obj(id, text, {optional, marker})`, `M.done(id)`, `M.when(cond, fn)`, `M.after(sec, fn)`, `M.interact({x, z, r, text, hold, done})`, `M.say(text)` / `M.hq(text)` (radio subtitles, text only), `M.checkpoint(n)`, `M.fail(reason)` and `M.complete()`; the medal lines (the mission's own plus a skill rating of 700 or better) give gold (every line), silver (all but one) or bronze. To add a mission: copy `missions/nightdrop.js`, give it the next `num` and a new `id`, add its `