Skip to content
Closed
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
1 change: 1 addition & 0 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion e63334287a3deaa3/backrooms-1v1/es.js

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

179 changes: 153 additions & 26 deletions e63334287a3deaa3/backrooms-1v1/index.html

Large diffs are not rendered by default.

208 changes: 188 additions & 20 deletions e63334287a3deaa3/boostball/index.html

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions e63334287a3deaa3/m/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,21 +352,23 @@ <h1>Arjun's <span>games</span></h1>
// An invite link (#<room>) opens its game straight away. Room codes start with the game's prefix; any other code is a Rumble Karts room.
var PREFIX={tv:'trivium',br:'backrooms-1v1',sc:'shell-crackers',hm:'hail-mary',cl:'coil',ss:'slipstream',bb:'boostball',qy:'quarry',kw:'kartwheel',sd:'showdown',cf:'chromaflage',tw:'spire',up:'updraft',ph:'odd-one-out',ko:'tumble-trials',dw:'deepword',sr:'turbo-trail',er:'escapade',pf:'puffer-party',dz:'drop-zone',gd:'lunge-line',bs:'blockstorm',lh:'lanternhold',hp:'hush-pools',vq:'sky-duel',qg:'putterby'};
// Party invites (#pt-<code>) don't open a game: they join the party in the Party panel below. Aisle invites (#xj-) open the Aisle window (aisles.js).
var inv=/^#([a-z0-9-]{1,20})$/.exec(location.hash),party='';
// ?watch=1 with a Shell Crackers, Backrooms or Boostball room opens that game as a spectator instead (the game reads ?watch=1).
var inv=/^#([a-z0-9-]{1,20})$/.exec(location.hash),party='',watch=/^\?watch=1$/.test(location.search)&&/^#(sc|br|bb)-/.test(location.hash);
if(inv){
history.replaceState(null,'',location.pathname);
var pre=/^([a-z]{2})-/.exec(inv[1]),g=byId[pre&&PREFIX[pre[1]]||'rumble-karts'];
if(pre&&pre[1]==='pt')party=inv[1].slice(3);
else if(pre&&pre[1]==='xj'){try{sessionStorage.setItem('aisle:inv',inv[1].slice(3))}catch(e){}} // an Aisle invite: aisles.js picks it up
else if(g)openGame({id:g.id,name:g.name,land:g.land,url:g.url,scope:g.scope,hash:'#'+inv[1]});
else if(g)openGame({id:g.id,name:g.name,land:g.land,url:g.url,scope:g.scope,hash:(watch?'?watch=1':'')+'#'+inv[1]});
}
addEventListener('popstate',function(){closeGame()});

// Parties: the same party.js as the computer version, opening games through openGame here.
window.BackRoom={
openGame:function(path,name){
var m=/\/([a-z0-9-]+)\/(#[a-z0-9-]*)?$/.exec(path),g=m&&byId[m[1]];if(!g||cur)return null;
openGame({id:g.id,name:g.name,land:g.land,url:g.url,scope:g.scope,hash:m[2]||''});return $('frame');
// (?watch=1: the Watch buttons, a game opened read-only as a spectator)
var m=/\/([a-z0-9-]+)\/(\?watch=1)?(#[a-z0-9-]*)?$/.exec(path),g=m&&byId[m[1]];if(!g||cur)return null;
openGame({id:g.id,name:g.name,land:g.land,url:g.url,scope:g.scope,hash:(m[2]||'')+(m[3]||'')});return $('frame');
},
isOpen:function(){return !!cur},
invite:party
Expand Down
6 changes: 6 additions & 0 deletions e63334287a3deaa3/news-es.js

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

7 changes: 7 additions & 0 deletions e63334287a3deaa3/news.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
*/
(function () {
var NEWS = [
{date: '2026-11-20', title: 'Spectate online matches', kind: 'feature',
tags: ['Spectate', 'Shell Crackers', 'Backrooms', 'Boostball'], img: 'm/thumbs/shell-crackers.jpg', items: [
'You can now watch a Shell Crackers, Backrooms or Boostball match without joining it: press Watch next to the game in Playing now, or on a friend\'s row in Online.',
'Follow any player from behind and switch between them, or fly a free camera around the map. The scoreboard is one key or tap away.',
'Spectators are invisible: they never take a spot in the room, can\'t be hit, and don\'t change anyone\'s score, rating or stats.',
'Players see how many people are watching their match.'
]},
{date: '2026-11-20', version: '1.35', title: 'Hush Pools: into the mist', kind: 'feature',
tags: ['Hush Pools', 'Horror obby'], img: 'm/thumbs/hush-pools.jpg', items: [
'The halls are much bigger now, and full of mist. You can only see a little way ahead, so you have to explore to find the way across.',
Expand Down
31 changes: 26 additions & 5 deletions e63334287a3deaa3/playingnow.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
* (rooms/<prefix>-<room>/players, nodes heard from within the game's own live window). Games with rounds offer
* "Queue for next game" when the room is full: this tab checks every 3 s and launches as soon as there's a spot.
* Nothing is written by this file.
*
* Watch: games in WATCH (Shell Crackers, Backrooms, Boostball) also get a Watch button on their row (and, through
* BackRoomPlaying.watch, on the person's row in the Online panel). It opens the game in party.js's layer as
* <folder>/?watch=1#<prefix><room>, which the game itself turns into its spectator mode: it reads the room and writes
* nothing, so a spectator is never a player there (and never counted here). A full room can still be watched.
*/
(function () {
'use strict';
Expand Down Expand Up @@ -66,6 +71,8 @@
// Each game's own room limit (its join check), how long a player node counts as live there, and whether it plays
// in rounds (so a full room is worth queuing for). bb: Boostball's limit is twice the room's team size (round.sz).
// A game party.js adds later without a row here uses party.js's max, its 10 s window and no queue.
// Games with a spectator mode (?watch=1 on the game's address; see the watchers.js entry in README.md).
var WATCH = { sc: 1, br: 1, bb: 1 };
var CAP = {
sc: { m: 8, q: 1 }, rk: { m: 12, q: 1 }, ss: { m: 22, q: 1 }, bb: { m: 6, q: 1, bb: 1 }, cl: { m: 10, q: 1 },
sd: { m: 10, l: 12000, q: 1 }, br: { m: 8, l: 8000, q: 1 }, cf: { m: 8, l: 12000, q: 1 }, tw: { m: 12, l: 12000, q: 1 },
Expand Down Expand Up @@ -101,9 +108,10 @@
'.pn-r{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}' +
'.pn-r b{color:var(--accent);font-weight:600}' +
'.pty .pn-it .btn{flex:none;min-height:40px;padding:8px 14px;font-size:14px;white-space:nowrap}' +
'.pn-bs{display:flex;gap:6px;flex:none}' +
'.pn-empty{margin:0;font-size:14px;color:var(--ink-2)}' +
'.pn-empty:empty{display:none}' +
'@media (max-width:600px){.pn-it{flex-wrap:wrap}.pn-who{flex:1 1 calc(100% - 90px)}.pty .pn-it .btn{flex:1 1 100%}}';
'@media (max-width:600px){.pn-it{flex-wrap:wrap}.pn-who{flex:1 1 calc(100% - 90px)}.pty .pn-it .btn{flex:1 1 100%}.pn-bs{flex:1 1 100%}.pty .pn-bs .btn{flex:1 1 0;justify-content:center;text-align:center}}';
document.head.appendChild(css);

// ---------------- Panel ----------------
Expand Down Expand Up @@ -304,6 +312,7 @@
var html = list.map(function (e) {
var ac = action(e), btn = ac.a ? '<button type="button" class="btn sm' + (ac.pri ? ' primary' : '') + '" data-' + ac.a + '="' + esc(e.id) + '">' + ac.label + '</button>'
: '<button type="button" class="btn sm" disabled>' + ac.label + '</button>';
if (WATCH[e.k]) btn = '<span class="pn-bs">' + btn + '<button type="button" class="btn sm" data-w="' + esc(e.id) + '" aria-label="Watch ' + esc(e.g.n) + ' without playing">Watch</button></span>';
var room = e.n < 0 ? 'Checking the room…' : e.n === 0 ? 'Starting the game…' : T('<b>{a} of {b}</b> in the room', { a: e.n, b: e.cap });
if (queued && queued.id === e.id) room = 'You’re queued · joining as soon as there’s a spot';
var avs = e.who.slice(0, 3).map(function (w) { return '<span class="pn-av" style="background:' + esc(w.c) + '" data-u="' + esc(w.uid) + '">' + esc(w.n.charAt(0).toUpperCase()) + '</span>'; }).join('');
Expand Down Expand Up @@ -334,6 +343,15 @@
setTimeout(function () { if ($msg.textContent === joining) say(''); }, 8000);
draw();
}
// Watch: open the game read-only in that room (no player node there, so it doesn't take a spot or need one).
function watch(id) {
var e = find(id); if (!e || !WATCH[e.k]) return false;
if (queued) cancelQueue('You left the queue to watch a game.');
say('Opening ' + e.g.n + ' to watch (room ' + e.r + ')…');
P.open(BASE + e.g.d + '/?watch=1#' + e.g.pre + e.r, e.g.n);
setTimeout(function () { if ($msg.textContent.indexOf('Opening') === 0) say(''); }, 8000);
return true;
}
function join(id) {
var e = find(id); if (!e) return;
// Check the room just before going, so a room that has just filled offers the queue instead.
Expand Down Expand Up @@ -374,8 +392,9 @@

sec.addEventListener('click', function (ev) {
var b = ev.target.closest('button'); if (!b || b.disabled) return;
var j = b.getAttribute('data-j'), q = b.getAttribute('data-q');
if (j) join(j);
var j = b.getAttribute('data-j'), q = b.getAttribute('data-q'), w = b.getAttribute('data-w');
if (w) watch(w);
else if (j) join(j);
else if (q) { if (queued && queued.id === q) cancelQueue(); else startQueue(q); }
});
document.addEventListener('backroom:avatar', function () { $list.removeAttribute('data-h'); soon(); });
Expand Down Expand Up @@ -413,15 +432,17 @@
if (a && look && a.party && now() - a.ts <= STALE) checkParty(a);
var e = rowOf(u); if (!e) return null;
var ac = action(e), busy = inGame() && ac.a === 'q'; // the queue only runs with the Back Room page in view
return { label: busy ? 'Full' : ac.short || ac.label, game: e.g.n, pri: !!ac.pri, off: !ac.a || busy };
return { label: busy ? 'Full' : ac.short || ac.label, game: e.g.n, pri: !!ac.pri, off: !ac.a || busy, watch: !!WATCH[e.k] };
},
act: function (u) {
var e = rowOf(u); if (!e) return false;
var ac = action(e);
if (ac.a === 'j') { join(e.id); return true; }
if (ac.a === 'q' && !inGame()) { if (queued && queued.id === e.id) cancelQueue(); else startQueue(e.id); return false; }
return false;
}
},
// Watch the game that person is in (games with a spectator mode only); says whether it opened anything.
watch: function (u) { var e = rowOf(u); return !!(e && watch(e.id)); }
};

// Test hook for the automated checks; harmless in normal play.
Expand Down
Loading
Loading