diff --git a/README.md b/README.md
index fec23692..67de7364 100644
--- a/README.md
+++ b/README.md
@@ -138,7 +138,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the
- `e63334287a3deaa3/avismiles.js`: Avis miles (Back Room page and phone page): players who booked a car through Avis claim bonus miles. Opened from the **Avis miles** button the Online panel shows by your miles (social.js), `BackRoomAvisMiles.open()` or a link with `#avis-miles`. Only for a Google sign-in whose account already has a leaderboard node. The form takes the Avis confirmation number, the pick-up date and an optional note, sealed to the admin key (`adminkey.js`'s `BackRoomSeal` of `{ k: 'ac', c, d, n, u: uid, t }`) and written to the player's own node as `ac` (the box) and `act` (when it was sent); `stats.js` carries both on in every write. One claim at a time: a new one replaces one still waiting. The admin page's Stats tab lists claims newer than the last one decided (**Avis miles claims**), opens them with the admin key (with the player's Google email from `ge`), and approves (adding `AVIS_MILES`, 1,000 by default, or another amount) or turns them down in its signed resets: `m` the Avis miles granted in all, `mt` the claim time last decided, `mr` 1 approved / 0 not (leaderboard.js `checkResets` keeps them; every signed write on the admin page carries them on). leaderboard.js hands `m` to miles.js as `p.am` (added up across merged accounts), which adds it to the person's miles everywhere. Nobody but the admin page can grant miles; the dialog shows the claim's state from `act`, `mt` and `mr`.
- `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). 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) entries, one at a time: 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 `
*
* Puts a "What's new" panel under the page header (above the Party panel): a slow reel of the
- * latest SLIDES entries, one at a time (picture, kind, version and day, the title as a headline
+ * latest SLIDES game updates (site-wide news stays in All updates), one at a time (picture, kind, version and day, the title as a headline
* and its first points), easing to the next every DWELL ms, with a hairline along its foot that
* fills as the reel runs and a running index (03 / 10) that moves it on. It holds still while
* hovered, focused from the keyboard, scrolled away or in a hidden tab; swipe or the arrow keys
@@ -94,21 +94,6 @@
*/
(function () {
var NEWS = [
- {date: '2026-11-27', version: '2.21', title: 'A tidier Back Room', kind: 'feature',
- tags: ['Back Room', 'Phone page'], items: [
- 'Edit your look from the pencil on your avatar in the corner of the Online panel: avatar, name tile colour, name and settings, all in one small popup.',
- 'Playing now, Party and Online are one card now, with less empty space.',
- 'What\'s new reads like the news: a headline, the date and the first points of the latest update.',
- 'Once you pick your school it shrinks to one line, with a pencil to change it.',
- 'Game cards are tighter, with no big gaps under the text.']},
- {date: '2026-11-27', version: '2.20.1', title: 'Cleaner home page', kind: 'fix',
- items: [
- 'A new animation at the top of the home page.',
- 'Shorter, plainer wording at the top.']},
- {date: '2026-11-27', version: '2.20', title: 'New look for the home page', kind: 'feature',
- items: [
- 'The home page has a cleaner, calmer design.',
- 'Its top shows air flowing past a wing, worked out live: move your pointer up or down to tilt it.']},
{date: '2026-11-27', version: '2.19.1', title: 'Leaf Sweep: the bin works again', kind: 'fix',
tags: ['Leaf Sweep'], items: [
'Walk up to a compost bin with leaves in your sack and a clear prompt shows again: press E or tap the button to empty it. You can stand a little farther away than before.',
@@ -152,21 +137,9 @@
'Every game now has an address you can type: ascoding11.com/ followed by its name, like ascoding11.com/slipstream or ascoding11.com/driftfall.',
'ascoding11.com/backroom opens the whole Back Room.',
'Clicking around the site still keeps the address the same as before.']},
- {date: '2026-11-27', version: '2.13.6', title: 'Tidier top of the phone page', kind: 'fix',
- tags: ['Phone'], items: [
- 'On a phone held upright, the games count now sits right under the ASCoding Games title on one or two lines, instead of in a thin column with one word per line.',
- 'The theme, language and Main site buttons now go on their own line under the title, so nothing at the top overlaps any more, in English or Spanish.']},
- {date: '2026-11-27', version: '2.13.5', title: 'The site is called ASCoding everywhere', kind: 'fix',
- items: [
- 'The name at the top and bottom of every page now reads ASCoding, on the main site, the Back Room and the phone page.',
- 'The phone page keeps the name ASCoding games when you add it to your home screen.',
- 'The About page now says who makes the site: two students, working together as ASCoding.']},
{date: '2026-11-27', version: '2.13.4', title: 'Flood Crew: better gloves', kind: 'fix',
tags: ['Flood Crew'], items: [
'Your gloved hands look like hands now, with fingers wrapped round the handle.']},
- {date: '2026-11-27', version: '2.13.3', title: 'Phone page renamed', kind: 'fix',
- tags: ['Phone'], items: [
- 'The phone page\'s title now reads ASCoding games.']},
{date: '2026-11-27', version: '2.13.2', title: 'Account save fix', kind: 'fix',
tags: ['Account'], items: [
'Account save no longer pauses with “signed in as someone else” on phones.',
@@ -188,26 +161,9 @@
'The bike is rigid now: the wheels stay fixed to the frame, so it no longer bounces on landing.',
'A simpler, cleaner bike.',
'The camera is zoomed out and sits further back, so you can see much more of the track ahead.']},
- {date: '2026-11-26', version: '2.11', title: 'Tidier game rows', kind: 'feature',
- items: [
- 'Every section of games now fills its rows evenly, so you never get a row of four and then one game on its own.',
- 'Each section picks its own number of games per row, and one or two games get a bigger card where that keeps the rows full.',
- 'Rows stay even on phones, on smaller screens, while you search, and with your own Edit layout sizes.',
- 'Flood Crew has its own card in Arcade now, instead of being squeezed inside Leaf Sweep\'s.']},
- {date: '2026-11-26', version: '2.10', title: 'A more professional home page', kind: 'feature',
- tags: ['Home page'], items: [
- 'The home page now leads with the engineering projects and web applications.',
- 'The games are one click away at the bottom of the home page.']},
{date: '2026-11-26', version: '2.09.1', title: 'Boostball: new card picture', kind: 'fix',
tags: ['Boostball'], items: [
'Boostball\'s card shows a real match now: the ball, the cars, both goals and the stadium.']},
- {date: '2026-11-26', version: '2.09', title: 'The home page is now ASCoding', kind: 'feature',
- tags: ['Home page'], items: [
- 'The home page now goes by ASCoding, with a cleaner, more professional look.']},
- {date: '2026-11-26', version: '2.08', title: 'A new look for the home page', kind: 'feature',
- tags: ['Home page'], items: [
- 'The home page has a whole new design, with a dark blueprint look and a gallery of the engineering projects.',
- 'The retro TV look for the holidays now has stronger scan lines, like an old TV.']},
{date: '2026-11-26', version: '2.07', title: 'Leaf Sweep: one handful at a time', kind: 'feature',
tags: ['Leaf Sweep'], items: [
'Leaf Sweep now starts with a short note on what to do, and you pick up leaves one handful at a time: each click or tap grabs what is in a small circle.',
@@ -947,7 +903,7 @@
})(0);
var KIND = { game: 'New game', feature: 'Update', fix: 'Bug fix', soon: 'Coming soon' };
var ICON = { game: '🎮', feature: '✨', fix: '🔧', soon: '?' };
- var SLIDES = 10; // the latest entries the reel at the top runs through, one at a time
+ var SLIDES = 10; // the latest game updates the reel at the top runs through, one at a time (isGameNews())
var DWELL = 7000; // how long each one shows (ms) before the reel moves on
var PAGE = 5; // days shown at first, and added by each "Show older"...
var CARDS = 10; // ...or fewer, once those days hold this many cards (a day is never split), so a busy day doesn't make a very long list
@@ -1440,14 +1396,24 @@
'@media (prefers-reduced-motion:reduce){.nws-idx i{transition:none}.nws-sk::before,.k-soon .nws-ic,.nws-e.k-soon .nws-em::after{animation:none}.nws-chip,.nws-sp,.nws-ad-btn,.nws-ad-pic img{transition:none}.nws-ad:hover .nws-ad-pic img{transform:none}}';
document.head.appendChild(css);
- var latest = list[0], fresh = unseen(), shown = 0, games = freshGames();
+ // The reel shows game updates only: a new game (kind 'game' or a `games` list), or an entry whose tags (just one game)
+ // or title name a game with a card on this page (cardOf()), or whose title starts "Game name:". Site-wide entries
+ // (and features shared by several games) stay in All updates. With no game updates at all, it shows the latest
+ // entries as before rather than nothing.
+ // The unseen dot and the reel's "New" marks count only the entries the reel shows; the open list still tags every
+ // unseen entry, and opening it marks them all seen (news:seen is the latest entry overall, as before).
+ var reel = list.filter(isGameNews);
+ if (!reel.length) reel = list;
+ var latest = list[0], seenUpTo = unseen(), shown = 0, games = freshGames();
+ var SL = reel.slice(0, SLIDES), n = SL.length, cur = 0;
+ var at = SL.map(function (e) { return list.indexOf(e); }); // each slide's place in the full list
+ var fresh = at.filter(function (x) { return x < seenUpTo; }).length;
var box = el('div', 'nws' + (games.length || (spot && !spot.closed) ? ' hot' : '')); box.setAttribute('role', 'region'); box.setAttribute('aria-label', 'What\'s new');
// The masthead: What's new (with the unseen dot), the running index and All updates (opens the full list).
var hd = el('div', 'nws-hd');
var k = el('span', 'nws-k'), dot = el('span', 'nws-dot'), dotTxt = el('span', '', ' (new)');
dot.setAttribute('aria-hidden', 'true'); dotTxt.style.cssText = 'position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)';
k.append(dot, 'What\'s new', dotTxt);
- var SL = list.slice(0, SLIDES), n = SL.length, cur = 0;
var idx = el('button', 'nws-idx'), idxN = el('b'), idxOf = el('span', '', ' / ' + pad(n)), idxGo = el('i', '', '\u2192');
idx.type = 'button'; idx.setAttribute('aria-label', 'Next update'); idx.title = 'Next update';
idxN.setAttribute('data-noi18n', ''); idxOf.setAttribute('data-noi18n', ''); idxGo.setAttribute('aria-hidden', 'true');
@@ -1456,7 +1422,7 @@
bar.type = 'button'; bar.setAttribute('aria-expanded', 'false'); bar.setAttribute('aria-controls', 'nws-body'); bar.appendChild(barT);
hd.append(k, idx, bar);
- // The reel: the latest SLIDES entries, one at a time. Each slide: a picture (the entry's own, else its first new
+ // The reel: the latest SLIDES game updates, one at a time. Each slide: a picture (the entry's own, else its first new
// game's, else a game named in its tags, else one of the NEWS_ART drawings, picked by artOf()), a dateline (kind,
// version, day), the title as a headline and its first points. A tap opens the full list at that entry.
var stage = el('div', 'nws-stage'); stage.tabIndex = 0; stage.setAttribute('role', 'group'); stage.setAttribute('aria-label', 'Latest updates');
@@ -1465,15 +1431,58 @@
var s0 = imgsOf(e)[0]; if (s0) return s0;
var g = gamesOf(e)[0]; if (g) return 'm/thumbs/' + g.d + '.jpg';
var tg = tagsOf(e);
- for (var j = 0; j < tg.length; j++) {
- var nm = tg[j].replace(/["\\]/g, ''), slug = nm.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
- // a game card on this page that opens the game named in the tag (its folder can differ from its name)
- var a = document.querySelector('a[aria-label$=" ' + nm + '"][href^="' + BASE + '"]') || (slug && document.querySelector('a[href="' + BASE + slug + '/"]'));
- var m = a && a.getAttribute('href').slice(BASE.length).match(/^([a-z0-9-]{1,40})\/$/);
- if (m) return 'm/thumbs/' + m[1] + '.jpg';
- }
+ for (var j = 0; j < tg.length; j++) { var d = cardOf(tg[j]); if (d) return 'm/thumbs/' + d + '.jpg'; }
return '';
}
+ // The folder of a game card on this page that opens the game called nm (its folder can differ from its name), or ''.
+ function cardOf(nm) {
+ nm = String(nm).trim().replace(/["\\]/g, '');
+ var slug = nm.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
+ if (!nm) return '';
+ var a = document.querySelector('a[aria-label$=" ' + nm + '"][href^="' + BASE + '"]') || (slug && document.querySelector('a[href="' + BASE + slug + '/"]'));
+ var m = a && a.getAttribute('href').slice(BASE.length).match(/^([a-z0-9-]{1,40})\/$/);
+ return m ? m[1] : '';
+ }
+ // The phone page's game tiles are buttons, not links: