diff --git a/404.html b/404.html index fb92bb3f..1d0fac81 100644 --- a/404.html +++ b/404.html @@ -14,7 +14,7 @@ (function () { var GO = ('2048 asteroid-run backroom backrooms backrooms-1v1 backrooms-1v1-4v4 beatvault blackwade blockstorm boostball ' + 'chromaflage chromeline coil daily deepword driftfall drop-zone ebbwork escapade flickerwood flipline flood-crew ' + - 'fourcast gridpop hotspot hunch hush-pools lanternhold leaf-sweep lokop lunge-line mainstream melon-merge nearword ' + + 'fourcast gridpop halfsky hotspot hunch hush-pools lanternhold leaf-sweep lokop lunge-line mainstream melon-merge nearword ' + 'ninefold odd-one-out overdrop patchwork-tower poopdle puffer-party pulsebox putterby rampline rollaway rumble-karts ' + 'shell-crackers showdown sky-duel slipstream spire stackfall thereabouts tidewick trivium tumble-trials turbo-trail ' + 'updraft warmer windrow yardstick').split(' '); diff --git a/README.md b/README.md index 67de7364..e0e5f140 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/flipline/`: Chromeline (Back Room; formerly Flipline, and the folder, saved data, stats keys and the leaderboard's `d: 'flipline'` keep the old name), a one-button side-view stunt bike game in a neon city at night (Canvas 2D and Web Audio, no Firebase except stats.js). **One button (1.54, the owner's request)**: on the ground holding is the gas; in the air holding spins the bike backwards (`AIR_ACC` 16 rad/s² up to `AIR_WMAX` 7.4 rad/s, a little slower than the arrows' 18 and 8), and letting go makes the spin fade fast (`AIR_DAMP` 2.6/s), which is how you stop a flip. Gravity is on: the heavy front end drops the nose, so letting go early is also how you bring the nose down for a steep landing. There are no front flips any more. Clean landings are within 9° of the slope (was 12.6°, and 15° before that) and more than 53° off is a crash (was 70°, and 75° before that). `step(tr, s, hold, lean)` keeps its `lean` argument so old callers work, but ignores it. (History: one button with auto-levelling until 20 Nov 2026; then Arjun's arrow keys and gravity, pull request #282; then back to one button with gravity in 1.54. The garage, levels and look are built on top of #282.) **The hard update (the owners found it far too easy)**: harder from the first second, stricter landings, a rigid bike, a simpler bike and a wider camera. Measured with Node scripts on the core over 12 Endless seeds (before → after): riding with the gas on the ground and never holding in the air lasted a median 38 s / 429 m (some seeds never crashed in 60 s) → 11.7 s / 135 m on every seed; the same with a hold only to bring the nose up 52 s / 605 m → 11.8 s / 134 m; random presses 4.0 s → 3.4 s; holding all the time 6.7 s → 5.5 s. A search player that tries every hold length at each take-off (a stand-in for a skilled player) still clears the opening on every seed and rode 90 s on 7 of 8 seeds, but it meets about twice the jumps in the first 30 s (13–17, was 7–9) and 2–4 of them leave under a quarter of the hold lengths survivable (was 0–1). The built-in bot (`botRun`) still finishes all 24 levels inside their time targets with the new landing rules; level courses and targets were not changed, but in the new Endless it crashes after 12–17 s (it used to ride on), because its few fixed plans are too coarse; that doesn't matter for the track, which is checked by `vRun`, not the bot. For the same reason the menu demo now rides the first six level courses (`newRun('demo')` uses `levelTrack(seed % 6)` and starts another when it finishes or crashes) instead of an Endless track, so the title screen doesn't keep showing crashes. **Trick words** (since the tune-up): the words after a landing, flip, loop or crown ("Clean ×1.5 +132", "First loop!") are small (11–14 px on computers; on touch screens 4.2% of the screen's short side, 16–19 px, since the phone fix, when they were 11 px there; 2 px more for flips and loops; was 20–34 px with a scale pop), fade in and out over 0.95 s (was 1.5 s), and sit just above the bike with their right edge at its nose, so they never spread out over the track ahead; they move below the bike when there is no room above and are kept on screen; on touch screens they also keep at least the bike's length clear of its middle, so the bigger text never covers it, even mid-flip. The combo label at the top (`#combo`) is 15 px (13 px on phones, was 26 and 22) with a faint glow; the multiplier and gem numbers are smaller and shorter, a clean landing no longer throws confetti, and flips and loops throw less. **Camera**: about 30 m across in landscape and 15 m in portrait, at least 14 m tall (was 22, 11 and 11), and the bike sits further left (`camLead` 0.2 of the width up to 7 m, was 0.17 up to 5 m; the clamp keeps it at least 22% in from the left), so much more of the track ahead is in view. **Phones held upright** (the phone fix): a portrait screen (`W <= H`) zooms in to `PORTRAIT_PPM` (54 px a metre, never further out than the old 15 m view and still at least 14 m tall), so the bike, 1.85 m long, is about 100 px long at rest and about 80 px at speed (it was about 40 px); `PZ` is how much closer that is than before, and it is 1 in landscape, so sideways phones and computers are unchanged. With `PZ > 1` the camera keeps the bike about 15% in from the left (the clamp is 0.7 of the half-width, 0.56 otherwise), and the landing and loop zoom-outs also make room across the screen (the landing spot, or the whole loop, must fit the width), not only up and down. A 390 px wide screen can't show a bigger bike and as much track ahead, so the closer view shows less: replaying the bot's runs on eight levels, hazards and take-offs came into view a median 0.37 s before the bike reached them (was 0.82 s). To keep the warning as early as before, `edgeMarks` puts a small arrow on the right edge, at the height of each hazard (red) or take-off (the place's colour) that the old wider view would already have shown; it brightens as it nears and is gone once the thing itself is in view, so things are first signalled a median 0.97 s ahead (minimum 0.82 s, was 0.67 s). Not on the title-screen demo or replays. **The riderless bike's look**: since the hard update the Volt Hopper body (`BODY.dirt`, shapes in `HB`) is deliberately simple: a swingarm, a fork, one shell from the raised tail to the nose, one light line along it, a headlight and a tail light (the battery cells, belly pan, screen, seat pad, shock and headlight beam are gone, and so is `beamSprite`). Wheels (`wheel`, shared by every vehicle) are a dark tyre, a lit rim, two bright arcs so the spin shows and a hub (no tread dots or spokes). The bike is drawn rigid: the wheels sit where the frame holds them, with no spring travel and no crouch or lean after a landing (`drawBike` ignores `pose.dR`, `pose.dF`, `pose.crouch` and `pose.lean`); the rear hub lights up on the gas (`pose.gas`); in a flip the nose and tail leave short arcs of light (`G.spin`, from the drawn angle); a hard landing sends a flat ring of light along the ground (`G.rings`, at most four). The arcs and rings are off with "Fewer effects" or reduced motion. Measured with the game-performance probe on the demo ride: script time per frame unchanged (1.7 ms), 2D canvas calls 230 → 246, memory churn unchanged. **No rider (1.54)**: it is just the bike, 9% smaller (`WX` 0.60, `WY` −0.273, `WR` 0.327; the drawing code still draws in the old 0.66 m units and scales by `P.WX/0.66`), and Volt Hopper is a modern faired electric sport bike. The crash circles (`HEAD`, `TORSO`) are now the tank and the seat. The rider data (`RID`, `save.rid`) is kept so saves load, but riders are not drawn and the Riders tab in the garage is hidden. **Run multiplier and gems (1.54)**: every run has a multiplier `s.rm` (the badge in the score pill) that multiplies trick, loop and gem points. A loop adds `RM_LOOP` 0.3 (double for radius ≥ 5.5 m), a clean landing 0.1 plus 0.15 per flip (three times that per flip if it took off in a lit flip zone, `tr.fzs`), a gold crown (a gem of kind `crown`, at the top of some loops) 0.5; a sloppy landing halves what is above ×1; it stops at ×6. Gems (`tr.gems`, cyan diamonds) are worth 25 × the multiplier and are counted in the HUD next to the coins; every loop has seven round its inside, which only a bike riding the loop can reach. Gems don't change the coins you earn (coins still come from coins picked up plus score ÷ 100, so a higher multiplier does earn a few more). **New pieces (1.54)**, easiest first: gemrow, gemhop, wave (sine waves that grow), ceiling (spike ceiling on dark columns, sometimes with a bump before it), post (a glowing post just past a kicker), breaks (the track breaks into short gaps with no ramps), crownloop, flipzone, gemsky, zigzag (step up, drop, step up), ceilwave (ceiling over rolling ground), lowjump (a flat jump under a ceiling), stairspike (stairs down with spikes on every other step), steep (a long steep ramp, big launch, long ramp down), tris (floating triangle outlines above and below a long jump), loopgap (a loop straight into a gap), postrow, postgap (a post rising out of a pit), wavegap (wave crests broken by gaps), bigloop (radius 6–7 m), boostceil (a boost strip under a ceiling), ledge (a steep kicker up onto a high ledge), loop3, needle (between a post and a hanging spike block), chicane (floor spikes then a ceiling, twice) and snap (drop platforms that fall after 0.3 s). The new hazard kinds `ceil`, `post` and `tri` are static (no clock) and use the same red-and-cream look. Endless's difficulty now reaches the full mix at 650 m after the opening (was 1,100 m) and keeps rising to 2 at about 2,800 m (was 1.5 at 3,600 m); the easy pieces (`EASY`) thin out as it rises (`pickW`). The level time targets were set again on the one-button physics and made tighter (the bot's time + 8% + 0.5 s; they were + 12% + 1 s); the flips targets were left as they were. **Look**: every slab is a filled dark panel with faint circuit traces, and the surface you ride on is a lit rail in the place's colour (a wide soft glow, the colour, a white core), always the brightest line on screen. Behind it are three parallax layers of towers, signs in invented glyphs, beacons and a sky train, painted once into repeating tiles. There is also a moon with a ring, searchlights, and scanlines with a vignette. All glow is additive strokes or pre-made glow sprites: there is no `shadowBlur` or `filter` in the frame loop (`shadowBlur` is used only while painting the layer tiles). The rider wears a full helmet with a lit visor (what sticks out of the helmet, such as ears, fins, an antenna or a crest, tells riders apart by shape), the bikes have lit wheel rims, a light ribbon trails the back wheel at speed, and the old scarf's rope is now a light streamer. It is deliberately not like the thin neon line-art bike games or any film: everything is a filled, lit shape with depth, and the palette, shapes and names are our own. **Hazards** look the same in every place: hot red with cream stripes and teeth, outlined dark, with a red glow behind. The swinging mace and the spike strips keep their exact shapes from the first version; red is used for nothing else and gold only for coins and ×2 tokens, so hazards read by shape and value as well as colour. "Fewer effects", or the system's reduced-motion setting, turns off shake, streaks, the ribbon, scanlines, beacons and moving lights; there is no full-screen flash (the first clean landing and first loop of a run get a soft glow from the screen edges). One self-contained `index.html` plus `es.js` (Spanish). Everything that decides what happens is the `FL` module between `// ==CORE==` and `// ==END CORE==`, with no DOM in it, so a Node script can run it on its own (the checks for this version did exactly that). **Physics** (`P`, every number with its unit): a chassis with two stiff wheel contacts and a belly skid (since the hard update the contacts are rigid, `K` 900 and `C` 60, over-damped, with 0.04 m before they turn fully rigid and no bounce, `REST` 0; they were a soft spring, 230 and 15, with 0.13 m of travel, which bobbed after every landing), stepped 240 times a second whatever the screen does; `step(tr, s, hold, lean)` takes the gas (true/false) and the lean (-1 ←, 0, 1 →). Gas on the ground: the back wheel pushes, 11.9 m/s² from rest, fading to nothing at 19.2 m/s (13% more than Flipline), never more than grip × load, and none once the ground tips past vertical, so the top of a loop is carried by the speed you bring. Top speed on flat ground is 17.2 m/s (Flipline's was 15.3). Off the gas it coasts with a little rolling resistance. In the air holding spins the bike backwards (16 rad/s², up to 7.4 rad/s, `AIR_ACC`, `AIR_WMAX`); letting go makes the spin fade (`AIR_DAMP`), and gravity drops the nose all the time (`GRAV_PITCH` × cos(angle)). On the ground the automatic forward lean stops a wheelie looping over. A crash is the top of the bike (tank or seat) touching the ground, a hazard, falling into a pit, landing more than 70° off the slope, or not moving forward for 5 s. Flips are counted from the rotation in the air against the change in ground slope (a flip from 308°), and only banked 0.22 s after a landing that didn't crash. Inputs are one small code (`inCode(hold, lean)`: bit 0 the gas, bits 1–2 the lean + 1); they carry their timestamps and take effect on the physics step they fall in, so the same timing gives the same run at 30, 60 or 144 Hz. **Loops** (`loopRing`) are two overlapping half-circles of one-sided edges, tagged per edge in `tr.eg`: the way up (bottom, right side, over the top) and the way down. Each run keeps a flag per loop (`s.lp`), set once the bike is past the top, and only the half matching the flag collides. So the floor through the bottom never traps the bike, and it leaves at the bottom instead of going round again. With the gas on all the way round, the lowest entry speeds that still go round (on the arrow-key physics) are about 10 m/s (radius 3 m), 11.5 (4 m), 13.6 (5 m) and 15.6 (6 m); the checker asks for `loopVmin(R)` = 2R + 5 (4.7 before 1.54), at least 11, a margin for a bike that has just landed. Big loops come with a boost strip in the run-up. A full loop scores 200 and adds to the combo. **Boost strips** (`tr.eb` on their edges) push the wheels 26 m/s² up to 25 m/s, held or not. **Drop platforms** (mover kind `drop`) fall 0.45 s after the first touch, so the whole bike must be off by then. **Laser gates** (hazard kind `gate`) are off for 1.1 s around the moment a bike at the design speed arrives. **×2 tokens** (`tr.pk`) double trick points for 8 s. **Scoring**: 1 point a metre. Flips score 100 / 300 / 600 / 1000…. A clean landing (within 15° of the slope after a real jump) scores +75 per flip plus 75, and it and every loop add to the combo, which multiplies the next tricks (×1.5, ×2 … ×8) until a sloppy landing. Near misses past a hazard score +40 (+60 when very close); long air earns a bonus; coins are +10. **Track** (`MOD`): modules that write ground from the cursor and end on level ground. The original 34 are flat, recover, roll, whoop, hill, valley, hump, kick, dkick, bigkick, tabletop, stepup, stepdown, stairsup, stairsdown, gap, gap2, gapup, gapdown, longjump, pillars, bridge, lpipe, dropin, seesaw, shuttle, lift, pend (the mace), rotor, beams, crusher, saw, spikes and spikeroll. Chromeline adds loop, loop2, jumploop (a jump straight into a loop: land clean and keep the gas on), hpipe (half-pipe), launch (boost strip, kicker, long gap, landing ramp up or down), boost, crumble (drop platforms over a pit), gates, pads (narrow landing pads, each a step down over a gap) and rush (a rare overdrive stretch with an ×2 token). lpipe and hpipe end in a straight 1.5 m run at the launch angle (62–70°), so the bike leaves nose-high and lands on a steep down ramp: you let go early so the nose drops in time (or hold for a backflip round). Moving hazards start their clock when the bike comes within 34 m and are timed for a bike at a good pace (`VD`, 15.5 m/s). **Endless** (`endless(seed)`, `extend`) has a different opening every run (since the tune-up after the hard update; the owners had started it five times and got the same start each time). Every new run and every retry (`newRun('endless')`, also from R and from tapping after a crash) picks a fresh seed from the clock and `Math.random()`; the Daily run uses `dailySeed()`, so it is the same for everyone that day. The track starts with 12–16 m of flat, then `extend` builds the opening up to `OPEN_X` (270 m) from `OPEN_POOL`, a pool of hard early pieces with seeded numbers, picked by `openPick`: kick, gap, spikes, post, step-up and a boosted launch over a pit (the pieces that may come first, at about 1 s), the quarter-pipe (68–71°) and the half-pipe (the control checks: you can't ride them on the gas alone, so one of them always comes within the first three pieces, even straight after another big piece), and a big kicker, a spike roll, a radius 3.8–4.3 loop, a big drop and a spike ceiling (no bump in front of it here, because you often meet it fast off a pipe). No piece repeats in the opening, and each one goes through the same checker (`vRun`) as the rest of Endless. Measured with Node scripts on the core: over 200 seeds every opening was a different order, a pipe came within the first three pieces every time, and nothing was left failing the checker; riding with the gas only, all of 40 seeds crashed within 15 s (median 9.3 s); the search player that tries every hold length cleared the opening on 40 of 40 seeds, and was still riding at 35 s on 19 of 20 (the one crash was a saw at 456 m, past the opening). The launch's numbers stay in a narrow band (gap 13.6–14.1 m, landing 0.25–0.4 m up) because a slightly longer one can't be reached by the real bike even though the checker passes it. After that it picks modules by weight; difficulty (`endlessD`) starts at `ENDLESS_D0` 0.45 straight after the opening, reaches 1 within `ENDLESS_RAMP` 300 m and keeps rising to 2 by about 1,500 m (it used to start at 0 and take 650 m), giving wider gaps, more and faster hazards, bigger loops and more of the hard pieces. Every new module is checked by `vRun`, a point that always holds the gas at full and at 85% power. It follows the ground, flies off lips, lands, times moving hazards and gates, asks for the loop entry speed and the drop-platform speed, and gets the boost; a module that hits a wall, falls in a pit, stalls, is too slow for a loop or a drop platform, or touches a hazard is taken back out and replaced. The Daily run uses one seed per UTC day (`dailySeed`). **Levels** (`LEVELS`): 24 in four tiers of six, each `{id, n: name, th: place, f: flips target, t: time target in seconds, c: course}`, the course written as module tokens, for example `kick:1:24:12 loop:3.4:12 spikes:2.5`. The ids are Flipline's, so medals already earned stay attached, but the courses were rebuilt for Chromeline (in 1.54 their loops also gained gems); Level 1 shows a jump at about 4 s and a loop at about 11 s. All 24 were finished by the bot (`botRun`, which plays from physics prediction by trying a few gas and flip patterns ahead, `PLANS`: gas pattern, then how long to hold after take-off, and in the air holds only when the nose needs to come up toward the slope it will land on, `botLevel`; since 1.54 it plays with one button, and all 24 levels were finished again that way). The bot also set the time targets on the arrow-key physics (its time + 12% + 1 s) and the flips targets (what a flip-seeking version of the bot managed). The track editor writes the same tokens, and its share code is `FL1.` + the text in base64; tracks stay on the device. **Saving**: localStorage `flipline:save` (versioned, `v: 1`, unchanged from Flipline), holding coins, owned and chosen vehicle, rider and place, Endless and Daily bests, per-level medals (bits 1 finish, 2 flips, 4 time), best time and the ghost, challenge state, totals, secret-vehicle feats and settings. The ghost (`g`) is one number per input change: step number × 8 + input code, replayed through the same physics. Medals and Endless/Daily bests set on Flipline's easier track stay as they were. A level's best time and ghost from before Chromeline are not shown as a ghost, and the first finish on the new course replaces them, saving `gv: 3`. That covers ghosts with no `gv` (one-button) and `gv: 2` (arrow keys on Flipline's courses); since 1.54 it is `gv: 4` (one button again), so `gv: 3` arrow-key ghosts are replaced the same way. **The garage shop is closed for now** (`SHOP_OPEN = false` next to `SAVE_KEY`, the owner's call): nothing can be bought (unowned items say "Coming soon" with a disabled Locked button, and the click handler refuses too), what a save already owns stays owned and can be chosen, the three secret vehicles still unlock by playing, and coins still add up and are never changed; set it to `true` to open buying again. Vehicles (12 bought with coins, 3 secret), riders (8) and places (6) are looks only; their ids are unchanged, and some display names changed (Volt Hopper, Neon Tuk, Static Ball; places Circuit City, Cryo Grid, Harbour Lights, Bio Dome, Night Market, Ultraviolet Yard). **Sound** is synthesised in code: an electric-motor whine, a kick and hats under each place's own original loop, and a low-pass on the music that opens up with speed. **Board**: `BackRoomStats.max('distance')`, `max('score')` and `add('runs')` after an Endless run, `max('medals')` after a level; Chromeline's entry in leaderboard.js (`d: 'flipline'`) shows them. Controls through keybinds.js: Gas / flip (Space, up arrow, W; or the mouse, or touch and hold anywhere), Restart (R), Pause (Esc, P). The lean actions and the two round touch buttons were removed in 1.54; bindings saved for them are simply ignored. On the title screen, Space or pressing the city outside the menu card starts Endless at once. Restart is instant; after a crash a press of the gas goes again. Test hooks (`window.__fl`, with manual stepping: `advance(n, hold, draw, lean)`, `inputAt(t, hold, lean)`) exist only when `navigator.webdriver` is set. Nobody has played this version by hand or listened to it yet; the feel numbers in `P` and the music volumes are the first things to adjust. - `e63334287a3deaa3/tidewick/`: Tidewick (Back Room), a classic 8-bit style side-scrolling platformer for one player (Canvas 2D and Web Audio, no Firebase except stats.js). Pip, a child in a yellow raincoat, crosses a rainy harbour at dusk in two stages: **HARBOR 1** (the quay, about 210 tiles) and **HARBOR 2: THE BREAKWATER** (a short stone fortress over dark water, about 100 tiles) with a boss at the end. Unlike the other Back Room games it isn't one self-contained `index.html`: it's ES modules (the owner asked for them) in `js/`, loaded by ``, lists its actions in `Keybinds.create({game, actions: [{id, label, keys: ['KeyW', 'ArrowUp']}]})` (keys are `e.code` names, so they're physical keys on any layout; mouse buttons are `Mouse0`/`Mouse1`/`Mouse2` in games that pass `mouse: true`), checks input with `KB.is(action, e.code)` and `KB.held(action, keys)` instead of comparing key codes, and opens the panel from a Controls button with `KB.open()`. Changed keys are saved only in the player's browser, under localStorage `keybinds:` as `{v: 1, b: {action: [codes]}}` (only the actions that differ from the defaults; Reset to defaults removes the entry), and never go to Firebase. Esc is never rebindable. Elements with `data-kb="action"` show the current keys and update themselves. The panel takes each game's look from `--kb-*` CSS variables and the game's own button classes; the comment at the top of the file lists the options. To add it to a game, do the same, and keep text inputs (names, room codes, chat) returning before any key lookup. Touch controls don't go through key codes: each game's touch buttons feed its input directly (in Shell Crackers, Quarry and Backrooms they hold actions by id in `tAct`, which the game checks alongside `KB.held`), so they keep working whatever keys are bound, and the Change keys / Controls buttons are hidden in the touch layout (`body.touch`). **Spanish** (lang.js, when the page loads it): keybinds.js adds the panel's own words and common key and action names once (guarded by `if (window.BackRoomLang)`), and builds its messages and aria-labels with the action and key names in the page's language (a game's own dictionary supplies its action names); in English, or without lang.js, every string is as before. +- `e63334287a3deaa3/keybinds.js`: rebindable controls shared by the keyboard Back Room games (2048, Backrooms 1v1–4v4, Boostball, Coil, Escapade, Gridpop, Hail Mary, Kartwheel, Melon Merge, Odd One Out, Quarry, Rumble Karts, Shell Crackers, Slipstream, Spire, Stackfall, Starhop, Tumble Trials, Turbo Trail, Updraft, Driftfall, Asteroid Run, Rampline, Tidewick, Flickerwood, Pulsebox, Halfsky). Plain JavaScript, no dependencies. Each game loads it with ``, lists its actions in `Keybinds.create({game, actions: [{id, label, keys: ['KeyW', 'ArrowUp']}]})` (keys are `e.code` names, so they're physical keys on any layout; mouse buttons are `Mouse0`/`Mouse1`/`Mouse2` in games that pass `mouse: true`), checks input with `KB.is(action, e.code)` and `KB.held(action, keys)` instead of comparing key codes, and opens the panel from a Controls button with `KB.open()`. Changed keys are saved only in the player's browser, under localStorage `keybinds:` as `{v: 1, b: {action: [codes]}}` (only the actions that differ from the defaults; Reset to defaults removes the entry), and never go to Firebase. Esc is never rebindable. Elements with `data-kb="action"` show the current keys and update themselves. The panel takes each game's look from `--kb-*` CSS variables and the game's own button classes; the comment at the top of the file lists the options. To add it to a game, do the same, and keep text inputs (names, room codes, chat) returning before any key lookup. Touch controls don't go through key codes: each game's touch buttons feed its input directly (in Shell Crackers, Quarry and Backrooms they hold actions by id in `tAct`, which the game checks alongside `KB.held`), so they keep working whatever keys are bound, and the Change keys / Controls buttons are hidden in the touch layout (`body.touch`). **Spanish** (lang.js, when the page loads it): keybinds.js adds the panel's own words and common key and action names once (guarded by `if (window.BackRoomLang)`), and builds its messages and aria-labels with the action and key names in the page's language (a game's own dictionary supplies its action names); in English, or without lang.js, every string is as before. - `e63334287a3deaa3/school.js`: Your school (Back Room page, the home page's copy of it and the phone page). A small box at the end of the page header where each player picks the school they go to: one button per school plus Not listed, as a radio group (click, or the arrow keys). The schools are Avenues (New York) and St. Andrew’s Scots School (`standrews`, Olivos, Buenos Aires, Argentina; a bilingual English–Spanish school, so lang.js's Spanish matters there); to add one, add a row to `SCHOOLS` (`id`, a short lowercase id that never changes, `name`, `place`). The script fills in every empty `[data-school]` element: the Back Room page has one at the end of its `
` (so the home page's `reveal()`, which copies the header, gets it too, and loads the script after `events.js`), and the phone page has one at the end of its header. Being in the header, layout.js never moves it. **Its shape:** with nothing picked it spans the whole column (on a screen 860 px or wider the title, the search and the choices share one row). Once a school is picked it folds to one small line, the school ("Avenues · New York", or the Not listed line) and a pencil (`.sch-ed`, "Change school"); the pencil opens the search and choices again and turns into Done, Esc folds it back, and picking a school folds it. The fold is only drawn (`.picked` / `.editing` on the box); nothing new is stored. **Storage:** localStorage `school:v1`, the school's id (`avenues`) or `other` for Not listed; no key means nothing picked yet. It is in account-nudge.js's `KEYS`, so a Google account's save carries it to the player's other devices (visible to other signed-in browsers, like everything in that save). Nothing else is stored online. **Search and Add my school:** only schools marked `suggest: true` in `SCHOOLS` (Avenues) are shown before a search, plus the one the player picked; every other school is found by typing in the search box above the choices, which filters them as you type (name and place, accents ignored; Enter picks the first match). With no match, or from the dashed "Add my school" button, a small form asks for the school's name, its city or town and its country (only the general area; it says not to put a name or address) and sends one note through the suggestion box (`BackRoomFeedback.send` in feedback.js, the same sealed `feedback` documents, limits and admin Feedback tab, so no new storage or rules): "School request: (, ). Sent from Your school." The player's choice becomes Not listed, and localStorage `school:req` ({n, p, t}, also in account-nudge.js's KEYS) remembers what they asked for, so the box says "You asked us to add … We'll add it soon." To add a requested school, read it on the admin page's Feedback tab and add its row to `SCHOOLS`. Nothing uses the choice yet: other scripts can read it with `BackRoomSchool.get()` (the row, or null) and hear changes through the `backroom:school` event on `document` (`{id}`). - `e63334287a3deaa3/news.js`: What's new (Back Room). A panel under the page header whose top is a slow reel of the latest `SLIDES` (10) game updates, one at a time (`isGameNews()`: an entry of kind `game` or with `games`, or whose tags name one game with a card on the page (a tile on the phone page), or whose title names such a game or starts "Game name:"; site-wide news, and features shared by several games, stay only in All updates, and the unseen dot and the reel's New marks count only what the reel shows): a masthead line (What's new with the unseen dot, a running index such as 03 / 10 that moves on when tapped, and All updates, which opens the full list), then the entry's picture (its `img`, else its first new game's `m/thumbs/` picture, else that of a game named in its `tags` that has a card on the page, else one of the `NEWS_ART` drawings, so every update has a picture), a dateline (kind, version, day), the title as a headline and as many of its points as fit whole in the fixed height, and a hairline along its foot that fills across the whole reel. Every `DWELL` ms (7 s) it eases to the next entry; it holds still while hovered, focused from the keyboard, scrolled away, in a hidden tab or while the list is open; a swipe or the arrow keys move it; with reduced motion it never moves by itself and switches without sliding. Tapping a slide opens the list at that entry. **The drawings:** `NEWS_ART` in news.js is a small set of our own illustrations drawn in code as inline SVG, all in one style: a flat miniature of the part of the site that changed (a page, the Back Room's panels, What's new itself, a phone, an account card, a shop, the partner banner, a frame-time trace, the Online panel, a leaderboard, a rank badge, Hot right now, a replay, a mended line of code, drawn curtains for a teaser, a game card, and a release-notes sheet for anything else), in fine lines on a ground tinted with the kind's colour. Their colours come from the page's variables, so they suit the light and dark pages and Retro TV, and they have no words, so they need no Spanish. `artOf()` picks one: the first of `ART_RULES` that matches the entry's tags (leaving out broad ones like Back Room or Phone, which say where, not what), then its title, then its points, then those broad tags, and last its kind; `ART_MORE` swaps in a closer drawing of the same place (the home page with the wing). So a new entry gets a fitting drawing by itself; if one gets a poor one, improve the rules rather than the entry. `BackRoomNews.entries[i].art` names the drawing each entry would get. The open list shows only real pictures. Its height never changes as it moves, and on a phone the New games row is one line that scrolls sideways. It sits above the Party panel, on the Back Room page and the phone page (one ` + + +Halfsky + + + + + + + + + + +
+ + +
+ ‹ Back +
+
+
+
+ + +
+
+ + + + + + + + +
+ + + + + + + diff --git a/e63334287a3deaa3/halfsky/preview.jpg b/e63334287a3deaa3/halfsky/preview.jpg new file mode 100644 index 00000000..07ce3234 Binary files /dev/null and b/e63334287a3deaa3/halfsky/preview.jpg differ diff --git a/e63334287a3deaa3/index.html b/e63334287a3deaa3/index.html index 1f6217e1..b9d21541 100644 --- a/e63334287a3deaa3/index.html +++ b/e63334287a3deaa3/index.html @@ -1033,6 +1033,33 @@

Pulsebox

+
+ + Halfsky in play: the screen is split along a glowing horizon. Below, a golden sun ball rolls along the floor of a warm daytime lane toward a dark block; above, upside down in a starry night lane, a pale moon ball jumps away from its ceiling between two pink crystals. Along the top, the level name, percent, attempt count and a progress bar. + NewRunner + +
+

Halfsky

+

Steer two runners at once: the sun below, the moon above.

+
  • Solo
  • New · Runner
+
+ +
+

A two-handed auto-runner. The screen is split at the horizon: a sun rolls along the floor of the day, and a moon rolls upside down along the roof of the night. They run together and each has its own jump button, so you jump over crystals, gaps and blocks in both lanes at once. If either one crashes, you both start again.

+
    +
  • Six levels from easy to hard, each with its own sky and music made in the browser
  • +
  • Crystals, gaps, blocks to land on, launch pads, and hanging crystals you must not jump into
  • +
  • Practice mode with checkpoints, and an Endless run that keeps getting faster
  • +
  • Levels cleared and your longest Endless run on the Leaderboards
  • +
+

Keyboard (rebindable keys: W and S, or the arrow keys), mouse, or tap the top or bottom half on a phone. Best sideways on a phone.

+
+
+
+ ▶ Play +
+
+
Patchwork Tower in play, in chunky pixel art at night: a grey stone gargoyle with red eyes stands on the roof ledge of a red brick tower under a full moon, red arrows marking the two columns of windows it is about to kick bricks down; below, among lit, cracked and smashed windows, a small teal repair robot swings a wrench at a cracked window while a brick falls past another, a purple bat crosses the row and a mug of cocoa steams on a sill. diff --git a/e63334287a3deaa3/leaderboard.js b/e63334287a3deaa3/leaderboard.js index d9e4f765..979fdfcc 100644 --- a/e63334287a3deaa3/leaderboard.js +++ b/e63334287a3deaa3/leaderboard.js @@ -312,6 +312,9 @@ { d: 'beatvault', n: 'Pulsebox', st: [{ k: 'levels', l: 'Levels cleared (of 6)', chip: 'Levels', f: 'n', u: 'level', hi: 6 }, { k: 'keys', l: 'Gold discs (of 18)', chip: 'Discs', f: 'n', u: 'disc', hi: 18 }, { k: 'clears', l: 'Clears (all time)', chip: 'Clears', f: 'n', u: 'clear', rate: 1 / 60 }] }, + { d: 'halfsky', n: 'Halfsky', st: [{ k: 'levels', l: 'Levels cleared (of 6)', chip: 'Levels', f: 'n', u: 'level', hi: 6 }, + { k: 'endless', l: 'Longest Endless run', chip: 'Endless', f: 'm', hi: 100000 }, + { k: 'clears', l: 'Clears (all time)', chip: 'Clears', f: 'n', u: 'clear', rate: 1 / 60 }] }, { d: 'odd-one-out', n: 'Odd One Out', st: [{ k: 'elo', l: 'Elo', f: 'elo', lo: 100, hi: 3000 }, { k: 'rfound', l: 'Most props found in a round', f: 'n', u: 'prop', hi: 15, le: 'found' }, { k: 'survive', l: 'Longest survival as a prop', f: 'dur', hi: 900 }, @@ -965,12 +968,12 @@ var TOP_MODES = { stackfall: ['classic', 'sand'] }; // The daily puzzles rank by their best daily streak (winning every day in a row), not by wins (days played) or fewest // guesses (ties at the minimum); the rest pick the board that says "best", not a count that only grows with play. - var TOP_PICK = { blockstorm: 'mkills', beatvault: 'keys', 'stat-duel': 'streak' }; + var TOP_PICK = { blockstorm: 'mkills', beatvault: 'keys', halfsky: 'endless', 'stat-duel': 'streak' }; ['daily', 'hunch', 'fourcast', 'quartets', 'crosslet', 'sleight', 'nearword', 'warmer', 'hotspot', 'outline', 'unfurl', 'overland', 'ninefold', 'poopdle', 'deadline-day', 'journeyman', 'scout-report', 'crossbar', 'teamsheet', 'back-four', 'top-bins'].forEach(function (d) { TOP_PICK[d] = 'streak'; }); var ELO_START = 1000; var TOP_MIN = { blockstorm: 5, coil: 300, trivium: 3000, showdown: 1000, escapade: 10, 'asteroid-run': 500, rollaway: 200, - rampline: 5, flipline: 200, tidewick: 1000, beatvault: 3, gridpop: 1000, '2048': 2000, stackfall: 1000, 'stackfall:sand': 1000, + rampline: 5, flipline: 200, tidewick: 1000, beatvault: 3, halfsky: 300, gridpop: 1000, '2048': 2000, stackfall: 1000, 'stackfall:sand': 1000, 'melon-merge': 1000, 'patchwork-tower': 1000, flickerwood: 1000, lanternhold: 5, 'stat-duel': 3 }; // Lowest first: the fastest tower must be under 10 minutes (where its miles start); a Putterby card at most 36 strokes, // par (27) plus one a hole. diff --git a/e63334287a3deaa3/m/index.html b/e63334287a3deaa3/m/index.html index 176eb06c..1dc57602 100644 --- a/e63334287a3deaa3/m/index.html +++ b/e63334287a3deaa3/m/index.html @@ -256,6 +256,7 @@

ASCoding games

['lunge-line','Lokop','Pixel sword duels. Win, run, and drop into the pit.',1], ['tidewick','Tidewick','A rainy-harbour platformer: stomp, jump, and get past the Tollkeeper.',0], ['beatvault','Pulsebox','One button, every jump on the beat. Six songs and a level editor.',1], + ['halfsky','Halfsky','Two runners, two thumbs: the sun below, the moon upside down above.',1], ['patchwork-tower','Patchwork Tower','Fix the windows while a gargoyle kicks bricks at you.',0], ['flickerwood','Flickerwood','A maze chase by moonlight: gather pollen, outfly four night critters.',0], ['lanternhold','Lanternhold','Co-op tower defense for up to 4: build towers and keep the lantern lit.',1], diff --git a/e63334287a3deaa3/m/thumbs/halfsky.jpg b/e63334287a3deaa3/m/thumbs/halfsky.jpg new file mode 100644 index 00000000..7de9805b Binary files /dev/null and b/e63334287a3deaa3/m/thumbs/halfsky.jpg differ diff --git a/e63334287a3deaa3/miles.js b/e63334287a3deaa3/miles.js index dc65355e..7fe77120 100644 --- a/e63334287a3deaa3/miles.js +++ b/e63334287a3deaa3/miles.js @@ -256,6 +256,7 @@ 'rampline': { c: '#23719A', e: '' }, 'flipline': { c: '#C2452F', e: '' }, 'tidewick': { c: '#177280', e: '' }, + 'halfsky': { c: '#3B3F8F', e: '' }, 'beatvault': { c: '#7E2499', e: '' }, 'odd-one-out': { c: '#8E6017', e: '' }, 'tumble-trials': { c: '#C93C86', e: '' }, diff --git a/e63334287a3deaa3/news/halfsky-new-game.json b/e63334287a3deaa3/news/halfsky-new-game.json new file mode 100644 index 00000000..0cdc581c --- /dev/null +++ b/e63334287a3deaa3/news/halfsky-new-game.json @@ -0,0 +1,23 @@ +{ + "kind": "game", + "title": "New game: Halfsky", + "games": ["Halfsky:halfsky"], + "img": "m/thumbs/halfsky.jpg", + "tags": ["Halfsky", "Runner", "Solo"], + "items": [ + "Halfsky is a new auto-runner where you steer two runners at once: a sun along the floor of the day and a moon upside down along the roof of the night.", + "Each runner has its own jump button (W and S, the arrow keys, or the top and bottom half of a phone screen), and if either one crashes you both start again.", + "Six levels from easy to hard, a Practice mode with checkpoints, and an Endless run that keeps getting faster.", + "Levels cleared and your longest Endless run go on the Leaderboards." + ], + "es": { + "New game: Halfsky": "Juego nuevo: Halfsky", + "Halfsky": "Halfsky", + "Runner": "Corredor", + "Solo": "Solo", + "Halfsky is a new auto-runner where you steer two runners at once: a sun along the floor of the day and a moon upside down along the roof of the night.": "Halfsky es un corredor automático nuevo en el que manejas dos corredores a la vez: un sol por el suelo del día y una luna cabeza abajo por el techo de la noche.", + "Each runner has its own jump button (W and S, the arrow keys, or the top and bottom half of a phone screen), and if either one crashes you both start again.": "Cada corredor tiene su propio botón de salto (W y S, las flechas, o la mitad de arriba y de abajo de la pantalla del celular), y si uno de los dos choca, empiezan otra vez los dos.", + "Six levels from easy to hard, a Practice mode with checkpoints, and an Endless run that keeps getting faster.": "Seis niveles de fácil a difícil, un modo Práctica con puntos de control y un modo Sin fin que se pone cada vez más rápido.", + "Levels cleared and your longest Endless run go on the Leaderboards.": "Los niveles superados y tu carrera Sin fin más larga aparecen en las Tablas de posiciones." + } +}