Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion e63334287a3deaa3/aisles.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
c.note.hidden = false;
c.note.textContent = elo
? 'Aisle Elo: each member’s Elo is averaged over the rated games they have played (games they haven’t played don’t count). Total = those member averages added up; Average = Total ÷ members with a rating. Sorted by ' + (eloSort === 'avg' ? 'Average.' : 'Total.')
: wkB ? 'Weekly contest: the Aisle whose members fly the most miles this week wins it. Miles from play time since Monday (' + fmtN((window.BackRoomMiles && BackRoomMiles.HOUR) || 100) + ' an hour), and each member’s only count from the day they joined the Aisle. A new week starts at midnight on Sunday night.'
: wkB ? 'Weekly contest: the Aisle whose members fly the most miles this week wins it. Miles come from time spent playing since Monday, and each member’s only count from the day they joined the Aisle. A new week starts at midnight on Sunday night.'
: 'Aisle Miles: every member’s all-time miles (the number behind their tier badge) added up. Average = Total ÷ members.';
if (!ready) { start().catch(function () {}); c.say('Loading the Aisles…'); return; }
var d = boardsData();
Expand Down
31 changes: 18 additions & 13 deletions e63334287a3deaa3/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* 25 or more, from the Kills board's own rows; Shell Crackers' Kills board says who holds it.
*
* Miles board (the first board, 'all'): This week or All time (a toggle, This week unless this browser picked All time:
* localStorage 'lb:span'; it also switches each game's Hours board). All time ranks by BackRoomMiles.of(node).miles, the
* localStorage 'lb:span'; it also switches each game's play-time board, shown in miles). All time ranks by BackRoomMiles.of(node).miles, the
* number behind the tier badge. This week is miles from play time only (miles.js's HOUR per hour), from the per-day history
* d that stats.js keeps (seconds per game per local day, YYYYMMDD by the player's own browser): the dates from this week's
* Monday to today, by the viewer's clock (the week starts on Monday, so the board empties at midnight on Sunday night),
Expand Down Expand Up @@ -90,16 +90,19 @@
'The boards load when you scroll down to them.': 'Las tablas cargan cuando bajas hasta ellas.',
'Every lap counts, corner cuts included. Clean lap has the times with no cut.': 'Cuenta cada vuelta, incluso con curvas cortadas. Vuelta limpia tiene los tiempos sin cortes.',
'Race times include any track-cut penalties (+2.5 s each).': 'Los tiempos de carrera incluyen las penalizaciones por cortar pista (+2,5 s cada una).',
'This week counts miles from play time since Monday, 100 an hour. Wins and bests count in All time.': 'Esta semana cuenta millas por tiempo de juego desde el lunes, 100 por hora. Las victorias y récords cuentan en Histórico.',
'This week counts miles from play time since Monday. Wins and bests count in All time.': 'Esta semana cuenta millas por tiempo de juego desde el lunes. Las victorias y récords cuentan en Histórico.',
'All time: miles from time spent playing plus points for wins and bests, the same miles as each player’s status tier.': 'Histórico: millas por el tiempo que pasas jugando más puntos por victorias y récords, las mismas millas que el nivel de cada jugador.',
'This week counts miles from play time in this game since Monday.': 'Esta semana cuenta millas por tiempo de juego en este juego desde el lunes.',
'All time: miles from time spent playing this game.': 'Histórico: millas por el tiempo que pasas jugando este juego.',
'Play time counts while a game is open and you’re playing. Scores are reported by each player’s own browser, so they’re for bragging rights, not prizes.':
'El tiempo de juego cuenta mientras un juego está abierto y estás jugando. Los puntajes los informa el navegador de cada jugador, así que son para presumir, no para premios.',
'Season {n}: Slipstream’s lap and race records were reset on {d}, after track fixes and gentler barriers made older times unfair to compare. Times set before then no longer count. Elo and hours played were kept.':
'Temporada {n}: los récords de vuelta y carrera de Slipstream se reiniciaron el {d}, después de que arreglos de pista y barreras más suaves hicieran injusto comparar con tiempos viejos. Los tiempos anteriores ya no cuentan. Se mantuvieron el Elo y las horas jugadas.',
'Season {n}: Slipstream’s lap and race records were reset on {d}, after track fixes and gentler barriers made older times unfair to compare. Times set before then no longer count. Elo and play time were kept.':
'Temporada {n}: los récords de vuelta y carrera de Slipstream se reiniciaron el {d}, después de que arreglos de pista y barreras más suaves hicieran injusto comparar con tiempos viejos. Los tiempos anteriores ya no cuentan. Se mantuvieron el Elo y el tiempo de juego.',
'Refreshing…': 'Actualizando…', 'Loading the leaderboards…': 'Cargando las tablas…',
'The leaderboards need the Party panel, which didn’t load. Reload the page to try again.': 'Las tablas necesitan el panel de Grupo, que no cargó. Recarga la página para reintentar.',
'Couldn’t reach the leaderboards. If you’re on a school or work network it may be blocking the game database.': 'No se pudo llegar a las tablas. Si estás en la red de la escuela o del trabajo, puede que bloquee la base de datos del juego.',
'Tracks with times': 'Pistas con tiempos', 'No times yet this season': 'Todavía no hay tiempos esta temporada', 'no times yet': 'sin tiempos todavía',
'· {n} driver': '· {n} piloto', '· {n} drivers': '· {n} pilotos', 'Hours played': 'Horas jugadas', 'Fastest lap · every track': 'Vuelta más rápida · todas las pistas', 'All tracks': 'Todas las pistas',
'· {n} driver': '· {n} piloto', '· {n} drivers': '· {n} pilotos', 'Miles from play time': 'Millas por tiempo de juego', 'Miles': 'Millas', 'Fastest lap · every track': 'Vuelta más rápida · todas las pistas', 'All tracks': 'Todas las pistas',
'Fastest lap': 'Vuelta más rápida', 'Clean lap': 'Vuelta limpia', 'Fastest clean lap': 'Vuelta limpia más rápida', 'Most: {n}': 'Más: {n}',
'Clean times: no corner was cut on': 'Tiempos limpios: no se cortó ninguna curva en', 'any lap of the race.': 'ninguna vuelta de la carrera.', 'the lap.': 'la vuelta.',
// Board names (game names stay in English).
Expand Down Expand Up @@ -781,12 +784,13 @@
var order = TRACK_IDS.slice().sort(function (a, b) { return (c[b] || 0) - (c[a] || 0) || TRACK_IDS.indexOf(a) - TRACK_IDS.indexOf(b); });
return { order: order, count: c, laps: laps };
}
// The boards a game has: its hours, then its stats. Slipstream: every track's fastest lap at a glance, then the chosen
// The boards a game has: its play time (shown in miles), then its stats. Slipstream: every track's fastest lap at a glance, then the chosen
// track's course records (3, 5 and 10 laps, the lengths the game offers, plus any other length someone has a record for)
// and its fastest lap.
function boardsFor(d, people, track) {
var meta = BY[d]; if (!meta) return [];
var out = [{ k: 's', l: 'Hours played', chip: 'Hours', f: 'hours' }];
// The play-time board (key 's', seconds played) is shown in miles, never as hours: only the admin page shows hours.
var out = [{ k: 's', l: 'Miles from play time', chip: 'Miles', f: 'hours' }];
if (!meta.laps) return out.concat(meta.st.filter(function (st) { return !st.hide; }));
var ts = trackStats(people), t = TRACKS[track] ? track : ts.order[0], nm = TRACKS[t][0];
// Every track at once: the fastest lap on each (and who set it), "no times yet" where nobody has one.
Expand Down Expand Up @@ -1028,7 +1032,7 @@
var tlbl = el('label'); tlbl.append(el('span', '', 'Track')); tlbl.hidden = true;
var $trk = el('select'); $trk.setAttribute('aria-label', 'Track');
tlbl.append($trk); ctl.append(tlbl);
// The Miles board and each game's Hours board: this week or all time.
// The Miles board and each game's play-time board (in miles): this week or all time.
var $span = el('div', 'lbd-span'); $span.setAttribute('role', 'group'); $span.setAttribute('aria-label', 'Time span');
[['week', 'This week'], ['all', 'All time']].forEach(function (x) { var b = el('button', '', x[1]); b.type = 'button'; b.setAttribute('data-s', x[0]); $span.append(b); });
ctl.append($span);
Expand All @@ -1040,7 +1044,7 @@
// Slipstream's course-record boards only: what the time includes.
var $rule = el('p', 'lbd-note', 'Race times include any track-cut penalties (+2.5 s each).'); $rule.hidden = true;
// Slipstream's time boards only: the records were reset, and when (SLIP_RESET).
var $season = el('p', 'lbd-note', 'Season ' + SLIP_SEASON + ': Slipstream’s lap and race records were reset on ' + SLIP_RESET + ', after track fixes and gentler barriers made older times unfair to compare. Times set before then no longer count. Elo and hours played were kept.'); $season.hidden = true;
var $season = el('p', 'lbd-note', 'Season ' + SLIP_SEASON + ': Slipstream’s lap and race records were reset on ' + SLIP_RESET + ', after track fixes and gentler barriers made older times unfair to compare. Times set before then no longer count. Elo and play time were kept.'); $season.hidden = true;
// What This week / All time counts, on the boards with the toggle.
var $spanNote = el('p', 'lbd-note'); $spanNote.hidden = true;
// Slipstream's time boards only: who holds the Slipstream ace (see ace) and the rule, or that it is unclaimed. Shell
Expand Down Expand Up @@ -1296,9 +1300,9 @@
[].forEach.call($span.children, function (b) { b.setAttribute('aria-pressed', String(b.getAttribute('data-s') === view.span)); });
$spanNote.hidden = !spans;
$spanNote.textContent = !spans ? '' : miles
? (wk ? 'This week counts miles from play time since Monday, ' + fmtN((window.BackRoomMiles && BackRoomMiles.HOUR) || 100) + ' an hour. Wins and bests count in All time.'
: 'All time: miles for every hour played plus points for wins and bests, the same miles as each player’s status tier.')
: (wk ? 'This week counts time played since Monday.' : '');
? (wk ? 'This week counts miles from play time since Monday. Wins and bests count in All time.'
: 'All time: miles from time spent playing plus points for wins and bests, the same miles as each player’s status tier.')
: (wk ? 'This week counts miles from play time in this game since Monday.' : 'All time: miles from time spent playing this game.');
if (!$spanNote.textContent) $spanNote.hidden = true;
$h.textContent = (miles ? 'Miles · all games' : BY[view.g].n + ' · ' + st.l) + (spans ? (wk ? ' · this week' : ' · all time') : '');
$list.textContent = '';
Expand All @@ -1312,7 +1316,8 @@
var list = rows(view, people), hours = !view.st;
list.forEach(function (r) {
if (miles) r.fmt = fmtN(r.v) + ' mi';
else r.fmt = hours ? fmtHours(r.v) : fmt(view.st, r.v);
// A game's play-time board: its seconds as miles (miles.js's HOUR an hour), in the same order. Players never see hours.
else r.fmt = hours ? fmtN(Math.floor(r.v / 3600 * ((window.BackRoomMiles && BackRoomMiles.HOUR) || 100))) + ' mi' : fmt(view.st, r.v);
});
var mine = -1; for (var j = 0; j < list.length; j++) if (isMe(list[j].p.uid)) { mine = j; break; }
list.slice(0, TOP).forEach(function (r) { $list.append(row(r)); });
Expand Down
14 changes: 7 additions & 7 deletions e63334287a3deaa3/miles.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
'Every badge': 'Todas las insignias', 'Badges': 'Insignias',
'The badge next to a name shows that player’s status tier, plus any places and awards they hold. On a computer, hover over any badge on the site to see what it is.':
'La insignia junto a un nombre muestra el nivel de ese jugador, más los puestos y premios que tenga. En la computadora, pasa el mouse por cualquier insignia del sitio para ver qué es.',
'Status tiers': 'Niveles', 'Earned with miles: {n} for every hour you play any game, plus points for wins and personal bests in each one (capped per game, so no single game carries you).':
'Se ganan con millas: {n} por cada hora que juegas cualquier juego, más puntos por victorias y récords personales en cada uno (con tope por juego, así que ningún juego solo te lleva).',
'Where everyone starts. Under 2,000 miles.': 'Donde empiezan todos. Menos de 2.000 millas.', '2,000 miles. About an hour a day for three weeks.': '2.000 millas. Más o menos una hora por día durante tres semanas.',
'10,000 miles. About 100 hours, or 50 with a lot of winning.': '10.000 millas. Unas 100 horas, o 50 ganando mucho.', '40,000 miles. Roughly a year of play.': '40.000 millas. Más o menos un año de juego.',
'Status tiers': 'Niveles', 'Earned with miles: miles come from time spent playing any game, plus points for wins and personal bests in each one (capped per game, so no single game carries you).':
'Se ganan con millas: las millas salen del tiempo que pasas jugando cualquier juego, más puntos por victorias y récords personales en cada uno (con tope por juego, así que ningún juego solo te lleva).',
'Where everyone starts. Under 2,000 miles.': 'Donde empiezan todos. Menos de 2.000 millas.', '2,000 miles. A few weeks of regular play.': '2.000 millas. Unas semanas jugando seguido.',
'10,000 miles. A lot of play, or about half as much with a lot of winning.': '10.000 millas. Mucho juego, o más o menos la mitad ganando mucho.', '40,000 miles. Roughly a year of play.': '40.000 millas. Más o menos un año de juego.',
'Crew': 'Tripulación', 'Given, not earned: these sit above every miles tier, whatever someone’s miles.': 'Se otorgan, no se ganan: están por encima de todos los niveles de millas, tenga las millas que tenga.',
'The co-pilot. Given by the Captains.': 'El copiloto. Lo otorgan los Captains.', 'Flies the plane: the people who run the site.': 'Pilotea el avión: la gente que maneja el sitio.',
'The site founder. There is only one.': 'El fundador del sitio. Hay uno solo.', 'Miles board places': 'Puestos en la tabla de millas',
Expand Down Expand Up @@ -626,9 +626,9 @@
x.type = 'button'; x.setAttribute('aria-label', 'Close'); x.addEventListener('click', function () { d.close(); });
head.appendChild(gEl('h2', '', 'Badges')); head.appendChild(x); box.appendChild(head);
box.appendChild(gEl('p', 'bra-g-n', 'The badge next to a name shows that player’s status tier, plus any places and awards they hold. On a computer, hover over any badge on the site to see what it is.'));
var l = gSec(box, 'Status tiers', 'Earned with miles: ' + HOUR + ' for every hour you play any game, plus points for wins and personal bests in each one (capped per game, so no single game carries you).');
var how = { economy: 'Where everyone starts. Under 2,000 miles.', business: '2,000 miles. About an hour a day for three weeks.',
first: '10,000 miles. About 100 hours, or 50 with a lot of winning.', jet: '40,000 miles. Roughly a year of play.' };
var l = gSec(box, 'Status tiers', 'Earned with miles: miles come from time spent playing any game, plus points for wins and personal bests in each one (capped per game, so no single game carries you).');
var how = { economy: 'Where everyone starts. Under 2,000 miles.', business: '2,000 miles. A few weeks of regular play.',
first: '10,000 miles. A lot of play, or about half as much with a lot of winning.', jet: '40,000 miles. Roughly a year of play.' };
TIERS.forEach(function (t) { gRow(l, [pill(t)], t.n, how[t.k]); });
l = gSec(box, 'Crew', 'Given, not earned: these sit above every miles tier, whatever someone’s miles.');
gRow(l, [pill(VICE_CAPTAIN)], 'Vice Captain', 'The co-pilot. Given by the Captains.');
Expand Down
2 changes: 1 addition & 1 deletion e63334287a3deaa3/news-es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion e63334287a3deaa3/news.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*
* Back Room "What's new".
*
Expand Down Expand Up @@ -375,7 +375,7 @@
'Party chat: message your party straight away, with no chat request first, in its own Party chat channel.',
'Chat inside the games: when you\'re in a party, press T in an online game to send a message, and your party\'s messages show at the side of the screen. On a phone, tap Chat in the top bar.',
'The Back Room is now in sections, Puzzles, Parkour, Shooter / Action, Multiplayer and Single player, on the computer and on the phone version.',
'Leaderboards: hours played no longer go up and down when you play on two devices, and if you played as a guest before signing in with Google, your two entries now merge into one.'
'Leaderboards: play time no longer goes up and down when you play on two devices, and if you played as a guest before signing in with Google, your two entries now merge into one.'
]},
{date: '2026-10-29', version: '1.11', title: 'Turbo Trail, Escapade and Spire', kind: 'game', games: ['Turbo Trail', 'Escapade'],
img: ['m/thumbs/turbo-trail.jpg', 'm/thumbs/escapade.jpg', 'm/thumbs/spire.jpg'], tags: ['Obby', 'Escape rooms', 'Online races'], items: [
Expand Down
4 changes: 2 additions & 2 deletions showcase/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h2 id="buildTitle">Hard problems I solved</h2>
['Unique visitors',d&&n(d.visitors)],
['Pageviews',d&&n(d.pageviews)],
['Avg engaged time',d&&dur(d.avgEngagedSec)],
['Hours of engaged use',d&&n(d.engagedHours)],
['Sessions',d&&n(d.sessions)],
['Returning visitors',d&&pct(d.returning,d.visitors)],
['On a phone',d&&pct(d.mobile,d.visitors)]
];
Expand All @@ -212,7 +212,7 @@ <h2 id="buildTitle">Hard problems I solved</h2>
const rows=d&&d.sites?d.sites:['Boxed','Docket','Prompted','Hype Cycle Exchange','Shell Crackers'].map(name=>({name,visitors:0,hours:0}));
const max=Math.max(1,...rows.map(r=>r.visitors));
rows.forEach(r=>{const b=mk('div','bar'),tr=mk('div','track'),f=mk('div','fill');f.style.width=d?(100*r.visitors/max)+'%':'0';tr.append(f);
b.append(mk('span','l',r.name),tr,mk('span','v',d?n(r.visitors)+(r.name!=='Homepage'&&r.hours!=null?' · '+r.hours+'h':''):'—'));sites.append(b)});
b.append(mk('span','l',r.name),tr,mk('span','v',d?n(r.visitors):'—'));sites.append(b)});

if(d){dash.classList.remove('empty');const b=document.getElementById('dashBadge');b.textContent='Last '+d.days+' days';b.classList.add('live');
document.getElementById('dashAsof').textContent='Updated '+new Date(d.updated+'T12:00:00').toLocaleDateString('en-US',{month:'long',day:'numeric',year:'numeric'});}
Expand Down
Loading