From 31a65ebf6bad2688528f1179a29dbf331c790b8a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 01:24:36 +0000 Subject: [PATCH 1/2] Odd One Out: ready up and a lobby timer Every player in an online lobby gets a Ready button (or Enter); when at least half the room is ready (rounded up) a 5 s countdown starts the match, and once 2 players are in a lobby timer (60 s in a room, 20 s in a public lobby as before) starts it anyway. Host-run: rd in each player's node, al/rr/lr in the round state; pages from before still mix in. Spanish in es.js. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn --- e63334287a3deaa3/odd-one-out/es.js | 4 ++ e63334287a3deaa3/odd-one-out/index.html | 77 +++++++++++++++++++++---- 2 files changed, 69 insertions(+), 12 deletions(-) diff --git a/e63334287a3deaa3/odd-one-out/es.js b/e63334287a3deaa3/odd-one-out/es.js index 2c678cfc..c09ef3c9 100644 --- a/e63334287a3deaa3/odd-one-out/es.js +++ b/e63334287a3deaa3/odd-one-out/es.js @@ -64,6 +64,10 @@ if (window.BackRoomLang) BackRoomLang.add({ 'Starting in {n}…': 'Empieza en {n}…', 'Starts by itself once 2 players are here.': 'Empieza sola cuando haya 2 jugadores.', 'Waiting for at least one more player. Send them the invite link.': 'Falta al menos un jugador. Mándale la invitación.', 'Press Start match when everyone is in.': 'Pulsa Empezar partida cuando estén todos.', 'Waiting for the host to start.': 'Esperando a que empiece el anfitrión.', + // ready up and the lobby timer + 'Ready': 'Listo', 'Not ready': 'No listo', 'ready': 'listo', 'not ready': 'no listo', '{n} of {m} ready': '{n} de {m} listos', 'Starting in {t}': 'Empieza en {t}', + 'Starts 5 s after half the room is ready, or when the timer runs out.': 'Empieza 5 s después de que la mitad de la sala esté lista, o cuando se acabe el tiempo.', + 'Starts 5 s after half the room is ready, or when the timer runs out. Start match starts it now.': 'Empieza 5 s después de que la mitad de la sala esté lista, o cuando se acabe el tiempo. Empezar partida la empieza ya.', 'Back to the lobby in {n}…': 'Vuelta a la sala en {n}…', 'Next round in {n}…': 'Próxima ronda en {n}…', 'Final scores in {n}…': 'Puntos finales en {n}…', // touch 'Menu': 'Menú', 'Start hunt': 'Empezar caza', 'Align': 'Alinear', 'Line up': 'Alinear', 'Turn ↻': 'Girar ↻', 'Turn ↺': 'Girar ↺', 'Become': 'Convertir', diff --git a/e63334287a3deaa3/odd-one-out/index.html b/e63334287a3deaa3/odd-one-out/index.html index 7b575975..f667ca90 100644 --- a/e63334287a3deaa3/odd-one-out/index.html +++ b/e63334287a3deaa3/odd-one-out/index.html @@ -196,6 +196,15 @@ .hset .seg{justify-self:start;max-width:100%;overflow-x:auto} #lobby.guest .hset .seg{pointer-events:none;opacity:.75} #lobbyMin{display:none} +/* ready up: the button and the count stay outside the scrolling body, so they show even with the card hidden (Hide) */ +#lobby .rdrow{margin-top:10px;flex-wrap:nowrap} +#lobbyReady{flex:0 0 auto;min-height:44px;min-width:104px;font-size:16px;padding:8px 14px;background:#fff} +#lobbyReady[aria-pressed="true"]{background:var(--prop);color:#fff} +#lobbyReady[aria-pressed="true"]::before{content:'\2713'} +#rdNote{margin:0;min-width:0;font-weight:900;font-size:13px;line-height:1.3;color:var(--ink-2)} +#rdNote.go{color:var(--hunt-2)} +#plist .rd{flex:0 0 auto;width:18px;height:18px;border-radius:50%;border:2px solid var(--ink-3);font-size:11px;font-weight:900;line-height:14px;text-align:center;color:#fff} +#plist .rd.on{background:var(--prop);border-color:var(--ink)} /* ---------- results ---------- */ .mini{max-width:680px;width:100%} @@ -323,6 +332,10 @@

Lobby

+
    Match settings
    @@ -2055,7 +2068,9 @@

    Props win!

    // {id, mid (match), rn (round number), ph: lobby|hide|hunt|end|over, t0, dur, map, // set: {map, rounds, hide, hunt, ratio, ping, pen, hps}, // hu: hunters, pr: props, hf: {uid: share of health lost, 0-1}, el: {uid: [by, seconds into the hunt]}, -// k: {uid: eliminations}, sc: match points, hn: times each player has hunted, res: last result} +// k: {uid: eliminations}, sc: match points, hn: times each player has hunted, res: last result, +// in the lobby: as (public rooms: when the match starts), and from hosts with ready up lr: 1, al (when the lobby +// timer runs out) and rr (when the ready countdown ends); see hostLobby} // ===================================================================== const G={ mode:'menu',pmode:null,rs:null,role:'free',rid:-1,ph:'',paused:false,host:false,diff:clamp(+store.get('diff',2)|0,1,3),pracMap:clamp(+store.get('pmap',0)|0,0,2), @@ -2083,7 +2098,7 @@

    Props win!

    // A saved penalty only counts if the host chose it since wrong shots became free by default (hostpen): the 3 HP saved // with older settings was the old default, not a choice. function defaultSet(){const s=Object.assign({},DEF_SET,store.get('hostset',{}));if(!store.get('hostpen',0))s.pen=DEF_SET.pen;return cleanSet(s)} -function lobbyRS(prev,set){return{id:prev?prev.id:0,mid:prev?prev.mid||0:0,rn:0,ph:'lobby',t0:now(),dur:0,map:prev?prev.map:mapIdx<0?0:mapIdx,set:set||(prev&&prev.set)||defaultSet(),hu:[],pr:[],hf:{},el:{},k:{},sc:prev&&prev.ph!=='over'?prev.sc||{}:{},hn:{},as:0}} +function lobbyRS(prev,set){return{id:prev?prev.id:0,mid:prev?prev.mid||0:0,rn:0,ph:'lobby',t0:now(),dur:0,map:prev?prev.map:mapIdx<0?0:mapIdx,set:set||(prev&&prev.set)||defaultSet(),hu:[],pr:[],hf:{},el:{},k:{},sc:prev&&prev.ph!=='over'?prev.sc||{}:{},hn:{},as:0,lr:1}} function liveIds(){if(G.mode==='practice')return[...ents.keys()];const a=[Net.uid];for(const k of Net.others.keys())if(Net.live(k))a.push(k);return a} function huntersFor(n,set){const want=set.ratio|0?set.ratio|0:n<=3?1:n<=6?2:n<=10?3:4;return clamp(want,1,Math.max(1,n-1))} function newRound(prev,fresh){ @@ -2094,12 +2109,37 @@

    Props win!

    return{id:(prev.id|0)+1,mid,rn,ph:'hide',t0:now(),dur:set.hide*1000,map,set,hu,pr:ids.filter(u=>hu.indexOf(u)<0),hf:{},el:{},k:{},sc:fresh?{}:prev.sc||{},hn,res:null,as:0}; } function setRS(rs){G.rs=rs;if(G.mode==='online'&&G.host)G.rsDirty=true;applyRS(rs)} +// ---------- ready up and the lobby timer (online lobby only) ---------- +// Each player says it's ready with rd in its own node: the lobby's key (round id + 1), so a ready from an earlier +// lobby never counts and nobody has to clear it. Once 2 are in, the host runs the lobby timer (al: 60 s in a room, +// 20 s in a public lobby, not reset by new joiners, cancelled below 2), and when at least half the room is ready +// (rounded up) a 5 s countdown (rr); the match starts at whichever comes first. Public rooms copy that moment to as, +// which pages from before ready up read and run; private rooms leave as at 0, so an older host page shows nothing +// stuck (its Start button still works, nothing starts by itself). lr: 1 says the host does all this. +const LOBBY_MS=60000,PUB_LOBBY_MS=20000,READY_MS=5000; +const lobbyKey=rs=>rs&&rs.ph==='lobby'?(rs.id|0)+1:0; +function isReady(id,rs){const k=lobbyKey(rs);if(!k)return false;if(id===Net.uid)return G.myRd===k;const o=Net.others.get(id);return !!o&&o.rd===k} +function readyCount(rs){const ids=liveIds();let r=0;for(const u of ids)if(isReady(u,rs))r++;return{r,n:ids.length,need:Math.ceil(ids.length/2)}} +function startAt(rs){if(!rs||rs.ph!=='lobby')return 0;if(!rs.lr)return rs.as||0;const a=rs.al||0,b=rs.rr||0;return a&&b?Math.min(a,b):a||b} +function toggleReady(){ + const rs=G.rs;if(G.mode!=='online'||!Net.refs||!rs||rs.ph!=='lobby'||!rs.lr)return; + const k=lobbyKey(rs);G.myRd=G.myRd===k?0:k;Net.upd({rd:G.myRd});sfx('ui');delete hudCache.lobby;hudDirty(); +} +function hostLobby(rs,t){ + const c=readyCount(rs);let al=rs.al||0,rr=rs.rr||0; + if(c.n<2){al=0;rr=0} + else{if(!al)al=t+(Net.isPublic?PUB_LOBBY_MS:LOBBY_MS);if(c.r>=c.need){if(!rr)rr=t+READY_MS}else rr=0} + const go=al&&rr?Math.min(al,rr):al; + if(go&&t>=go){setRS(newRound(rs,true));return} + const as=Net.isPublic?go:0; + if(al!==(rs.al||0)||rr!==(rs.rr||0)||as!==(rs.as||0)||!rs.lr)setRS(Object.assign({},rs,{al,rr,as,lr:1})); +} // The host's clock: phases, who is left, points. function hostTick(){ const rs=G.rs;if(!rs)return;const t=now(); if(G.mode==='online'&&G.rsDirty&&Net.rsDue(rs)){G.rsDirty=false;Net.pubRS(rs)} if(rs.ph==='lobby'){ - if(G.mode==='online'&&Net.isPublic){const n=liveIds().length;if(n>=2){if(!rs.as)setRS(Object.assign({},rs,{as:t+20000}));else if(t>=rs.as)setRS(newRound(rs,true))}else if(rs.as)setRS(Object.assign({},rs,{as:0}))} + if(G.mode==='online')hostLobby(rs,t); return; } if(rs.ph==='hide'){ @@ -2689,11 +2729,12 @@

    Props win!

    set:cleanSet(p.set),hu,pr:idList(p.pr).filter(u=>hu.indexOf(u)<0),hf:idMap(p.hf,v=>finN(v)?clamp(v,0,1):undefined), el:idMap(p.el,v=>Array.isArray(v)?[typeof v[0]==='string'&&(v[0]===''||ID_RE.test(v[0]))?v[0]:'',numIn(v[1],0,3600,0)]:undefined), k:intMap(p.k),sc:intMap(p.sc),hn:intMap(p.hn),as:numIn(p.as,0,1e15,0),ob:idMap(p.ob,v=>v?1:undefined), + ...(p.ph==='lobby'&&p.lr===1?{lr:1,al:numIn(p.al,0,now()+3e5,0),rr:numIn(p.rr,0,now()+3e5,0)}:{}), res:isObj(res)?{win:res.win==='hunters'?'hunters':'props',pts:intMap(res.pts),names:idMap(res.names,v=>typeof v==='string'&&cleanName(v)||undefined),surv:intMap(res.surv),forms:idMap(res.forms,v=>ptOf(v)?v:undefined)}:null}; } function onNode(uid,v){ if(!v||typeof v!=='object')return; - const o={n:cleanName(v.n)||'Player',c:/^#[0-9a-f]{6}$/i.test(v.c)?v.c:'#ff7a1a',j:+v.j||+v.ts||0,ts:Math.min(+v.ts||0,Net.now()+5000),rs:typeof v.rs==='string'?v.rs:'',he:Math.min(Math.max(+v.he||0,0),1e9),hd:typeof v.hd==='string'?v.hd:''}; + const o={n:cleanName(v.n)||'Player',c:/^#[0-9a-f]{6}$/i.test(v.c)?v.c:'#ff7a1a',j:+v.j||+v.ts||0,ts:Math.min(+v.ts||0,Net.now()+5000),rs:typeof v.rs==='string'?v.rs:'',he:Math.min(Math.max(+v.he||0,0),1e9),hd:typeof v.hd==='string'?v.hd:'',rd:finN(v.rd)?v.rd:0}; const prev=Net.others.get(uid); Net.others.set(uid,o);G.nm.set(uid,o.n); if(o.rs&&o.he>G.maxHe)G.maxHe=o.he; @@ -2782,6 +2823,7 @@

    Props win!

    if(G.hdStr){const f=G.hdStr.split('|'),t={};for(const p of (f[1]||'').split(',').filter(Boolean)){const q=p.split(':');t[q[0]]=+q[1]||0}G.hitSeen.set(Net.uid,{rid:+f[0],t,w:+f[2]||0,s:f[3]})} const base=validRS(G.lastRS)?Object.assign({},G.lastRS):lobbyRS(null,defaultSet()); if(!G.lastRS)base.map=mapIdx<0?0:mapIdx; + if(base.ph==='lobby'&&!base.lr){base.lr=1;base.al=base.as||0} // taking over from a host page from before ready up: its public timer carries on if(G.lastRS&&G.rs&&G.rs.id===base.id)feed(LT('You\'re the host now')); setRS(base);G.rsDirty=true; } @@ -2806,7 +2848,8 @@

    Props win!

    const rs=G.rs,inGame=G.mode==='online'||G.mode==='practice';if(!inGame)return; const role=G.role,ph=rs?rs.ph:'lobby',left=phaseLeft(); let pn='Lobby',ck='–'; - if(ph==='lobby'){const n=G.mode==='online'?liveIds().length:1;ck=rs&&rs.as?fmtT((rs.as-now())/1000):n+'/'+MAX_ROOM;pn=rs&&rs.as?'Starting':'Lobby'} + if(ph==='lobby'){const n=G.mode==='online'?liveIds().length:1,go=G.mode==='online'?startAt(rs):0;ck=go?fmtT((go-now())/1000):n+'/'+MAX_ROOM;pn=go?'Starting':'Lobby'; + if(go){const s=Math.ceil((go-now())/1000);if(s!==G.lastTick){G.lastTick=s;if(s<=5&&s>0)sfx('tock',null,.7)}}} else if(ph==='hide'){pn='Hide · round '+rs.rn+'/'+rs.set.rounds;ck=fmtT(left)}else if(ph==='hunt'){pn='Hunt · round '+rs.rn+'/'+rs.set.rounds;ck=fmtT(left)}else{pn=ph==='over'?'Match over':'Round over';ck=G.mode==='online'?fmtT(left):'–'} if(G.mode==='practice'&&ph!=='lobby')pn=pn.replace(/ · round.*/,'')+' · practice'; setText('phaseName',pn);setText('clock',ck);setClass('clockBox','pill'+(ph==='hunt'&&left<30?' hurry':'')); @@ -2839,7 +2882,7 @@

    Props win!

    let hint='';const K=id=>''+esc(keyName(id))+''; if(ph==='end'||ph==='over')hint=''; else if(role==='hunter')hint=ph==='hunt'?''+K('fire')+' shoot'+K('aim')+' aim'+K('reload')+' reload'+K('board')+' scores':'Wait for the doors to open'+K('board')+' scores'; - else if(role==='prop'||role==='free')hint=''+K('transform')+' become'+K('lock')+' lock rotation'+K('rotL')+' '+K('rotR')+' turn'+K('align')+' line up'+K('jump')+' jump'+(WD?WD.hint():'')+(G.mode==='practice'&&ph==='hide'?'Enter I\'m hidden':''); + else if(role==='prop'||role==='free')hint=''+K('transform')+' become'+K('lock')+' lock rotation'+K('rotL')+' '+K('rotR')+' turn'+K('align')+' line up'+K('jump')+' jump'+(WD?WD.hint():'')+(G.mode==='practice'&&ph==='hide'?'Enter I\'m hidden':'')+(G.mode==='online'&&ph==='lobby'&&rs&&rs.lr?'Enter '+(isReady(Net.uid,rs)?'not ready':'ready')+'':''); else hint=''+K('specPrev')+' '+K('specNext')+' watch someone else'+K('board')+' scores'; if(G.mode==='practice'&&ph==='hide'&&role==='hunter')hint+='Enter skip the wait'; if(hudCache.hint!==hint){hudCache.hint=hint;$('hint').innerHTML=hint} @@ -2850,8 +2893,15 @@

    Props win!

    setHidden('lockHint',!needLock); // lobby panel setHidden('lobby',!(G.mode==='online'&&rs&&ph==='lobby')); - if(G.mode==='online'&&rs&&ph==='lobby'){const lm=rs.as?'Starting in '+Math.max(0,Math.ceil((rs.as-now())/1000))+'…':Net.isPublic?'Starts by itself once 2 players are here.':liveIds().length<2?'Waiting for at least one more player. Send them the invite link.':G.host?'Press Start match when everyone is in.':'Waiting for the host to start.';setText('lobbyMsg',lm); - const pk=[...Net.others.keys()].filter(k=>Net.live(k)).join()+G.hostUid+JSON.stringify(rs.set)+G.host;if(hudCache.lobby!==pk){hudCache.lobby=pk;renderLobby()}} + if(G.mode==='online'&&rs&&ph==='lobby'){const n=liveIds().length;let lm; + if(rs.lr){ // a host with ready up: the count and the timer go in the ready row, which stays put while lobbyMsg shows "Copied" + lm=n<2?(Net.isPublic?'Starts by itself once 2 players are here.':'Waiting for at least one more player. Send them the invite link.'):G.host&&!Net.isPublic?'Starts 5 s after half the room is ready, or when the timer runs out. Start match starts it now.':'Starts 5 s after half the room is ready, or when the timer runs out.'; + const c=readyCount(rs),go=startAt(rs),s=Math.max(0,Math.ceil((go-now())/1000)),soon=go&&rs.rr&&go===rs.rr; + setText('rdNote',LT('{n} of {m} ready',{n:c.r,m:c.n})+(go?' · '+(soon?LT('Starting in {n}…',{n:s}):LT('Starting in {t}',{t:fmtT(s)})):''));setClass('rdNote',soon||go&&s<=5?'go':''); + const on=String(isReady(Net.uid,rs));if(hudCache.rdOn!==on){hudCache.rdOn=on;$('lobbyReady').setAttribute('aria-pressed',on)}} + else lm=rs.as?'Starting in '+Math.max(0,Math.ceil((rs.as-now())/1000))+'…':Net.isPublic?'Starts by itself once 2 players are here.':n<2?'Waiting for at least one more player. Send them the invite link.':G.host?'Press Start match when everyone is in.':'Waiting for the host to start.'; + setHidden('rdRow',!rs.lr);setText('lobbyMsg',LT(lm)); + const pk=[...Net.others.keys()].filter(k=>Net.live(k)).join()+G.hostUid+JSON.stringify(rs.set)+G.host+(rs.lr?liveIds().map(u=>isReady(u,rs)?1:0).join(''):'');if(hudCache.lobby!==pk){hudCache.lobby=pk;renderLobby()}} if(G.mode==='online'&&(ph==='end'||ph==='over')&&!$('end').hidden)setText('endMsg',ph==='over'?'Back to the lobby in '+Math.max(0,Math.ceil(left))+'…':(rs.rnProps win! const ids=[Net.uid,...[...Net.others.keys()].filter(k=>Net.live(k))]; for(const id of ids){const li=document.createElement('li'),dot=document.createElement('span'),nm=document.createElement('span'),t=document.createElement('span'); const e=ents.get(id);dot.className='dot';dot.style.background=id===Net.uid?myColor:(e?e.color:'#ccc');nm.className='nm';nm.setAttribute('data-noi18n','');nm.textContent=id===Net.uid?LT('{n} (you)',{n:myName||LT('You')}):nameOf(id);t.className='t'; - t.textContent=[id===G.hostUid?'host':'',(rs.sc&&rs.sc[id])?rs.sc[id]+' pts':''].filter(Boolean).join(' · ');li.append(dot,nm,t);ul.appendChild(li)} + t.textContent=[id===G.hostUid?'host':'',(rs.sc&&rs.sc[id])?rs.sc[id]+' pts':''].filter(Boolean).join(' · ');li.append(dot,nm,t); + if(rs.lr){const r=document.createElement('span'),on=isReady(id,rs);r.className='rd'+(on?' on':'');r.textContent=on?'✓':'';r.title=LT(on?'Ready':'Not ready');r.setAttribute('role','img');r.setAttribute('aria-label',r.title);li.append(r)} + ul.appendChild(li)} const set=rs.set||defaultSet();segSet($('setMap'),set.map);segSet($('setRounds'),set.rounds);segSet($('setHide'),set.hide);segSet($('setHunt'),set.hunt);segSet($('setRatio'),set.ratio);segSet($('setPing'),set.ping);segSet($('setPen'),set.pen);segSet($('setHp'),set.hps); $('lobby').classList.toggle('guest',!G.host);$('hostNote').textContent=G.host?'(you\'re the host)':'(host picks)'; const sb=$('startRound');sb.hidden=Net.isPublic;sb.disabled=!G.host||ids.length<2;sb.textContent=G.host?'Start match':'Host starts'; @@ -2964,7 +3016,7 @@

    Props win!

    if(Net.refs)Net.leave(); clearEnts();clearFx();loadMap(0);makeMe(Net.uid); const sp=MAP.propSpawns[Math.floor(Math.random()*MAP.propSpawns.length)];me.pos.set(sp[0]+rand(-1,1),0,sp[1]+rand(-1,1)); - Object.assign(G,{mode:'online',pmode:null,rs:null,host:false,hostUid:null,he:0,maxHe:0,lastRS:null,rsSeen:'',rid:-1,ph:'',role:'free',seenEl:{},hfSeen:{},paused:false,joinedAt:performance.now(),rsDirty:false}); + Object.assign(G,{mode:'online',pmode:null,rs:null,host:false,hostUid:null,he:0,maxHe:0,lastRS:null,rsSeen:'',rid:-1,ph:'',role:'free',seenEl:{},hfSeen:{},paused:false,joinedAt:performance.now(),rsDirty:false,myRd:0}); G.hitSeen=new Map(); try{await Net.join(room,isPublic)}catch(err){G.mode='menu';throw err} enterGame();renderLobby(); @@ -3091,7 +3143,7 @@

    Props win!

    if(c==='Escape'){if(G.paused){if(performance.now()-pauseShownAt>350)resume()}else showPause();return} if(c==='Tab'||c==='Space'||KB.actionsFor(c).length)ev.preventDefault(); keys[c]=true;if(ev.repeat)return; - if(c==='Enter'){practiceReady();return} + if(c==='Enter'){if(G.mode==='online'){if(!(ev.target&&ev.target.tagName==='BUTTON'))toggleReady()}else practiceReady();return} pressAction(c); }); addEventListener('keyup',ev=>{keys[ev.code]=false}); @@ -3180,6 +3232,7 @@

    Props win!

    buildSeg($('setMap'),[[-1,'Rotate'],...MAPS.map((m,i)=>[i,m.short])],-1,v=>hostSet('map',+v)); for(const [id,key] of [['setRounds','rounds'],['setHide','hide'],['setHunt','hunt'],['setRatio','ratio'],['setPing','ping'],['setPen','pen'],['setHp','hps']])$(id).onclick=ev=>{const b2=ev.target.closest('button');if(b2)hostSet(key,+b2.dataset.v)}; $('startRound').onclick=()=>{if(G.host&&G.rs&&G.rs.ph==='lobby'&&liveIds().length>=2)setRS(newRound(G.rs,true))}; +$('lobbyReady').onclick=toggleReady; $('lobbyMin').onclick=()=>{$('lobby').classList.toggle('min');$('lobbyMin').textContent=$('lobby').classList.contains('min')?'Show':'Hide'}; const copyInvite=msgEl=>{const url=location.origin+'/#'+Net.room,m=$(msgEl);const done=ok=>{m.textContent=ok?'Invite link copied. Your friend opens it and enters the code to join.':url};try{navigator.clipboard.writeText(url).then(()=>done(true),()=>done(false))}catch(e){done(false)}}; $('lobbyInvite').onclick=()=>copyInvite('lobbyMsg');$('copyInvite').onclick=()=>copyInvite('inviteMsg'); @@ -3281,7 +3334,7 @@

    Props win!

    // In automated browsers only: a handle for tests (advance runs the game without drawing). if(navigator.webdriver)window.__ph={clearFx,moveEnt,shapeOf,groundAt,pushOut,turnTo,rebuildDyn,dynBoxes,makeEnt,removeEnt,setLook,solidsNear,propAABB,GRAV,JUMP,STEP,tfCheck,oobAt,nearestAllowed,capFor, - get lidAt(){return MAP&&MAP.lidAt},setGfx,get gfx(){return gfx},sky,hostSet,setTouchUI,setForm,G,PT,PT_LIST,MAPS,ents,Net,onNode,get me(){return me},get MAP(){return MAP},get mapIdx(){return mapIdx},loadMap,startPractice,practiceReady,goOnline,toMenu,setRS,newRound,lobbyRS,hostTick,hostHits,roleOf,hpOf,maxHpOf, + get lidAt(){return MAP&&MAP.lidAt},setGfx,get gfx(){return gfx},sky,hostSet,setTouchUI,setForm,G,PT,PT_LIST,MAPS,ents,Net,onNode,get me(){return me},get MAP(){return MAP},get mapIdx(){return mapIdx},loadMap,startPractice,practiceReady,goOnline,toMenu,setRS,newRound,lobbyRS,hostTick,toggleReady,readyCount,startAt,hostHits,roleOf,hpOf,maxHpOf, doTransform,toggleLock,alignMe,fire,startReload,findTarget,rayWorld,camRay,cycleSpec,specTarget,showPause,resume,overlapping,keys,tAct,KB,renderer,scene,camera,step, get camYaw(){return camYaw},set camYaw(v){camYaw=v},get camPitch(){return camPitch},set camPitch(v){camPitch=v},propModel, get WD(){return WD},wardOn,wdSync,wdLoad,hunterModel,onElim,wearHeard, From cebe5071e46325ce48e3b7148c990be86629569b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 01:59:11 +0000 Subject: [PATCH 2/2] Chromaflage: ready up and a lobby timer; README for both games Same as Odd One Out: a Ready button (or Enter) for everyone in an online lobby, a 5 s countdown once at least half the room is ready, and a lobby timer (60 s in a room, 20 s public as before) that starts the round anyway. rd in each player's node, al/rr/lr in the round state, old pages still mix in. Spanish in es.js. Both games: Ready button tooltip names Enter; the ready countdown never shows more than 5. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn --- README.md | 4 +- e63334287a3deaa3/chromaflage/es.js | 5 ++ e63334287a3deaa3/chromaflage/index.html | 78 +++++++++++++++++++++---- e63334287a3deaa3/odd-one-out/es.js | 1 + e63334287a3deaa3/odd-one-out/index.html | 4 +- 5 files changed, 76 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 17d22dfe..002784f9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/coil/`: Coil (Back Room), a snake arena (one canvas, Firebase Realtime Database rooms under `rooms/cl-…`, public arenas `cl-pub-1…6`, same project and rules as Rumble Karts; invite links `#cl-`). Rooms hold 10 people and the host (whoever has been in the room longest) runs bots to fill the arena to 12, sending them in its own node (`bh` positions, `bs` skins, names and bodies). Each browser judges only its own snakes' deaths. The game loop runs from animation frames; when they stall (the tab is hidden) a 250 ms timer steps the world in 50 ms slices so a hidden host's bots keep moving for everyone (its own snake stays put, as before; browsers run the timer about once a second in a hidden tab, so the bots then reach others once a second, smoothed by netsmooth.js). **Turkey Week** (`../events.js`, November 15 to 26, 2026): food is drawn as corn kernels and cranberries (`tkFood`, two small sprites) and every snake wears a pilgrim hat seen from above (`tkHat`). Where the food is, its value and everything sent to the room are unchanged. The game reads the one Turkey Week switch on the Back Room page (see `events.js` below) once, when it loads; it has no button of its own. **Wardrobe (November 2026, captains only for now):** 74 looks, drawn in code by `wardrobe.js` beside the page: 25 colours (12 solid, 5 neon, 6 two-colour gradients, a rainbow and a flowing rainbow), 11 animal patterns, 12 design patterns and 17 object snakes (one pattern is worn at a time, and the ones marked "your colour" use the chosen colour), 6 heads, a sparkle trail and candy or coin death bursts; their names and numbers are Coil's items in `../cosmetics.js`. Nothing about it is on the page or read from storage unless `wardrobeOn()` says this player may: `COIL_PUBLIC` (the one line that opens it to everyone), a captain (`../captains.js`), or `?wardrobe=1` on localhost or in an automated browser. A captain gets a Wardrobe button under the skin picker and wears everything free; the look is saved in this browser as `coil:look` and sent to the room as `lk` in the player's own node, a short string of slot letters and item numbers (`c` colour, `a`/`d`/`o` animal, design or object pattern, `h` head, `t` trail, `b` burst; for example `c19.d7.h4`), sent only while something is worn. `lookOf` accepts only that shape (at most 27 characters); an unknown item number draws as nothing, older pages ignore `lk` and draw the player's skin, and the skin index `sk` is still sent as before. `wardrobe.js` is fetched only when the Wardrobe is open to this player or a snake in the room wears something, so for everyone else the page draws exactly as before. A look is drawing only: the same segments, radius, speed and hit area as every snake. The body keeps the same number of drawImage calls as the plain one (the shadow and outline disc every other segment, one ball per segment, the head, and one overlay tile every other segment in place of the sheen dot; patterns that follow the body turn their tile with one setTransform each), hats are one cached sprite, and every pattern keeps a bright halo and outline round the body so it never melts into the floor. Bots still wear the plain skins. It has Spanish: its words and the Wardrobe's are in `coil/es.js` (lang.js), with a Language switch on the menu and the pause screen; bot names, and Wardrobe item names from cosmetics.js, stay as they are. - `e63334287a3deaa3/showdown/`: Showdown (Back Room), no-limit Texas Hold'em for up to 8 players (Firebase Realtime Database rooms under `rooms/sd-…`, same project and rules as Rumble Karts; invite links go through the home page as `#sd-`). Everything travels through each player's own node: the dealer (the player with the newest dealer number, or with none yet, whoever has been in the room longest) runs the table and publishes it as JSON in `tb`, and seals each player's hole cards to that player's key in `hc` (ECDH P-256 + AES-GCM via Web Crypto), so the database never holds readable hole cards; players write only their own action (`ac`), sit-out (`sit`), rebuy (`rb`) and chat (`ch`). The dealer's browser does see every card, so it isn't cheat-proof against a dealer with developer tools. If the dealer drops, the next player takes over from the last table it saw and refunds the hand in progress. Bots (Easy, Normal, Hard) fill empty seats and run in the dealer's browser. Play chips only; nothing is stored between sessions except practice stats in the browser. The look is all page elements and CSS, with no pictures: the rail, felt, cards (`.cd`), chips (`.chip`) and seat plates are drawn with gradients and shadows, and the felt's weave is one small speckle tile made once in the script (`feltGrain`, which has its own random-number generator so it never touches the one the cards and bots use). `layout()` sizes and places everything; on a short, wide screen (a phone held sideways: wider than tall and at most 520 px high) it adds `.dock` to `#app`, which turns the action bar into a column on the right, shows the table message in `#dockmsg` above the buttons instead of in the middle of the table, and gives the table the space to the left. The moving parts are the deal, the card flip, winning cards lifting (the `translate` property, so it can run with the flip, which uses `transform`), chips sliding to and from the pot, and a slow halo on whoever's turn it is; all of them are switched off under `prefers-reduced-motion`. None of this is sent to other players. It has Spanish: its words are in `showdown/es.js` (lang.js), with a Language switch on the menu; the hand log and table messages still travel between players in English, and each page shows them in its own language (`SD_TR()` in es.js). Other players' hole cards only ever go into `tb` (each seat's `sh`, hand name `h` and best five `c`, plus a "shows" line in the log) at the showdown: an all-in run-out deals the rest of the board with every hand still face down, and at the showdown hands are turned over in order (whoever bet or raised last on the final betting round first, else the first player after the button), and a hand that can't win or tie any pot it's in is mucked face down instead (its action `l` becomes `Muck`, the log says it mucks, and its cards are never published). Hands that end with everyone else folding are never shown. -- `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), 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/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. **Ready up and the lobby timer:** in an online lobby every player has a Ready button (or Enter), sent as `rd` in its own node (the lobby's key, its round id + 1, so a ready from an earlier lobby never counts and nothing has to clear it), and the lobby list shows a tick by each ready name; once 2 players are in, the host starts the lobby timer (`al` in the round state: 60 s in a private room, 20 s in a public lobby as before; new joiners don't reset it, and it's cancelled if the room drops below 2 and starts afresh when it's back), and when at least half the players are ready (rounded up: 1 of 2, 2 of 3, 2 of 4, 3 of 5) a 5 s countdown (`rr`), cancelled if people un-ready or leave so it falls below half; the round starts at whichever comes first (`hostLobby`), shown as "Starting in 0:45" beside the Ready button and on the HUD clock with a tick each of the last 5 s, and the host's Start round still starts it at once. `lr: 1` in the round state says the host does this. Pages from before ready up mix in: they never send `rd`, so they count as not ready; in a public lobby the start moment is also copied to the old `as`, which old pages show and, as host, run; in a private room `as` stays 0, so an old guest sees "Waiting for the host to start." until the round begins, and with an old page as host nothing starts by itself (newer pages hide their Ready button) and its Start round works as always. The lobby card is hidden while the paint studio is open, so the HUD clock carries the countdown there; practice has no lobby and is unchanged. 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), 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. **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). 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. **Locker (November 2026, captains only for now):** skins are built but players can't see them yet. Nothing about the Locker is on the page or read from storage unless `lockerOn()` says this player may see it: the account signed in is one of the site's captains (`../captains.js`, see below), or, for testing, the page is opened with `?locker=1` on localhost or in an automated browser (remembered for that browser tab only: `sessionStorage` `driftfall:locker`; `?locker=0` forgets it; on the live site the address does nothing). A captain's answer arrives a moment after the page loads and goes away if they sign out (`lockerSync` shows or hides the button and puts the saved outfit on or takes it off; an outfit saved by anyone who may not see the Locker is left alone and the Noob is worn). Everyone else wears the Noob and has only the Face button (see Noob and drawn faces, below). To make it public, change one line: `LOCKER_PUBLIC` to `true`. With it on, the menu gets an Outfits button beside the name box (the box is moved into a row with it, so nothing below moves when it appears), which opens the Locker: a grid of the skins (each card's picture is drawn once, from the skin's own geometry, by `pics`) and your character turning in front of the island (drag to turn it; it uses the game's one renderer, with the camera moved to a character standing at `SPOT` and the picture shifted into the free part of the screen by a view offset; on an upright phone the character is on top and the cards scroll underneath). The choice is saved as `driftfall:skin` (the skin's id) and worn in Practice and online; while the Locker is on, the practice bots wear skins too, so each can be seen in a match. `OUTFITS` holds Standard and 24 skins. First twelve built to the contributor's November 2026 sketches in the sketches' own colours (they don't use the player's colour): Pilgrim, Turkey Person, Noob, Feathercap, Pilot, Golden, Fishface, Army Soldier, Airline Pilot, Soccer Player (Red/Blue), Soccer Player (All Red), Clown. Then twelve that take the player's colour for the main garment or the trim: Hooded Jacket, Racing Suit, Overalls, Toy Knight, Space Suit, Raincoat, Chef, Diver, Robot, Varsity Jacket, Builder, Wizard. Bare skin (face, hands, the footballers' arms and knees) is the player's own tone, except Noob (yellow), Golden (gold) and Fishface (orange), whose colour is the costume. A skin is a different set of boxes on the same body (`fitBase` gives every one the same torso, head, arms and hands, which `bodyRig` then shapes and gives bones: see Body and animation), built by `bodyGeo(hex, skin, fit)` into the same one merged mesh with vertex colours, so there are no textures and no extra draw calls for a body: stripes, the Golden sheen and camouflage are painted square by square on rounded boxes (`bagPaint`, `bagCamo`), and shirt numbers, buttons, feathers and the tail fan are small boxes (`bagTurn` for tilted ones). Legs: the standard legs are untouched (`legIM`); skins that set `legs` are drawn by one more instanced mesh for all of them together (`fitLegIM`: one extra draw call for the whole view while anyone in view wears one, none otherwise), whose leg has the standard leg's shape cut into ten bands (`fitLegGeo`) and takes four colours, a shoe colour and a pattern per leg (`legSpec`: kit with shorts, bare knee, sock top and a hoop; two-part for boots or the turkey's orange shins; spots; camouflage), read in the shader of its own copy of the material (`FLMAT`). Triangles per character, legs included: standard 3,988 (4,192 with the pilgrim hat); skins 2,740 to 3,976 (3,328 to 4,156 with the hat), so never more than the standard (counted again after the elbows and knees: see Body and animation). Fairness: the collision box and the hit areas never look at the model, so they are identical for every skin, and every skin has the same body, height to the top of the head and pose. What differs is only the look, and where the sketches and strict sameness pull apart the sketches won: the twelve sketch skins carry no backpack, so from the side the outline of the bare-backed ones is 85 to 98% of the standard's (bare-headed ones are 6 cm shorter than the standard cap); Turkey Person's tail fan reaches about 18 cm past each shoulder (it is not a hit area); Pilgrim, Pilot, Airline Pilot and the two football kits are darker than the darkest standard colour (average brightness 0.26 to 0.34 against 0.35); Army Soldier is green camouflage, shifted a little bluer than the sketch so it is not the grass's own green, but it is still the hardest to spot on grass. The second twelve are held to the standard: as wide and deep (each has something on its back as deep as the backpack; since November 2026 everything on every back, the standard's and the Noob's packs included, is pulled in by the same amount, see Body and animation), 0 to 15% larger in outline and never smaller, at least 0.98 of its brightness, no ground-coloured parts. During an event the event's hat (`eventHat`, Turkey Week's pilgrim hat) takes the place of every skin's own headwear, helmets, caps and the clown's wig included, so everyone keeps the same outline; costume heads stay (Turkey Person's hood and beak, Fishface's head), with the hat on top. A later event's headwear (the game has no winter look yet) goes in `eventHat` and then works for every skin. Online, a skin travels as one small number in the player's own node, `sk` (its place in `OUTFITS`; left out for the Noob). A page from before the Locker ignores it and draws the standard body; a page that gets no `sk`, or one it doesn't know, draws the Noob (`fitOf`); the map version was not raised, so old and new pages still share matches. A new page draws another player's skin whether or not its own Locker is on. To add a skin: add an entry to `OUTFITS` with `id`, `name`, `body(B, c)`, optionally `hat(B, c)`, `legs` and `skin`; add only at the END and never reorder or remove one, because its place is the number that is sent (`NOOB` is found by its id, but pages already out there read the numbers). Keep it on `fitBase`, at or under 3,988 triangles with its legs (`R` is 192, `L` 48, `X` 12; legs 1,024 a pair, outfit or standard), and away from the ground's colours. @@ -37,7 +37,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `e63334287a3deaa3/spire/`: Spire (Back Room), an obby-style parkour race up a tower stacked from random sections (Three.js, Firebase Realtime Database rooms under `rooms/tw-…`, same project and rules as Rumble Karts; Quick match uses `rooms/tw-pub-1` to `tw-pub-4`; invite links go through the home page as `#tw-`; rooms hold up to 12). Everything that isn't drawing lives between the `// ==CORE==` and `// ==/CORE==` markers in the page: movement (`PHYS`, `simStep`), parts (upright boxes and cylinders, each optionally moving by `line`, `spin` or `orbit`, timed, crumbling, lethal, bouncy, a conveyor, a climbable truss, `ice` (on the ground you speed up at `ICE_ACC` and slow at `ICE_DEC`, so you slide), a launch pad (`boost`: landing or stepping on it sets your velocity to that vector, and the take-off speed that caps air control is measured again from it) or a wind zone (`zone: 'wind'` with a `wind` vector, usually timed: while it's on it carries you like a conveyor, in the air too)), the section library (`MODS`), towers (`buildTower`), the obby (`buildObby`, `WORLDS`) and the checking bot; it has no DOM or Three.js in it, so a test can run it on its own. Physics is a fixed 120 Hz step with the player as an upright cylinder; moving parts are placed by time alone, so every player who shares the round clock sees the same tower. A jump reaches 3.37 (3.67 counting the pop onto a ledge just above your feet) and you run at 7.5. In the air the stick only nudges you (`airControl`): measured against the way you're flying, it speeds you up (`AIR_ACC`, but never past your take-off speed, or the walk speed if that was slower), turns you (`AIR_TURN`) and slows you (`AIR_BRAKE`), so holding back stops a running jump instead of turning you round, and holding sideways for a whole jump moves you about 2.3; from a standing jump the stick gets the full `AIR_ACC`. Sections keep the step from one route part to the one after next above 3.67 (a big jump can't skip a part), keep beams longer than a running jump, and make hazards too tall or too fast to simply hop. When changing a section, also try running jumps (with the real `simStep`) from each part of its route to every later one, to make sure none can be skipped. A section can offer a second way through: Fork in the Road has a slow lift and a gold shortcut (a narrow beam through a laser, a truss and two pillars, with a SHORTCUT sign, from a part's `sign`); its `build` takes a fourth argument `alt` that routes the bot through the shortcut, and `verifyModule(id, d, mir, t0, seed, alt)` checks that way too. Each section in `MODS` is built in its own frame: it starts on the 4 × 4 pad centred at (0, 0, 8) and must end with `B.exit(H)`, its exit pad at (0, H, -8), staying inside radius 12.5 and above y = 0. Towers are versioned so everyone in a room builds the same one: `towerPlan(seed, n, easy, v)` with `v` 1 is the original 19 sections in the original order (kept exactly, for a host on an older copy of the page), and `v` 2 (`TOWER_V`) adds Gust Gaps, Ice Steps, Launch Pads and Fork in the Road (marked `v: 2` in `MODS`) and climbs steadily: each slot takes the unused section whose difficulty is nearest a target rising from 1.4 to 4 (with a little chance mixed in), and the tightness `d` rises from about 0.12 to 0.72. Towers turn every other section 180° and may mirror any, and between sections there is a porch, a truss and a landing 5.5 higher (`RISE`), more than a jump plus a body (5.37), so nothing you can stand on in one section lets you reach the next one's low parts. Every section also lists a route for the bot (`B.j`, `B.w`, `B.jon`): before each jump the bot simulates it with the real `simStep` and only jumps when it lands (in the air it asks for just the speed that brings it down over the target, `aimAir`, as a player who commits to a jump would), and it waits or hops past hazards, so a route that completes proves the section can be beaten with the real movement numbers. Each landing between sections is also checkpoint `k` (`cp` on the part, its spot in `W.cps[k]`). Towers can have checkpoints (on your own, the Checkpoints switch on the menu, saved as `spire:cpOn`, on by default; online, the host's Checkpoints option, `cp` in the round): then reaching a landing saves your place (a mint landing, a fanfare and a mint mark on the height bar), anything lethal or R puts you back on it, and dropping more than 4 below it counts as a fall and does the same. Without checkpoints, red sends you to the bottom and a fall just lands you lower, as before. Either way the first time you reach each landing the feed shows your split time, and the fastest-tower best counts both (a clean run is just as quick either way). Coins float over two spots on each section's route (the same ones for everyone in a room, picked from the tower's seed): each one you pass through is one coin, picked up in the physics step. When adding or changing a section, run the bot over it at several difficulties, mirrored and not, and at several start times, and over whole towers (`verifyModule`, `runBot`; the page exposes them as `window.__tw` in automated browsers). Online, like Chromaflage, everything travels through each player's own node at `rooms/tw-/players/`, which must always hold `n, c, x, z, h, ts`: position and animation (`y`, `a`), the round the player is in (`r`) and a finish claim (`f`, `round:milliseconds`). The host (newest host number `he`, else whoever has been in the room longest, chosen only once the room's players have loaded) publishes the round as JSON in its own `rs`: `{id, seed, ph, t0, dur, n, ez, ff, rf, fin, ne, cp, v}`, where `seed` builds the tower (with tower version `v`; a round without `v` is version 1 and one without `cp` has no checkpoints, so a host on an older page still works), `t0` is the server time it starts, `ff`/`rf` mark the first finish (from then the clock runs at double speed) and `fin` is the finish order. Other players check the round before using it (`cleanRS`: finite times within a day of now, a finish list of `[uid, ms, name]`, names cleaned), so a broken host can't freeze their page. The host takes finish claims at their word, so it isn't cheat-proof. If the host leaves, the next player carries on from the last round it saw. 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. Nothing about a round is kept online after it ends. Saved only in the browser, under `spire:` keys: name, colour, hat (`spire:hat`), checkpoints on your own (`spire:cpOn`), settings, the host's round options (now with `cp`), and a profile (`spire:profile`: coins, XP, towers climbed, best times, falls, the furthest obby stage, best practice times and the hats bought with coins, `hats`), `spire:awarded` (the last online round that paid out, so rejoining it doesn't pay twice) and `spire:climbed` (set after the first truss climb; until then a tip shows at the foot of a truss). Hats (`HATS`): a cap, party hat, beanie, top hat, crown and traffic cone unlock with your level, and a halo, Viking helmet, propeller cap and wizard hat cost 100 to 500 coins (the menu's Hat row; a locked one says what it needs, or offers to buy it). Your hat travels online as `k` on your node. In a tower the sky runs on toward sunset as the camera climbs (`skyAt`); online a place pill beside the clock shows where you are (finishers in order, then everyone else by height), and the height bar has a strip in each section's colour and a gold ring on the leader. Climbers squash and stretch as they jump and land, and flying fast (a launch pad, a long fall) brings in speed lines and widens the view a little. Keys use `keybinds.js` (`keybinds:spire`). V (the `view` action) switches between the camera behind you and first person, as does scrolling all the way in or out; in first person your body moves to layer 1, which only the sun's shadow camera sees, so it's hidden but still casts its shadow, and spectating always uses the camera behind the climber you watch. The choice is saved as `spire:view`. On computers the mouse aims: clicking the game while playing captures it (Pointer Lock), so moving it turns the camera with no button held (0.0026 radians per pixel times Sensitivity, pitch kept to the same limits as before), and a crosshair replaces the cursor (a dot in first person). While aiming in third person the camera sits over your right shoulder and you turn to face where you aim as you move; Shift lock also keeps you facing it standing still. Esc, the pause menu, results, the Controls panel, the menus and spectating all let go of the mouse (only Esc and losing it some other way bring up the pause menu), and a small "Click to aim" shows while it's free during play; you can still move then. If the browser refuses the lock three times running (Chrome refuses a request within about a second of Esc), the hint goes and the old drag-to-look carries on, but every click still tries again. Settings and the pause menu have Sensitivity (`spire:sens`, shared with touch) and Invert Y (`spire:invY`, also for touch, off by default). On touch screens the page adds `touch` to `body` for a move stick, a Jump button, an eye button for first person, drag to look and pinch to zoom, with the Controls buttons hidden. Drawing: parts that never change are merged into one mesh per look and per four sections (vertex colours; the bevelled edges and side shading come from a per-face `fe` attribute that `boxGeo`/`cylGeo` add), while moving, blinking and crumbling parts and checkpoints keep their own meshes; lethal parts are unlit neon with a glow. Scenery (hills, trees, mountains, clouds, the obby's islands) is one mesh each, the sky is one shader, and dust, sparkles and confetti are two point buffers. Graphics Pretty (`spire:gfx` `high`, the default on computers) adds soft sun shadows that follow you, a second cloud layer and more particles; Fast (`low`) is the default on phones. Parties can launch it (its row in `GAMES` in `party.js`, `{ k: 'tw', n: 'Spire', d: 'spire', max: 12, nk: 'spire:name' }`), the Online panel offers room invites to it, and it's in the feedback box's game list. It was archived for a while (October 2026) and brought back with checkpoints, the new sections, coins and hats. **Spanish:** it loads `../lang.js` and its own words in `spire/es.js` (sections, worlds, hats and the made-up tower names, which es.js builds from the two word lists, so keep it in step if those lists change); canvas signs use `T()`, and there is an EN | ES switch next to Controls in Settings and the pause card. - `e63334287a3deaa3/turbo-trail/`: Turbo Trail (Back Room), a speedrun obby: 25 short levels (about 6 to 12 seconds each at gold pace) in five worlds of five, Candy Coast, Neon City, Lava Forge, Frost Peaks and Star Drift, each with its own sky, sea, palette and scenery (Three.js, Firebase Realtime Database race rooms under `rooms/sr-…`, same project and rules as Rumble Karts; Quick match uses `rooms/sr-pub-1` to `sr-pub-4`; invite links go through the home page as `#sr-`; rooms hold up to 12). Everything that isn't drawing lives between the `// ==CORE==` and `// ==/CORE==` markers in the page, with no DOM or Three.js in it, so a Node script can run it on its own: movement (`PHYS`, `simStep`), parts (upright boxes and cylinders, optionally moving by `line`, `spin` or `orbit`, blinking (`timed`), crumbling, lethal, a jump pad (`bounce`), a climbing wall (`wj`), ice, or a zone: `speed` pads, `lowg` low gravity and the `portal`), the level builder (`Course`), the levels (`WORLDS`, `LEVELS`, `buildLevel`) and the checking bot. Physics is a fixed 120 Hz step with the runner as an upright cylinder (radius 0.42, height 2), so it plays the same at any frame rate (a slow frame runs several steps; nothing moves more than 0.5 in one step, and the thinnest solid or lethal part is 0.25), and parts are found through an x/z grid of 10 × 10 cells. Running speed is 12.5 with snappy acceleration, a jump rises 3.24 and carries about 9 at full speed, with 0.12 s of coyote time and a 0.14 s jump buffer; in the air the stick speeds you up, turns you and brakes you (`airControl`) but never past your take-off speed. Speed pads push you to 27 along their arrows (the extra speed fades on the ground in about a second and stays in the air), jump pads throw you 7.8 up, and touching a striped climbing wall in the air lets you jump again off it (up 16.5, 8 away from the wall, keeping your speed along it; you also slide down it slowly). Levels are written with the `Course` cursor (`start`, `run`, `gap`, `stones`, `blocks`, `pad`, `bounce`, `bars`, `stairs`, `movers`, `pistons`, `spinner`, `lasers`, `wallrun`, `chimney`, `crumble`, `blinks`, `slalom`, `lowg`, `orbit`, `drop`, `turn`, `portal`); each piece also adds the checking bot's route. The bot plays with the real `simStep`: before each jump it simulates the jump and only takes it if it lands, it hops or waits for hazards, and it pushes off climbing walls; when changing a level, run the bot over it at several start times (moving parts depend on the clock) and at the top upgrade speed (`runBot(buildLevel(i), t0, 90, run)`). The medal times in `MEDALS` ([gold, silver, bronze] per level) come from the bot: gold is its median time over several start times plus 4% and 0.25 s, rounded up to a quarter second, silver is 1.3 × gold and bronze 1.75 × gold, so they need re-working out if a level changes. A level's clock starts with your first move and a fall, a lethal part or R puts you back at the level's start with the clock reset; in a Full run (all 25 on one clock, starting with your first move on 1-1) the clock keeps running through falls and T starts the run over. After each portal the split (your full-run time there against your best run's, or the level time against your best) shows green when ahead and red when behind. Stars: 1, 2 or 3 for a bronze, silver or gold best; they unlock speed upgrades (`SPEEDS`: +4%, +8%, +12% at 12, 30 and 50 stars, chosen in the Garage and used online too) and trails (`TRAILS`, at 3 to 75 stars; a camera-facing ribbon of the last 0.45 s, one draw call). Saved only in the browser under `turbotrail:` keys: `name` (a plain string, which party.js puts back after a party launch), `color`, settings (`sens`, `invY`, `follow`, `ghost`, `vol`, `mus`, `gfx`, `zoom`, `slock`, `hostC`, `room`), `prog` (`{reached, best: [25 times], run: {t, sp: [25 splits]}, speed, trail, clears, falls, runs}`), `ghost:` (your best run on that level, 20 samples a second as comma-separated whole tenths of x, y, z and hundredths of the facing, replayed as a see-through runner when Best ghost is on) and `awarded` (the last race win counted). Online, like Spire, everything travels through each runner's own node `rooms/sr-/players/`, which must always hold `n, c, x, z, h, ts`: also `y`, `a` (animation, 5 while respawning), `l` (which level of the course you're on), `r` (the race the position belongs to), `tr` (trail), `j` (join time) and `f` (a finish claim, `race:milliseconds`). The host (newest host number `he`, else whoever has been in the room longest, chosen once the room has loaded) publishes the race as JSON in its own `rs`: `{id, ph: 'race' | 'inter', t0, cs, nm, fin, ff, ne}`, where `cs` is the course (a random world's five levels, five from all over, or all 25: the host's Course option in the pause menu, saved as `turbotrail:hostC`), `t0` the server time it starts (a 5 s countdown), `fin` the finish order `[uid, ms, name]` and `ff` the first finish; the race ends when everyone live has finished, 30 s after the first finish, or after 45 s a level plus 20 s, then results show for 9 s and the next race starts. Guests clean the host's race before using it (`cleanRS`), so a broken host can't freeze them. The race clock is the simulation clock, so every runner sees the moving parts in the same places; other runners are see-through ghosts (with their trails) drawn from a short history of their updates with `../netsmooth.js`, only while they're on the same level as you, and a list on the right shows everyone's progress. The host takes finish claims at their word, so it isn't cheat-proof. A background tab keeps its node fresh (and, for the host, the race moving) with a 1 s timer. Camera: behind you, pulled in so it never ends up inside a wall, easing round to the way you're running while you hold forward (not while strafing, and not for 0.7 s after you turn it yourself; Settings → Camera: Free turns that off), and a little wider at high speed. On computers clicking the game captures the mouse (Pointer Lock) to look around; Esc frees it. Keys are rebindable with `keybinds.js` (`keybinds:turbo-trail`). On touch screens the page adds `touch` to `body`: a run stick, Jump, a restart button, and drag anywhere else to look; Fast graphics by default. Drawing: parts that never change are merged into one mesh per look (bevelled edges from a per-face `fe` attribute, as in Spire), moving, blinking and crumbling parts keep their own meshes, scenery is one mesh per level, the sky one shader and particles one point buffer, so a level is about 20 to 30 draw calls; Pretty graphics adds sun shadows. Leaderboards hooks: `BackRoomStats.min('obby', seconds)` for a finished full run (`obby` is already in stats.js's `LOWER` list; stats are kept per game folder, so it doesn't mix with Spire's), `max('stars', total)`, `add('levels', 1)` at every portal and `add('wins', 1)` for winning a race against at least one other runner. Ads follow the `AD_SLOT` pattern (empty). A test hook (`window.__sr`, with `advance(seconds)`, `autopilot(on)` and `buildLevel`/`runBot`) exists only when `navigator.webdriver` is set. **Spanish:** it loads `../lang.js` and its own words in `turbo-trail/es.js` (level names stay English; signs drawn on canvases use `T()` and follow the language when the level is built), with an EN | ES switch next to Controls in the menu and pause card. - `e63334287a3deaa3/escapade/`: Escapade (Back Room), a 3D escape-room obby (Three.js, Firebase Realtime Database rooms under `rooms/er-…`, same project and rules as Rumble Karts; Quick match uses `rooms/er-pub-1` to `er-pub-4`; invite links go through the home page as `#er-`; rooms hold up to 12). **Worlds:** six worlds of eight levels (48), each level a themed set of rooms with one way out, harder world by world. World 1, Breakout (Detention, Lab Rats, Hot Kitchen, Toy Box, Down the Drain, The Vault, Orbit Station, The Warden), is built into `index.html`, unchanged. World 2, Lost and Found (Overdue (a library), Clockwork (a clock tower), Cold Feet (an ice cave), Lost Temple, Mirror Manor (a haunted house), Stage Fright (a theatre), Gale Point (a lighthouse in a storm) and After Hours (a museum, the world's finale)), is `escapade/worlds/w2.js`; its first five were levels 9–13 before worlds came, with the same ids. World 3, Deep Down (Cave-In (an old mine), Deep End (a flooded cave), Off the Rails (an underground railway), High Water (a pump station), Fish Tank (an aquarium), Crystal Clear (a crystal cavern), Hull Breach (a sunken ship) and Hot Core (a volcano, the world's finale)), is `escapade/worlds/w3.js`; it added water you swim in (jump strokes up; an Air bar while your head is under), minecarts on rails (`rail`), water and lava that rise (`rise`, started by a flag or a trigger zone) and dark rooms you need the lantern for (`B.dark`, item `lamp`). World 4, Full Power (Assembly Line (a toy factory), Sorting Day (a recycling plant), Spin Cycle (a power station), Growing Pains (a greenhouse), Hot Swap (a data centre), Night Shift (an observatory), Spare Parts (a robot lab) and Meltdown (a power plant, the finale)), is `escapade/worlds/w4.js`; it added belts and fans a lever turns round (`rev`), pressure plates you stand on (`B.hold`), presses and piston walls that crush (`B.crusher`, `B.press`) and red, green and yellow keycards with their doors (`B.cardDoor`). World 5, Sky High (Hot Air (a balloon festival), Big Top (a flying circus), Thunderclap (a skyscraper in a storm), Sky Deck (a revolving restaurant), Zeppelin (an airship), Cloud Keep (a castle in the clouds), Orbiter (a satellite) and Eye of the Storm (a weather station in a hurricane, the finale)), is `escapade/worlds/w5.js`; it added updrafts (`B.lift`), cannons you fire yourself from (`B.cannon`, a `{w5: 'cannon'}` button), lightning on a timer with rods that power gates (`B.bolt`), groups of parts that turn a step at a press (`B.turning`, `B.turnBtn`, `B.align`) and the `clouds` scenery. World 6, The Last Door (One Way Home (a labyrinth with one-way flaps), Sun and Sand (a pyramid), Siege Works (a fortress), Dragon's Wake (a dragon's keep), Borrowed Time (a vault of clocks), Upside Dream (a dream), Long Climb (a climb over a molten sea) and The Last Door (the Keeper, a three-phase boss, and the end of the game)), is `escapade/worlds/w6.js`; it added one-way flaps (`oneway: [nx, nz]`, `B.oneway`), rings of fire you jump (shape `ring`, move `pulse`, `B.ring`) and the shadow (`B.shadow` zones: a chaser that walks your own path a few seconds behind you); escaping its last level shows "You beat Escapade!". Each of Worlds 3–6 keeps its shared code in its own marked blocks in `index.html` (`// ---- World core additions ----` inside the CORE, `// ---- World drawing additions ----` outside it) with one-line hooks ending `// W hook`; each does nothing unless a level uses it, and `worlds/README.md` section 13 lists every helper. Worlds 3–6 are `needs: 3` (`CORE_VER` 3). Each world after the first is its own file, `worlds/w.js`, loaded only when it's needed (picked in the menus, the level an online room is playing, or the next world when you reach a world's last level), so the page stays small; a world file only describes levels (`Escapade.world({n, needs, levels})`), and every shared helper, puzzle part and the bot live in `index.html`. **`escapade/worlds/README.md` is the guide for building a world**: the API, every helper and puzzle with its parameters, seeds, checkpoints, stars, the bot route, the tests a level must pass, a performance budget, a difficulty guide and the mechanics already used. The `WORLDS` list in `index.html` (one line per world: name, colour, blurb and its eight level ids) is what the menus show before a file loads and what progress counts by. `CORE_VER` goes up when the page gains something world files can use; a file says which one it needs, and a page too old for it (or one that can't load it) shows an "Update needed, reload" notice instead of breaking. Everything that isn't drawing lives between the `// ==CORE==` and `// ==/CORE==` markers: movement (`PHYS`, `simStep`, Spire's numbers: jump 3.37, 3.67 with the ledge pop, run 7.5, fixed 120 Hz step, so the frame rate never changes the physics), parts (upright boxes and cylinders, filed in a 6 × 6 xz grid for collision; moving by `line`, `spin` or `orbit`; timed, crumbling, lethal, bouncy, conveyors, ladders, low-gravity zones; and for levels 9–13: `ice` (slippery: you speed up and stop slowly, `PHYS.ICE_ACC`/`ICE_DEC`), the move types `swing` (a pendulum: platforms and blades that stay level, hanging `len` below a pivot) and `roll` (one way at a steady speed, then round again: the temple's boulder), ladders (trusses) that move and carry you while you hang on (stick off = hang, stick into it = climb), `tp` portals (`[x, y, z, yaw]`: where they send you; put the arrival point a little above the floor), zones `cold` (you freeze after `PHYS.COLD` seconds in it, shown as a Warmth bar) and `warm` (a fire thaws you), and `slide` crates (one shove and they slide until something stops them); and for World 2's last three: zones `wind` (`wind: [vx, vz]`, blows you along on the ground and in the air, in gusts when `timed`; white streaks show it, fainter just before a gust; the bot leans into it), the lever button `{toggle}` (flips a flag on and off, for scenery that swaps with `onIf`/`offIf`) and `B.all(flags, set)` (a flag that comes on once all of its flags are: the museum's vault), plus level options `sea` (a molten sea to the horizon instead of the lawn) and `msgs`/`unlock` (a level's own feed messages and Unlocked! banners)), the puzzle parts and `logicStep`/`useBtn`/`tryCode`, the level library (`LEVELS`, each with a `par` target time and a `build` that also writes the checking bot's route) and the bot; it has no DOM or Three.js in it, so a Node test can run it on its own. **Puzzles are flags** in the level's state `W.st.f`: a part with `door: 'flag'` is solid until the flag is on (a number means "on until that time": timed gates); `onIf`/`offIf` make a part exist only while a flag is on/off (the space bridge, the Warden's arms); `lock: 'item'` opens a door when you come near carrying the item; `item` parts are pickups (`key`, `card`, `fuse`, `gem`); `btn` parts are used with E / the USE button: `{set}` (a button), `{timed, dur}` (a valve), `{seq, sym}` (recipe buttons, pressed in the order `W.seqs[g].order`), `{pad}` (a keypad; the code is `W.codes[k]`, four digits from the level's seed), `{need, then}` (a fuse box), `{dial, key, n}` (turns one hand of the clock: `W.dials[g]` holds the target time, from the seed; all of a group's dials on target sets its flag), `{mirror}` (turns a mirror a quarter; `beamTrace` follows the moonbeam in `W.beams[g]` across the floor, and the beam reaching its target sets the flag); `plate` parts latch a pushed crate (`push`, kept inside `lim`, pushed along one axis at a time) and set their flag; `step` parts (`{seq, sym}`, the temple's stones) count when you land on them, in the order `W.seqs[g].order` (the mural shows it). The library's code is `W.codes.lib`, its digits shown on four coloured books in the order `W.books.lib`; the manor's right mirror is the colour `W.rose` (from the seed, like every other clue). Walls are 10 tall (22 in the low-gravity bay) so nothing standable gets you over them. Each level keeps the puzzle in its own copy for every player: there are no shared doors, so nobody can open or block anything for anyone else. **Stars**, saved in this browser under `escapade:prof` (`{best: {levelId: seconds}, st: {levelId: bits}, esc, deaths}`; bits 1 escaped, 2 beat `par`, 4 found the gem; the gem counts once found in any escaped run), by level id as always, so saves from before worlds came load as they were (8 escaped shows World 1 done and World 2 open; 13 shows World 2's first five done). The menus: Play carries on from the first level you haven't escaped; Worlds shows a card per world (name, stars of 24, how many escaped, locked or coming soon), then that world's eight levels. A level opens when you escape the one before it in its world; a world opens when you escape the last level of the one before it (or any of its own levels, say online). The menu counts escapes of 48 and stars of 144. Death (touching anything red and glowing, or falling) respawns you at your last checkpoint after 0.6 s; what you found and opened stays, crates not on their plate go home, crumbled tiles come back and timed gates shut (`softReset`). On your own the clock stops while paused or while the keypad is open. **Online**: each player writes only their own node `rooms/er-/players/`: `n, c, x, z, h, ts` as the shared rules require, plus `y`, `a` (animation), `j` (join time), `rr` (the round you're playing), `f` (your finish, `round:ms:server time`) and, from the room's leader only, `lr`/`ll`/`lt` (round number, level, start time). The leader is the live player who joined first (`Net.leader`); everyone else follows the leader's round, loading that level with a seed made from the round (so codes and recipes match for everyone) and running moving parts from `lt`, so all players see the same moving platforms. Late arrivals' own clocks start when they arrive. When everyone in the room is out (6 s later), or two minutes after the first escape, the leader starts the next level; the leader can also pick a level from the pause menu. If the leader leaves, the next one carries on with the same round. Other players are drawn with `../netsmooth.js` and only while they're in your round. Every value read from another node is checked (`onNode`). Each node also has `v`, its page's `CORE_VER`. The leader can pick any level in the worlds and levels it has opened itself (pause menu, Pick the room's level); everyone else loads that level's world file when they see the round (the round starts 4.5 s later, and a late loader's clock starts when it arrives), and a page that doesn't know the level shows the update notice. Pages from before worlds came (no `v`) only know levels 1–8 and simply don't follow a later level: the room list says they need to reload and the leader's feed names them. Keys are rebindable through `keybinds.js` (`keybinds:escapade`, actions `forward`, `back`, `left`, `right`, `jump`, `use`, `shiftLock`, `view`, `zoomIn`, `zoomOut`, `reset`). Touch: stick, JUMP, USE (green when something can be used), drag to look, pinch to zoom; shown only on touch screens. Other saved settings: `escapade:` `name`, `color`, `room`, `sens`, `invY`, `vol`, `mus`, `gfx`, `view`, `zoom`, `slock`. Leaderboards hooks: `BackRoomStats.add('escapes', 1)`, `max('cleared', n)` (levels escaped, up to 48), `max('stars', n)` (up to 144), `min('total', seconds)` (World 1's best total: the sum of its eight best times once they all have one, as before worlds came, so totals already on the board still compare; the menu calls it "World 1 total") and `min('total-w', seconds)` for each later world (`total-w2` … `total-w6` are in `stats.js`'s `LOWER`; the board has a row for each world). Ads follow the `AD_SLOT` pattern (empty). A test hook (`window.__er`, with `advance`, `frames`, `autopilot`, `depth`, `ensureWorld`) exists only when `navigator.webdriver` is set. **When changing a level**, keep the route in its `build` working and re-run the bot on it at several start times, and check that every puzzle door is still needed: with one door kept shut and all the others open, running, jumping and running jumps from everywhere reachable must not reach the exit (the checks used for this branch ran exactly that on all eight levels; levels 9–13 were checked the same way, with the search keeping the whole player state so rides on moving ladders count, and with each portal taken away in turn: the manor's right mirror and its last mirror are needed; World 2's last three too, with levers as part of the search: the theatre can't be crossed with its levers left either way, and its stage door, the lighthouse's beacon and the museum's vault and exit doors are all needed). Worlds 3–6 were checked the same way: the bot from the spawn and from every checkpoint at several seeds and start times, the search with each gate shut in turn (extended to swim, ride carts, carry keys and turn the turning rooms), random runners for clipping, draw calls, phones and an online room; the merged page still plays Worlds 1 and 2 exactly as before (same parts, codes and bot runs). The checking bot has route steps for the new things: `ladder` (a plan saying wait, grab, hang or climb), `dial`, `tp`, `kick` (a sliding crate) and `steps` (stepping stones, by way of a hub platform). **Spanish:** it loads `../lang.js` and its own words for the page and all six worlds in `escapade/es.js` (a new level's signs and messages need their Spanish added there, or they show in English); level and world names and the EXIT sign stay English. Every canvas made by `cvs()` passes its text through `TX()` while the language is Spanish, so the world files need no changes, and compass dials show N E S O. The puzzles are codes, colours, clocks and pictures, not English words, so none is English-only. EN | ES switch next to Controls. -- `e63334287a3deaa3/odd-one-out/`: Odd One Out (Back Room), Props vs Hunters (prop hunt) for up to 16 players (Three.js, Firebase Realtime Database rooms under `rooms/ph-…`, same project and rules as Rumble Karts; Quick match uses `rooms/ph-pub-1` to `ph-pub-4`; invite links go through the home page as `#ph-`). Props aim at an object and turn into an exact copy of it; hunters wait in a closed room during the hide time, then hunt with a hitscan rifle, and a shot that hits a real object is free by default (the host can switch a 3 or 5 HP penalty on in the lobby: `pen` in the settings; a penalty saved by an older page is ignored unless the host picked it again, `oddone-hostpen`). Props move by size, the smaller the slower: from 3.0 m a second for a cup through about 3.7 for a cardboard box and 3.9 for a bench to 4.3 for a sofa (`speed` where each object type is defined: 3.9 + 0.55 × log10(volume / 0.3), kept between 3.0 and 4.4; it used to be the other way round; the hunter runs at 5.2), so the hard-to-spot small ones can't also outrun anyone; health also goes by size (40 to 200) unless the host sets All 100. A match is 3 to 10 rounds and the hunters are picked so everyone takes turns (`newRound`, by how often each player has hunted, `hn`). Every object you can turn into is a type in `buildProps` (`defProp(id, name, parts)`, where parts are plain Three.js shapes merged into one geometry per material, with the origin in the middle of the base and the front facing +z); a map draws its copies of a type as instanced meshes (`buildInstances`) and a disguised player draws the very same geometries and materials (`propModel`), so the two can't be told apart, and both use the type's own box for collisions and shots. Health scales with the type's size (40 to 200) unless the host picks All 100. To add a type, add a `defProp` line (and `{elig: false}` for things players shouldn't turn into); to add a map, write a `build…` function with the `Builder` helpers (`box` for walls and fixed furniture, `at` for turned furniture, `place(id, x, z, yaw, y)` for turnable objects, `kit` for walls with doors, floors, ceilings and lights, `hunterRoom` for the waiting room outside the map) and add it to `MAPS`; keep every placed object where a player can walk up to it. Like Chromaflage, everything travels through each player's own node at `rooms/ph-/players/`, because the shared rules expect `n, c, x, z, h, ts` there and refuse other paths for new prefixes: position and look (`y`, `p` aim pitch, `d` the type you've turned into), the last shot (`sh`, for tracers), running hit totals for the round (`hd`: `round|uid:hits,…|hits on real objects|session`, where the session is when that browser joined, so a reload starts the totals again) and, from the host, the round state as JSON in `rs` with host number `he`. The host (newest host number, else whoever has been in the room longest, and only once the room's players have loaded) runs the phases (`lobby`, `hide`, `hunt`, `end`, `over`) and works out health from the hit totals, checking them loosely (the shooter must be a living hunter, the target a living prop within 90 m, and no more hits than the rifle could fire); if it leaves, the next player carries on from the last round state it saw and counts the totals it can already see as done. Each browser reports its own hits, so it isn't cheat-proof. Anything read from another player's node is untrusted: a round state is rebuilt by `sanitizeRS` (only the fields the page uses, numbers clamped, player and prop ids checked; match settings kept in range by `cleanSet`), so a new field in the round state has to be added there too, and anything from a node that goes into the page as HTML must be escaped (`esc`) or turned into a number first. The round state goes out whole every time it changes (1-2 KB with 16 players) and during a hunt it changes with every hit, so the host coalesces hit-driven changes (health `hf`, eliminations `el`, finds `k`) to at most 4 publishes a second (`Net.rsDue`; a new phase or round goes straight away); the shape of `rs` is unchanged, so old and new hosts and guests mix freely. A tab in the background keeps its node fresh (and, if it's the host, the round moving) with a one-second timer; a player whose page stops altogether stops counting after 12 s but stays drawn where it was for up to a minute. Sounds a hiding prop makes go through `propSfx`, which keeps them from hunters in the waiting room. Pings are worked out on every screen from the hunt's start time (every 10–30 s, every 10 s in the last minute) and play from each prop's position. Points: 100 per prop found, 10 per 15 s survived, 150 for surviving the round and 50 to everyone on the winning team. Late joiners watch the hunters until the next round; players who are out watch their own team (← →, or tap Next). Practice: Hunt practice against prop bots that copy an object standing in a group and park beside its twins, and Hide practice against hunter bots that notice movement, things out of place and pings (and now and then shoot a real object). Settings, name and keys are saved only in the browser (`oddone-…` and `keybinds:odd-one-out`). Parties can launch it (its row in `GAMES` in `party.js`). On touch screens the page adds `touch` to `body`; the `body.touch` rules near the end of the stylesheet place the HUD for phones upright or sideways (the touch buttons keep their places in their grid by hiding with `visibility`, see `updateTouch`). A test hook (`window.__ph`, with `advance(seconds)` to run the game without drawing) exists only when `navigator.webdriver` is set. **Where players may stand:** the `kit` helpers tag what they build (`kind`: `floor`, `wall`, `fence`, `ceil`; everything else from `box` is furniture, `fix`), and `standRules` (run by `Builder.finish`) turns that into rules every map gets for free: each ceiling is an indoor area whose height limit is the top of its tallest furniture or object base plus 0.12 m (outdoors: 0.3 m under the lowest roof); tops of walls, fences and ceilings, anything above its area's limit, and other players are caps (`b.cap`): `groundAt` never stands you on one and `pushOut` slides you off it, as if it were a wall. You also can't stand where your head would be in the ceiling, ceilings only stop heads (they never push sideways), a long form can't straddle a thin wall (`spineHit`), movement is split into steps shorter than your radius (so a small prop on a slow laptop can't pass through a wall), and a form change (`tfCheck`, used by you and the bots) is refused ("No room to become that here") if it would move you through anything, up onto something higher, or out of bounds. **Out of bounds** (`oobAt`: off the map's floor, under it, on a cap, inside a wall, or more than 0.4 m above the height limit (`high`: a jump from the highest allowed spot is there for under half a second, so your own warning waits 0.6 s and other screens 1 s); the hunters' waiting room only counts for hunters while the props hide): on your own screen a one-line warning counts down from 3 and then puts you back where you last stood; everyone else draws (and can shoot) a player whose drawn position is out of bounds at the nearest walkable floor (`nearestAllowed`); and the host takes out anyone out of bounds for 5 s of a hunt, recording it in the round state's `ob` (kept by `sanitizeRS`) so the feed says "was out of bounds". Older pages ignore `ob` and show such an elimination as "Someone found …"; they don't warn their own player, but are drawn and timed out by newer pages like anyone else. Before these rules players got onto the Willow Lane roofs (up the shed's shelves, or onto a tall disguised player beside the house) and, as a small prop on high furniture next to an outside wall, up past the wall onto the roof (Willow Lane and Brightside Office). For whoever adds the next map, the reachability search used to check this asserts: from every spawn, walking, jumping (running, standing, straight up then over), jumping onto every object, fixture and other player (a tall helper with a low one beside it, on the floor and on furniture), changing form on the spot, beside walls and at the top of a jump, and walking into thin walls at 20 frames a second, no form reaches a wall, fence or ceiling top, a top above the height limit, anywhere off the floor, or another player's head; every raised spot a prop can stand on can be seen from somewhere a hunter can walk to; and 200 practice rounds with bots give no out-of-bounds warning. Landing also counts everything passed on the way down in a frame, so a fast fall at a low frame rate can't skip the floor, and a tab in the background sends its position once a second (so a hunter with a hidden tab isn't left "in the waiting room" when the hunt starts). **Graphics:** a custom tone curve (`CustomToneMapping`, patched into three's shader chunk: colours stay as painted and only the brightest part of each channel is eased off; a filmic curve was tried and greyed the cream walls and the sky) with a key light, fill and exposure per map, a sky dome with sun and clouds, light distance haze, glowing ceiling lights, skirting boards, door trims, soft darkening where walls meet floors and ceilings and under furniture, and a soft contact shadow under every object. The contact shadow is part of the object type (`t.blob`): real objects draw theirs in one instanced mesh per map and disguised players in another (`playerBlobs`, filled just before each render from where each player is drawn), with the same quad, material and matrix maths, so the two still can't be told apart (checked by rendering each type both ways at every quality level and comparing the pixels: like the objects themselves, which are drawn instanced for real ones and as plain meshes for players, they differ only by rounding, at most a few dozen edge pixels per type). Quality (`oddone-gfx`): Low (`fast`, as the old Fast: no shadow maps, sharpness up to 1.1, and none of the tone curve, sky dome, haze, light glow, darkening decals or contact shadows, `applyExtras`), Medium (`med`, everything with a 1024 shadow map, up to 1.35) and High (`high`, a soft 2048 shadow map, up to 1.75, as the old Pretty). Whatever is left out is left out for real objects and disguised players alike. With nothing saved, touch screens start on Low and computers on High, stepping down a level by themselves if the first 4 s of play run slower than about 30 frames a second. **The hunter** (`HG`, `hunterModel`) is a toy figure built in code from rounded boxes (`rbox`), spheres and cylinders: navy jumpsuit, hi-vis vest with two pale bands, pack with an aerial, helmet with an orange band, dark goggles, and a rifle with an orange tip. Its shapes are joined into one geometry per material (`joinGeos`), so a hunter is 16 meshes and about 2,900 triangles; the legs, the arms and the rifle are still separate parts because they swing, aim and kick back. It stands on the floor (the old figure hung 36 cm above it) and is still 1.87 m to the top of the helmet, with the muzzle where it was, so the camera, tracers and aim are unchanged; hunters are never shot at, so there is no hit box to keep in step. On Medium and High it has its own soft contact shadow (a child of the model, not in `playerBlobs`, which is only for disguised players). Nothing about the hunter touches the objects or the players disguised as them. **Shots:** on Medium and High the tracer has a soft glow, the muzzle a short cone of flame and a halo, and every shot leaves a quick pale ring where it lands; the ring is the same colour whatever was hit, so it tells nobody anything new (the sparks were already yellow on a disguised player and still are). Low keeps the plain line and dot. **Menu backdrop:** the camera looks slowly from side to side from a spot inside the chosen map (`menu` in `MAPS`: x, y, z, the way it faces and how far it turns) instead of circling above the roof; a new map needs a `menu` entry, or it falls back to the old circling view. **Turkey Week** (`../events.js`, November 15 to 26, 2026): five object types are drawn as Thanksgiving things, on the maps and as disguises alike (`TK_PROPS` in `tkProps`, used by `defProp`): beach ball as a pumpkin, the gift boxes as a pumpkin pie and a basket of apples, the wooden crate as a hay bale, the garden gnome as a turkey in a pilgrim hat. Each type's box, health and speed are still worked out from its usual parts, so players with the look on and off agree on everything but the picture. Object types are built once at page load, which is also when the game reads the one Turkey Week switch on the Back Room page (see `events.js` below); it has no button of its own. **Wardrobe (November 2026, captains only for now):** hunter outfits, hunter tools, prop taunts and catch poofs, all drawn and played in code by `wardrobe.js` beside the page. Nobody else can see it yet: `ODD_PUBLIC = false` and `wardOn()` asks `../captains.js` (`may(false, 'wardrobe', 'oddone-wardrobe')`), so it opens for the site's captains, or with `?wardrobe=1` on localhost or in an automated browser; to open it to everyone, change `ODD_PUBLIC` to `true`. For everyone else `wardrobe.js` is never fetched (the page asks for it only when `wardOn()` is true or another player arrives wearing something), `WD` stays `null` and the menu, saved data, node fields and draw calls are exactly as before. Captains get a Wardrobe button under their name on the menu and on the pause screen; every item is free and nothing is bought (the shop stays off). There are 14 outfits (Police Officer, Sheriff, Mall Cop, Security Guard, Detective, Store Manager, Janitor, Park Ranger, Exterminator, Construction Worker, Cowboy, Pirate, and the usual hunter with a Top Hat or a Traffic Cone in place of the helmet), 6 tools held in place of the rifle (Flashlight, Price Scanner, Flyswatter, Butterfly Net, Broom, Rubber Chicken), 8 taunts (Bike Horn, Squeaky Duck, Slide Whistle, Boing, Cuckoo, Kazoo, Doorbell, Party Blower) and 5 poofs (Cloud, Feather, Bubble, Star, Price Tag); their names and numbers are in `../cosmetics.js` under `odd-one-out`, and `wardrobe.js` keeps one list per slot in number order (never reorder: add at the end). What a captain wears is saved as `oddone-wear` (`[outfit, tool, taunt, poof]`) and travels in their own node as one short field, `cz`: `'outfit.tool.taunt.poof.count'`, checked strictly by `parse` (anything else is ignored, and a number this page doesn't know draws the usual hunter, rifle or burst); older pages ignore it. **Fairness:** outfits and tools are drawn only on hunters (`hunterModel(color, wear)`; a prop is still `propModel` and looks exactly like the real object whatever its player wears), they change no hit box, height, speed, camera, aim or reach (shots still come from the camera and tracers from the rifle's muzzle point), hats stay within 0.28 m of the head's centre line and tools within the rifle's own space below the line of sight (checked with rays through the crosshair at every pitch, aimed and not, on a laptop and an upright phone: none touches the hunter), every outfit keeps an orange hunter band on both arms and is no darker overall than the usual hunter, and the flashlight has a lit lens but no real light. An outfit hunter is 7 meshes (one vertex-coloured geometry each for the legs, body and arms, sharing one material, plus the tool, its accent and the contact shadow) instead of 16. **Taunts** didn't exist before, so they are strictly opt-in: nothing plays unless a captain prop with a taunt chosen presses T (only while T is bound to nothing else; the hint line shows it) or taps the Taunt button that appears beside Menu and Scores on a touch screen. It plays from the prop's position for everyone in range, like a ping, so it gives the prop away on purpose; hunters in the waiting room don't hear it (like every prop sound), and in Hide practice the hunter bots go after it as after a ping once the hunt is on. One every 10 s (`TAUNT_CD`), and other pages ignore a player's taunts closer together than 8 s (`TAUNT_GAP`); a taunt is the count in `cz` going up by one. **Poofs** play only when a prop is caught (`onElim`, in place of the usual confetti burst), chosen by the hunter who caught it, using the same small effect meshes as the burst. Pictures in the Wardrobe are rendered once with the game's own renderer into a small render target (no second WebGL context). A test hook: `__ph.WD` (the hooks, the item lists and `figShot`/`toolShot` for contact sheets) and `__ph.wdSync`. It has Spanish: its words, prop names and Wardrobe items are in `odd-one-out/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; prop names are translated on each page when shown, never sent. +- `e63334287a3deaa3/odd-one-out/`: Odd One Out (Back Room), Props vs Hunters (prop hunt) for up to 16 players (Three.js, Firebase Realtime Database rooms under `rooms/ph-…`, same project and rules as Rumble Karts; Quick match uses `rooms/ph-pub-1` to `ph-pub-4`; invite links go through the home page as `#ph-`). Props aim at an object and turn into an exact copy of it; hunters wait in a closed room during the hide time, then hunt with a hitscan rifle, and a shot that hits a real object is free by default (the host can switch a 3 or 5 HP penalty on in the lobby: `pen` in the settings; a penalty saved by an older page is ignored unless the host picked it again, `oddone-hostpen`). Props move by size, the smaller the slower: from 3.0 m a second for a cup through about 3.7 for a cardboard box and 3.9 for a bench to 4.3 for a sofa (`speed` where each object type is defined: 3.9 + 0.55 × log10(volume / 0.3), kept between 3.0 and 4.4; it used to be the other way round; the hunter runs at 5.2), so the hard-to-spot small ones can't also outrun anyone; health also goes by size (40 to 200) unless the host sets All 100. A match is 3 to 10 rounds and the hunters are picked so everyone takes turns (`newRound`, by how often each player has hunted, `hn`). Every object you can turn into is a type in `buildProps` (`defProp(id, name, parts)`, where parts are plain Three.js shapes merged into one geometry per material, with the origin in the middle of the base and the front facing +z); a map draws its copies of a type as instanced meshes (`buildInstances`) and a disguised player draws the very same geometries and materials (`propModel`), so the two can't be told apart, and both use the type's own box for collisions and shots. Health scales with the type's size (40 to 200) unless the host picks All 100. To add a type, add a `defProp` line (and `{elig: false}` for things players shouldn't turn into); to add a map, write a `build…` function with the `Builder` helpers (`box` for walls and fixed furniture, `at` for turned furniture, `place(id, x, z, yaw, y)` for turnable objects, `kit` for walls with doors, floors, ceilings and lights, `hunterRoom` for the waiting room outside the map) and add it to `MAPS`; keep every placed object where a player can walk up to it. Like Chromaflage, everything travels through each player's own node at `rooms/ph-/players/`, because the shared rules expect `n, c, x, z, h, ts` there and refuse other paths for new prefixes: position and look (`y`, `p` aim pitch, `d` the type you've turned into), the last shot (`sh`, for tracers), running hit totals for the round (`hd`: `round|uid:hits,…|hits on real objects|session`, where the session is when that browser joined, so a reload starts the totals again) and, from the host, the round state as JSON in `rs` with host number `he`. The host (newest host number, else whoever has been in the room longest, and only once the room's players have loaded) runs the phases (`lobby`, `hide`, `hunt`, `end`, `over`) and works out health from the hit totals, checking them loosely (the shooter must be a living hunter, the target a living prop within 90 m, and no more hits than the rifle could fire); if it leaves, the next player carries on from the last round state it saw and counts the totals it can already see as done. **Ready up and the lobby timer:** in an online lobby every player has a Ready button (or Enter), sent as `rd` in its own node (the lobby's key, its round id + 1, so a ready from an earlier lobby never counts and nothing has to clear it), and the lobby list shows a tick by each ready name; once 2 players are in, the host starts the lobby timer (`al` in the round state: 60 s in a private room, 20 s in a public lobby as before; new joiners don't reset it, and it's cancelled if the room drops below 2 and starts afresh when it's back), and when at least half the players are ready (rounded up: 1 of 2, 2 of 3, 2 of 4, 3 of 5) a 5 s countdown (`rr`), cancelled if people un-ready or leave so it falls below half; the match starts at whichever comes first (`hostLobby`), shown as "Starting in 0:45" beside the Ready button and on the HUD clock with a tick each of the last 5 s, and the host's Start match still starts it at once. `lr: 1` in the round state says the host does this. Pages from before ready up mix in: they never send `rd`, so they count as not ready; in a public lobby the start moment is also copied to the old `as`, which old pages show and, as host, run; in a private room `as` stays 0, so an old guest sees "Waiting for the host to start." until the match begins, and with an old page as host nothing starts by itself (newer pages hide their Ready button) and its Start match works as always. Practice has no lobby and is unchanged. Each browser reports its own hits, so it isn't cheat-proof. Anything read from another player's node is untrusted: a round state is rebuilt by `sanitizeRS` (only the fields the page uses, numbers clamped, player and prop ids checked; match settings kept in range by `cleanSet`), so a new field in the round state has to be added there too, and anything from a node that goes into the page as HTML must be escaped (`esc`) or turned into a number first. The round state goes out whole every time it changes (1-2 KB with 16 players) and during a hunt it changes with every hit, so the host coalesces hit-driven changes (health `hf`, eliminations `el`, finds `k`) to at most 4 publishes a second (`Net.rsDue`; a new phase or round goes straight away); the shape of `rs` is unchanged, so old and new hosts and guests mix freely. A tab in the background keeps its node fresh (and, if it's the host, the round moving) with a one-second timer; a player whose page stops altogether stops counting after 12 s but stays drawn where it was for up to a minute. Sounds a hiding prop makes go through `propSfx`, which keeps them from hunters in the waiting room. Pings are worked out on every screen from the hunt's start time (every 10–30 s, every 10 s in the last minute) and play from each prop's position. Points: 100 per prop found, 10 per 15 s survived, 150 for surviving the round and 50 to everyone on the winning team. Late joiners watch the hunters until the next round; players who are out watch their own team (← →, or tap Next). Practice: Hunt practice against prop bots that copy an object standing in a group and park beside its twins, and Hide practice against hunter bots that notice movement, things out of place and pings (and now and then shoot a real object). Settings, name and keys are saved only in the browser (`oddone-…` and `keybinds:odd-one-out`). Parties can launch it (its row in `GAMES` in `party.js`). On touch screens the page adds `touch` to `body`; the `body.touch` rules near the end of the stylesheet place the HUD for phones upright or sideways (the touch buttons keep their places in their grid by hiding with `visibility`, see `updateTouch`). A test hook (`window.__ph`, with `advance(seconds)` to run the game without drawing) exists only when `navigator.webdriver` is set. **Where players may stand:** the `kit` helpers tag what they build (`kind`: `floor`, `wall`, `fence`, `ceil`; everything else from `box` is furniture, `fix`), and `standRules` (run by `Builder.finish`) turns that into rules every map gets for free: each ceiling is an indoor area whose height limit is the top of its tallest furniture or object base plus 0.12 m (outdoors: 0.3 m under the lowest roof); tops of walls, fences and ceilings, anything above its area's limit, and other players are caps (`b.cap`): `groundAt` never stands you on one and `pushOut` slides you off it, as if it were a wall. You also can't stand where your head would be in the ceiling, ceilings only stop heads (they never push sideways), a long form can't straddle a thin wall (`spineHit`), movement is split into steps shorter than your radius (so a small prop on a slow laptop can't pass through a wall), and a form change (`tfCheck`, used by you and the bots) is refused ("No room to become that here") if it would move you through anything, up onto something higher, or out of bounds. **Out of bounds** (`oobAt`: off the map's floor, under it, on a cap, inside a wall, or more than 0.4 m above the height limit (`high`: a jump from the highest allowed spot is there for under half a second, so your own warning waits 0.6 s and other screens 1 s); the hunters' waiting room only counts for hunters while the props hide): on your own screen a one-line warning counts down from 3 and then puts you back where you last stood; everyone else draws (and can shoot) a player whose drawn position is out of bounds at the nearest walkable floor (`nearestAllowed`); and the host takes out anyone out of bounds for 5 s of a hunt, recording it in the round state's `ob` (kept by `sanitizeRS`) so the feed says "was out of bounds". Older pages ignore `ob` and show such an elimination as "Someone found …"; they don't warn their own player, but are drawn and timed out by newer pages like anyone else. Before these rules players got onto the Willow Lane roofs (up the shed's shelves, or onto a tall disguised player beside the house) and, as a small prop on high furniture next to an outside wall, up past the wall onto the roof (Willow Lane and Brightside Office). For whoever adds the next map, the reachability search used to check this asserts: from every spawn, walking, jumping (running, standing, straight up then over), jumping onto every object, fixture and other player (a tall helper with a low one beside it, on the floor and on furniture), changing form on the spot, beside walls and at the top of a jump, and walking into thin walls at 20 frames a second, no form reaches a wall, fence or ceiling top, a top above the height limit, anywhere off the floor, or another player's head; every raised spot a prop can stand on can be seen from somewhere a hunter can walk to; and 200 practice rounds with bots give no out-of-bounds warning. Landing also counts everything passed on the way down in a frame, so a fast fall at a low frame rate can't skip the floor, and a tab in the background sends its position once a second (so a hunter with a hidden tab isn't left "in the waiting room" when the hunt starts). **Graphics:** a custom tone curve (`CustomToneMapping`, patched into three's shader chunk: colours stay as painted and only the brightest part of each channel is eased off; a filmic curve was tried and greyed the cream walls and the sky) with a key light, fill and exposure per map, a sky dome with sun and clouds, light distance haze, glowing ceiling lights, skirting boards, door trims, soft darkening where walls meet floors and ceilings and under furniture, and a soft contact shadow under every object. The contact shadow is part of the object type (`t.blob`): real objects draw theirs in one instanced mesh per map and disguised players in another (`playerBlobs`, filled just before each render from where each player is drawn), with the same quad, material and matrix maths, so the two still can't be told apart (checked by rendering each type both ways at every quality level and comparing the pixels: like the objects themselves, which are drawn instanced for real ones and as plain meshes for players, they differ only by rounding, at most a few dozen edge pixels per type). Quality (`oddone-gfx`): Low (`fast`, as the old Fast: no shadow maps, sharpness up to 1.1, and none of the tone curve, sky dome, haze, light glow, darkening decals or contact shadows, `applyExtras`), Medium (`med`, everything with a 1024 shadow map, up to 1.35) and High (`high`, a soft 2048 shadow map, up to 1.75, as the old Pretty). Whatever is left out is left out for real objects and disguised players alike. With nothing saved, touch screens start on Low and computers on High, stepping down a level by themselves if the first 4 s of play run slower than about 30 frames a second. **The hunter** (`HG`, `hunterModel`) is a toy figure built in code from rounded boxes (`rbox`), spheres and cylinders: navy jumpsuit, hi-vis vest with two pale bands, pack with an aerial, helmet with an orange band, dark goggles, and a rifle with an orange tip. Its shapes are joined into one geometry per material (`joinGeos`), so a hunter is 16 meshes and about 2,900 triangles; the legs, the arms and the rifle are still separate parts because they swing, aim and kick back. It stands on the floor (the old figure hung 36 cm above it) and is still 1.87 m to the top of the helmet, with the muzzle where it was, so the camera, tracers and aim are unchanged; hunters are never shot at, so there is no hit box to keep in step. On Medium and High it has its own soft contact shadow (a child of the model, not in `playerBlobs`, which is only for disguised players). Nothing about the hunter touches the objects or the players disguised as them. **Shots:** on Medium and High the tracer has a soft glow, the muzzle a short cone of flame and a halo, and every shot leaves a quick pale ring where it lands; the ring is the same colour whatever was hit, so it tells nobody anything new (the sparks were already yellow on a disguised player and still are). Low keeps the plain line and dot. **Menu backdrop:** the camera looks slowly from side to side from a spot inside the chosen map (`menu` in `MAPS`: x, y, z, the way it faces and how far it turns) instead of circling above the roof; a new map needs a `menu` entry, or it falls back to the old circling view. **Turkey Week** (`../events.js`, November 15 to 26, 2026): five object types are drawn as Thanksgiving things, on the maps and as disguises alike (`TK_PROPS` in `tkProps`, used by `defProp`): beach ball as a pumpkin, the gift boxes as a pumpkin pie and a basket of apples, the wooden crate as a hay bale, the garden gnome as a turkey in a pilgrim hat. Each type's box, health and speed are still worked out from its usual parts, so players with the look on and off agree on everything but the picture. Object types are built once at page load, which is also when the game reads the one Turkey Week switch on the Back Room page (see `events.js` below); it has no button of its own. **Wardrobe (November 2026, captains only for now):** hunter outfits, hunter tools, prop taunts and catch poofs, all drawn and played in code by `wardrobe.js` beside the page. Nobody else can see it yet: `ODD_PUBLIC = false` and `wardOn()` asks `../captains.js` (`may(false, 'wardrobe', 'oddone-wardrobe')`), so it opens for the site's captains, or with `?wardrobe=1` on localhost or in an automated browser; to open it to everyone, change `ODD_PUBLIC` to `true`. For everyone else `wardrobe.js` is never fetched (the page asks for it only when `wardOn()` is true or another player arrives wearing something), `WD` stays `null` and the menu, saved data, node fields and draw calls are exactly as before. Captains get a Wardrobe button under their name on the menu and on the pause screen; every item is free and nothing is bought (the shop stays off). There are 14 outfits (Police Officer, Sheriff, Mall Cop, Security Guard, Detective, Store Manager, Janitor, Park Ranger, Exterminator, Construction Worker, Cowboy, Pirate, and the usual hunter with a Top Hat or a Traffic Cone in place of the helmet), 6 tools held in place of the rifle (Flashlight, Price Scanner, Flyswatter, Butterfly Net, Broom, Rubber Chicken), 8 taunts (Bike Horn, Squeaky Duck, Slide Whistle, Boing, Cuckoo, Kazoo, Doorbell, Party Blower) and 5 poofs (Cloud, Feather, Bubble, Star, Price Tag); their names and numbers are in `../cosmetics.js` under `odd-one-out`, and `wardrobe.js` keeps one list per slot in number order (never reorder: add at the end). What a captain wears is saved as `oddone-wear` (`[outfit, tool, taunt, poof]`) and travels in their own node as one short field, `cz`: `'outfit.tool.taunt.poof.count'`, checked strictly by `parse` (anything else is ignored, and a number this page doesn't know draws the usual hunter, rifle or burst); older pages ignore it. **Fairness:** outfits and tools are drawn only on hunters (`hunterModel(color, wear)`; a prop is still `propModel` and looks exactly like the real object whatever its player wears), they change no hit box, height, speed, camera, aim or reach (shots still come from the camera and tracers from the rifle's muzzle point), hats stay within 0.28 m of the head's centre line and tools within the rifle's own space below the line of sight (checked with rays through the crosshair at every pitch, aimed and not, on a laptop and an upright phone: none touches the hunter), every outfit keeps an orange hunter band on both arms and is no darker overall than the usual hunter, and the flashlight has a lit lens but no real light. An outfit hunter is 7 meshes (one vertex-coloured geometry each for the legs, body and arms, sharing one material, plus the tool, its accent and the contact shadow) instead of 16. **Taunts** didn't exist before, so they are strictly opt-in: nothing plays unless a captain prop with a taunt chosen presses T (only while T is bound to nothing else; the hint line shows it) or taps the Taunt button that appears beside Menu and Scores on a touch screen. It plays from the prop's position for everyone in range, like a ping, so it gives the prop away on purpose; hunters in the waiting room don't hear it (like every prop sound), and in Hide practice the hunter bots go after it as after a ping once the hunt is on. One every 10 s (`TAUNT_CD`), and other pages ignore a player's taunts closer together than 8 s (`TAUNT_GAP`); a taunt is the count in `cz` going up by one. **Poofs** play only when a prop is caught (`onElim`, in place of the usual confetti burst), chosen by the hunter who caught it, using the same small effect meshes as the burst. Pictures in the Wardrobe are rendered once with the game's own renderer into a small render target (no second WebGL context). A test hook: `__ph.WD` (the hooks, the item lists and `figShot`/`toolShot` for contact sheets) and `__ph.wdSync`. It has Spanish: its words, prop names and Wardrobe items are in `odd-one-out/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; prop names are translated on each page when shown, never sent. - `e63334287a3deaa3/tumble-trials/`: Tumble Trials (Back Room), a knockout party show for up to 16 players (Three.js, Firebase Realtime Database rooms under `rooms/ko-…`, same project and rules as Rumble Karts; Quick match uses `rooms/ko-pub-1` to `ko-pub-4`; invite links go through the home page as `#ko-`). Every show, online or solo, starts with at least 16 contestants (`FIELD`): bots take the places players leave, so a room of 3 plays with 13 bots and a solo show is you and 15 bots; the host's Players setting only caps how many people play. A show is two to four rounds and a final: races (the first few across the line qualify; falling in the slime puts you back at the last checkpoint), survivals (no respawns; whoever is still up when the clock runs out or when only the qualifying number are left goes through) and a final for the crown. Two rounds come before the final in a Short show, three in a Normal one, four in a Long one (one fewer below 10 contestants, which can no longer happen at the start). `planShow` makes the plan from the show's seed so that shows differ: the order of races and survivals (never three of a kind running, never all one kind, so a show can open with a survival), how sharply each round cuts the field (each round gets a random weight, so one show goes 16→13→8→5 and another 16→9→6→4), whether 4, 5 or 6 reach the final, and which rounds are used; rounds the show before used come last in the draw, so a show only repeats one when it has run out of fresh ones. A round always sends on the number it promised: if fewer made it (a race that ran out of time, or several falling in the same moment of a survival), the places left go to whoever got furthest in a race or was knocked out last in a survival, and never fewer than two go on. `nextRound` follows who actually came through; if players leaving means no more are left than the final was planned for, the show goes straight to the final rather than play a round that could knock nobody out. A show can only start with one contestant in practice. Levels are built in code by the `build` functions in `LEVELS` with the `B` helpers (boxes, cylinders and spheres that are both the mesh and the collider; the meshes are the hitboxes, so what you see is what hits you): 23 rounds, only ever added at the end so the number the host sends for a round never changes: Whirligig Way, Teeter Tide, Gatecrash Gauntlet, Springboard Skyway, Swingset Straits, Piston Parade, Roly-Poly Rise, Log Jam Lane, Sink or Skip, Belt Bedlam, Blowhard Bridge, Going Up (lifts up a tower, with blocks at the side as the quick way for a good jumper), Barrel Roll Row (bridges that are turning barrels) and Ferry Frenzy (ferries that shuttle between docks, and two that meet mid-river) are races; Whirlwind Dish, Gap Rush, Colour Call, Bowled Over and Roller Rink (a roller chases everyone round a ring, faster all the time; the view turns with you, `L.orbit`) are survivals; Honeycomb Havoc, Last Spin, High Tide Hill and Crown Dash are finals. Crown Dash is a final marked `dash`: it is played like a race (`mechOf`: checkpoints, respawns) and the first bean to touch the crown as it dips wins, or whoever got furthest if the clock runs out; on Whirlwind Dish and Last Spin the low beam (0.08 to 0.58 m up) has to be jumped, and the high beam's underside (`HIGH_BEAM_Y`, 1.95 m) is well above a standing bean (1.6 m), so you can stand, run or dive under it but not jump into it; the Warm-up Yard is the lobby and menu backdrop and the Crown Stage the podium. Every moving obstacle's position is a function of the round clock (seconds since GO, from the server time offset) and the round's seed, so all players see the same hammers and walls without sending them: a level calls `vary(seed)` to shift the clock of every moving piece it builds (`Lvl.to`), or adds its own shift where bots read the timing too (stones, fans, lifts, ferries), and the sweepers take a seeded start angle and direction, so a round is not the same twice. Who stands where on the start grid is shuffled from the same seed; the seesaws react to weight, so the host runs them and sends their angles. Each player writes only their own node `rooms/ko-/players/`, because the shared rules expect `n, c, x, z, h, ts` there and refuse other paths for new prefixes: position and motion (`y`, `m`), look (`lk`: face, pattern, pattern colour), `rd` ready, `k` the round the position belongs to, `fin`/`out` ("show:round:ms" when you cross the line or drop out), `tt` the honeycomb tiles you touched, `gr`/`fr` grabbing and breaking free. The host (newest host number `he`, else whoever has been in the room longest, chosen only after the room has loaded) publishes the show as JSON in its own `rs` (phase, plan, roster, who qualified and who is out, in order; it goes out whole every time, so changes within a round are coalesced to at most 4 publishes a second, `Net.pubRS`/`flushRS`, while a new phase or round goes straight away; the shape of `rs` is unchanged), its bots in `bt`, seesaw angles in `sw`, and every touched tile in its `tt`; a tile vanishes a fixed delay after the earliest touch anyone reported. Guests treat the host's `rs` as untrusted: `sanitizeRS` rebuilds it field by field (known phases and levels, finite clamped numbers, ids of a safe shape, lists capped at 32, at most 24,000 characters) and drops it if anything doesn't fit, and names and colours from other players are escaped or validated before they reach the page. Guests also run the show on the host's clock (they measure the gap from the `ts` the host writes), and every browser rewrites its `ts` once a second even from a background tab, so a host who switches tabs isn't taken for gone. The host's browser runs the bots and decides qualification from the reports, so it isn't cheat-proof; if the host leaves, the next player carries on from the last show state and takes over the bots from where they were last seen (same traits, speed and checkpoint); a host that goes quiet without leaving is passed over after 4 s (`HOST_QUIET_MS`). `set.bots` is still sent (always 1) because pages from before the bots became permanent read it. A private room starts when everyone in it is ready (one player alone counts) or the host presses Start show; a public lobby starts 20 s after a second player arrives, or after 30 s with one. The physics is the game's own: a fixed 60 Hz step, a capsule of three spheres pushed out of boxes, cylinders and spheres, platforms that carry you, and knockback from the speed of whatever hit you. Bots follow each race's `path` of nodes and wait at `safe` nodes until the obstacles ahead will miss them; the same brain is the test autopilot. Node options a level can use: `w` width, `alt` side-by-side lanes a bot picks between, `xs` bounce pads (the node only counts once the pad has thrown the bot up), `safe` with `len` (how much of the way ahead has to be clear), `wait` (a test of the clock), `on` with `board` (a spot on a lift or ferry, walked to only while it can be boarded), `comp` (lean against a belt or a turning barrel), `near` (must be reached, not just passed). A bot that stops getting nearer its node hops, tries another line, backs off up the course and across, then goes back a node (`unstick`), and one whose jump will land short dives. No two bots are alike: skill comes with the roster, and nerve (how tight a gap it runs, how long it waits), pace and lane choice come from the show id and the bot's id, with a good or bad round from the round number (`botTraits`), so whoever takes the bots over works out the same ones. Keys are rebindable through `keybinds.js` (saved as `keybinds:tumble-trials`). On computers, clicking the game captures the mouse (Pointer Lock) and moving it turns the camera with no button held; a "Click to look" hint shows while it isn't captured, and the click that captures it doesn't also grab. Esc, the pause menu, the main menu, results and podium cards and the Controls panel let go of it (Esc in the online lobby only frees the mouse for the lobby panel; a second Esc opens the menu). A refused capture (Chrome refuses one within about a second of Esc) is only counted: after three in a row the hint goes and drag-to-look carries on, but every click still tries again. A two-finger trackpad scroll (or mouse wheel) also turns and tilts the camera; a pinch is swallowed so the page doesn't zoom. Sensitivity (Settings and the pause menu) scales mouse, scroll and touch look and is saved as `tumble-sens`, clamped to 0.2–3 (anything unreadable loads as 1). The camera comes in at once when a wall is between it and the bean and eases back out; static walls are found with a ray, and moving ones only if marked `camBlock` (Gap Rush's walls). In a race the count pill also says where you are running (`myPlace`), the intro card lists the show's running order, and being knocked out says where you finished. On touch screens the page adds `touch` to `body`: a stick, Jump, Dive and Grab buttons and drag-to-look, hidden while you watch or read a results card (`noctl`, `cardup`). Name, look, settings, best practice times and stats (shows, crowns, rounds qualified) are saved in the browser under `tumble-…`; nothing is stored online between shows. Parties can launch it (its row in `GAMES` in `party.js`). A test hook (`window.__ko`, with `advance(seconds)`) exists only when `navigator.webdriver` is set. **Closet (November 2026, hidden: captains only for now):** extra looks worn on top of the look everyone already has: 10 colours, 6 premium colours (gold, chrome, glow in the dark, see-through jelly, a slow rainbow shift, bubblegum with sprinkles), 9 patterns, 9 pairs of underpants (painted over the lower body as a clean, silly joke; the last pair is worn on the head instead), 14 hats, 6 face extras, 12 costumes, 6 victory dances (danced instead of the cheer when you qualify from a race or win the crown), 6 fall screams made with Web Audio (heard as a bean drops towards the slime, quieter far away) and 5 knockout splashes (as well as the slime splash). `CLOSET_PUBLIC = false` and `closetOn()` near the top of the script (which asks `../captains.js`, with `?closet=1` as the test switch) decide whether a Closet button shows under the look on the menu card; for everyone else the menu, saved data, node fields and draw calls are as before. Everything is drawn by `closet.js` beside the page, fetched only when this player may open the Closet or a player in the room wears a kit; until then `CL` is null and every hook does what it always did. A kit is ten item numbers (the `no` of Tumble Trials' items in `../cosmetics.js`: colour, premium colour, pattern, underpants, hat, face, costume, dance, scream, splash), saved as `tumble-kit` and sent in the player's own node as `ck` (`'3.0.5.0.12.0.0.2.1.0'`, written only while one is worn; `kitOf` checks it strictly, a number `closet.js` doesn't know draws nothing, and older pages ignore the field); bots never wear one. Looks only: colours, patterns, underpants, face extras and a costume's paint go on the bean's existing skin canvas; a hat, the head undies or a costume's shape is one merged mesh per item shared by every bean (one more draw call, and it hides the Turkey Week hat, so none more while that is on; the propeller beanie, the fishbowl and the astronaut's bubble add one more); a premium colour gives the bean its own material, and the rainbow repaints its skin five times a second. The collider, size, speed and name tag are untouched: a costume is drawn around the same body and the face always shows. The Closet hides the menu and stands your bean in the yard beside its panel (below it when the screen is upright); drag to turn it, and choosing a dance, scream or splash plays it. The test hook adds `CL`, `closetOn`, `closetLoad`, `kitOf`, `kitStr` and `myKitNow`. **Turkey Week** (`../events.js`, November 15 to 26, 2026): every bean wears a pilgrim hat (hidden under the winner's crown): 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. **Spanish:** it loads `../lang.js` and its own words (and the Closet's) in `tumble-trials/es.js`; round and bot names stay English, the show's calls, round descriptions, lobby and results are translated. Text drawn or built in code uses `TRN()` (`TX` is the textures here); the results stamp shows `data-stamp-label` (the stamp's translation) while `data-stamp` keeps the English value the CSS keys on. Nothing translated is sent to the room. EN | ES switch in Settings and the pause card. - `e63334287a3deaa3/deepword/`: Deepword (Back Room), a daily "rarest answer" word game with a multiplayer mode, Blowfish Brawl (one canvas for the ocean, no libraries; Firebase Realtime Database, same project and rules as Rumble Karts, prefix `dw`; invite links go through the home page as `#dw-`; Quick match uses `rooms/dw-pub-1` to `dw-pub-4`; in the Parties list as `{ k: 'dw', … max: 12 }`, since `party.js` lists its own games). **Prompt bank:** `prompts.js` sets `window.DW_BANK`: `lists` (named answer lists, one string each: answers separated by `;`, spellings of one answer by `|`, and a commonness weight 1–5 after `:`, 5 being what most people say), `prompts` (`[category, question, list name or an inline list, optional filter]`, 866 of them, each with 20 or more hand-written answers; categories `geo`, `animals`, `food`, `words`, `pop`, `science`, `sports`, `life`), `words` (about 39,800 plain English words in five commonness tiers, built from the public-domain 12dicts and ENABLE word lists and ranked by how often each word appears in books and Wikipedia; the credits are in the comment at the top of the file, the list behind `'@words'` letter prompts), `labels` (lists the Brawl may turn into "
    +

      @@ -3621,7 +3634,9 @@

      Hiders win!

      // Roles and rounds. The round state (rs) belongs to the host: // {id, ph: lobby|hide|seek|end, t0, dur, map, set:{mode, map, hide, seek, sk, tn}, // sk: seekers, pl: everyone in the round, fd: {found uid: [by, seconds into seek]}, -// sc: running points, tn: times each player has been a seeker, res: last result} +// sc: running points, tn: times each player has been a seeker, res: last result, +// in the lobby: as (public rooms: when the round starts), and from hosts with ready up lr: 1, al (when the lobby +// timer runs out) and rr (when the ready countdown ends); see hostLobby} // ===================================================================== function roleOf(id,rs){ rs=rs||G.rs;if(!rs||rs.ph==='lobby')return 'free'; @@ -3651,7 +3666,7 @@

      Hiders win!

      return{mode:s.mode==='infect'?'infect':'classic',map:n('map',-1,MAPS.length-1),hide:n('hide',5,300),seek:n('seek',30,900),sk:n('sk',0,MAX_ROOM-1),tn:tn&&tn<10?10:tn}; } function defaultSet(){return cleanSet(store.get('hostset',null))} -function lobbyRS(prev,set){return{id:prev?prev.id:0,ph:'lobby',t0:now(),dur:0,map:prev?prev.map:0,set:set||(prev&&prev.set)||defaultSet(),sk:[],pl:[],fd:{},sc:prev?prev.sc||{}:{},tn:prev?prev.tn||{}:{},as:0}} +function lobbyRS(prev,set){return{id:prev?prev.id:0,ph:'lobby',t0:now(),dur:0,map:prev?prev.map:0,set:set||(prev&&prev.set)||defaultSet(),sk:[],pl:[],fd:{},sc:prev?prev.sc||{}:{},tn:prev?prev.tn||{}:{},as:0,lr:1}} function liveIds(){if(G.mode==='practice')return[...ents.keys()];const a=[Net.uid];for(const k of Net.others.keys())if(Net.live(k))a.push(k);return a} function newRound(prev){ const ids=liveIds(),set=prev.set,tn=Object.assign({},prev.tn||{}); @@ -3666,13 +3681,38 @@

      Hiders win!

      if(G.mode==='online'&&G.host)Net.pubRS(rs); applyRS(rs); } +// ---------- ready up and the lobby timer (online lobby only) ---------- +// Each player says it's ready with rd in its own node: the lobby's key (round id + 1), so a ready from an earlier +// lobby never counts and nobody has to clear it. Once 2 are in, the host runs the lobby timer (al: 60 s in a room, +// 20 s in a public lobby, not reset by new joiners, cancelled below 2), and when at least half the room is ready +// (rounded up) a 5 s countdown (rr); the round starts at whichever comes first. Public rooms copy that moment to as, +// which pages from before ready up read and run; private rooms leave as at 0, so an older host page shows nothing +// stuck (its Start button still works, nothing starts by itself). lr: 1 says the host does all this. +const LOBBY_MS=60000,PUB_LOBBY_MS=20000,READY_MS=5000; +const lobbyKey=rs=>rs&&rs.ph==='lobby'?(rs.id|0)+1:0; +function isReady(id,rs){const k=lobbyKey(rs);if(!k)return false;if(id===Net.uid)return G.myRd===k;const o=Net.others.get(id);return !!o&&o.rd===k} +function readyCount(rs){const ids=liveIds();let r=0;for(const u of ids)if(isReady(u,rs))r++;return{r,n:ids.length,need:Math.ceil(ids.length/2)}} +function startAt(rs){if(!rs||rs.ph!=='lobby')return 0;if(!rs.lr)return rs.as||0;const a=rs.al||0,b=rs.rr||0;return a&&b?Math.min(a,b):a||b} +function toggleReady(){ + const rs=G.rs;if(G.mode!=='online'||!Net.refs||!rs||rs.ph!=='lobby'||!rs.lr)return; + const k=lobbyKey(rs);G.myRd=G.myRd===k?0:k;Net.upd({rd:G.myRd});sfx('ui');delete hudCache.lobby;delete hudCache.hint; +} +function hostLobby(rs,t){ + const c=readyCount(rs);let al=rs.al||0,rr=rs.rr||0; + if(c.n<2){al=0;rr=0} + else{if(!al)al=t+(Net.isPublic?PUB_LOBBY_MS:LOBBY_MS);if(c.r>=c.need){if(!rr)rr=t+READY_MS}else rr=0} + const go=al&&rr?Math.min(al,rr):al; + if(go&&t>=go){setRS(newRound(rs));return} + const as=Net.isPublic?go:0; + if(al!==(rs.al||0)||rr!==(rs.rr||0)||as!==(rs.as||0)||!rs.lr)setRS(Object.assign({},rs,{al,rr,as,lr:1})); +} // The host's clock: advance phases, check who is left, score the round. function hostTick(){ const rs=G.rs;if(!rs)return;const t=now(); if(rs.ph==='lobby'){ // between rounds the lobby shows the map the rotation is on now if(G.mode==='online'&&rs.set&&rs.set.map<0){const m=rotMap(t);if(rs.map!==m){setRS(Object.assign({},rs,{map:m}));return}} - if(G.mode==='online'&&Net.isPublic){const n=liveIds().length;if(n>=2){if(!rs.as){setRS(Object.assign({},rs,{as:t+20000}))}else if(t>=rs.as)setRS(newRound(rs))}else if(rs.as)setRS(Object.assign({},rs,{as:0}))} + if(G.mode==='online')hostLobby(rs,t); return; } if(rs.ph==='hide'){ @@ -4286,6 +4326,7 @@

      Hiders win!

      return{id:Math.round(clamp(p.id,0,HE_MAX)),ph:p.ph,t0:clamp(p.t0,t-DAY_MS,t+DAY_MS),dur:numIn(p.dur,0,36e5,0),map:Math.round(numIn(p.map,0,MAPS.length-1,0)),set:cleanSet(p.set), sk:idList(p.sk),pl:idList(p.pl),fd:idMap(p.fd,v=>Array.isArray(v)&&validId(v[0])?[v[0],Math.round(numIn(v[1],0,3600,0))]:undefined),sc:intMap(p.sc),tn:intMap(p.tn), as:finN(p.as)&&p.as>0?clamp(p.as,t-DAY_MS,t+DAY_MS):0, + ...(p.ph==='lobby'&&p.lr===1?{lr:1,al:numIn(p.al,0,t+3e5,0),rr:numIn(p.rr,0,t+3e5,0)}:{}), res:isObj(res)?{win:res.win==='seekers'?'seekers':'hiders',pts:intMap(res.pts),names:idMap(res.names,v=>cleanName(typeof v==='string'?v:'')||undefined),at:numIn(res.at,0,3600,0)}:null}; } function onNode(uid,v){ @@ -4293,7 +4334,7 @@

      Hiders win!

      const str=(x,n)=>typeof x==='string'&&x.length<=n?x:'',he=+v.he; // a heartbeat from the future would keep a vanished player "live" for ever, so it counts as now at most const ts=numIn(+v.ts,0,Net.now()+5000,0); - const o={n:cleanName(typeof v.n==='string'?v.n:'')||'Player',c:/^#[0-9a-f]{6}$/i.test(v.c)?v.c:'#ff4f8b',j:numIn(+v.j,1,1e15,0)||ts,ts,rs:str(v.rs,RS_MAX),he:he>0?Math.round(Math.min(he,HE_MAX)):0,ta:str(v.ta,64),tg:str(v.tg,160)}; + const o={n:cleanName(typeof v.n==='string'?v.n:'')||'Player',c:/^#[0-9a-f]{6}$/i.test(v.c)?v.c:'#ff4f8b',j:numIn(+v.j,1,1e15,0)||ts,ts,rs:str(v.rs,RS_MAX),he:he>0?Math.round(Math.min(he,HE_MAX)):0,ta:str(v.ta,64),tg:str(v.tg,160),rd:finN(v.rd)?v.rd:0}; Net.others.set(uid,o);G.nm.set(uid,o.n); if(o.rs&&o.he>G.maxHe)G.maxHe=o.he; let e=ents.get(uid); @@ -4379,6 +4420,7 @@

      Hiders win!

      G.host=true;G.he=Math.min(HE_MAX,G.maxHe+1);G.maxHe=G.he; const base=G.lastRS?Object.assign({},G.lastRS):lobbyRS(null,defaultSet()); if(!G.lastRS)base.map=base.set.map>=0?base.set.map:rotMap(now()); + if(base.ph==='lobby'&&!base.lr){base.lr=1;base.al=base.as||0} // taking over from a host page from before ready up: its public timer carries on if(G.lastRS&&G.rs&&G.rs.id===base.id)feed(T('You\'re the host now')); setRS(base); } @@ -4405,7 +4447,8 @@

      Hiders win!

      if(!inGame)return; const role=G.role,ph=rs?rs.ph:'lobby',left=phaseLeft(); let pn='Lobby',ck='–'; - if(ph==='lobby'){pn=G.mode==='online'?'Lobby':'Practice';const n=G.mode==='online'?liveIds().length:1;ck=rs&&rs.as?fmtT((rs.as-now())/1000):n+'/'+MAX_ROOM;if(rs&&rs.as)pn='Starting'} + if(ph==='lobby'){pn=G.mode==='online'?'Lobby':'Practice';const n=G.mode==='online'?liveIds().length:1,go=G.mode==='online'?startAt(rs):0;ck=go?fmtT((go-now())/1000):n+'/'+MAX_ROOM;if(go)pn='Starting'; + if(go){const s=Math.ceil((go-now())/1000);if(s!==G.lastTick){G.lastTick=s;if(s<=5&&s>0)sfx('tick')}}} else if(ph==='hide'){pn='Hide time';ck=fmtT(left)}else if(ph==='seek'){pn='Seek time';ck=fmtT(left)}else{pn='Round over';ck=G.mode==='online'?fmtT(left):'–'} setText('phaseName',pn);setText('clock',ck); const low=(ph==='hide'||ph==='seek')&&left<=10&&left>0;if(hudCache.low!==low){hudCache.low=low;$('phaseBox').classList.toggle('low',low)} @@ -4425,7 +4468,7 @@

      Hiders win!

      else if(role==='seeker')hint=ph==='seek'?'Click tag (hold to keep firing)Space jumpEsc menu':''; else if(role==='hider'||role==='free'){const p=me?me.pose:0,fl=me&&me.flat,wl=me&&me.wall; hint='P paint'+(wl?'G stuck to the wallW A S D slideZ sidewaysF flattenSpace let go' - :'C crouchZ lieF flattenG stick to wallQ E turn')+(ph==='seek'?'T squeak +1':'')+(G.mode==='practice'&&ph==='hide'?'Enter I\'m ready':'')} + :'C crouchZ lieF flattenG stick to wallQ E turn')+(ph==='seek'?'T squeak +1':'')+(G.mode==='practice'&&ph==='hide'?'Enter I\'m ready':'')+(G.mode==='online'&&ph==='lobby'&&rs&&rs.lr?'Enter '+(isReady(Net.uid,rs)?'not ready':'ready')+'':'')} else hint='← → or click: watch someone else'; if(hudCache.hint!==hint){hudCache.hint=hint;$('hint').innerHTML=hint} // spectating @@ -4445,8 +4488,16 @@

      Hiders win!

      setHidden('readyBtn',!(G.mode==='practice'&&ph==='hide'&&role==='hider'&&!G.studio)); // lobby panel setHidden('lobby',!(G.mode==='online'&&rs&&ph==='lobby'&&!G.studio)); - if(G.mode==='online'&&rs&&ph==='lobby'){const lm=rs.as?'Starting in '+Math.max(0,Math.ceil((rs.as-now())/1000))+'…':Net.isPublic?'Starts by itself once 2 players are here.':liveIds().length<2?'Waiting for at least one more player. Send them the invite link.':G.host?'Press Start when everyone is in.':'Waiting for the host to start.';setText('lobbyMsg',lm);setText('rotNote',rotText(rs)); - const pk=[...Net.others.keys()].filter(k=>Net.live(k)).join()+G.hostUid+JSON.stringify(rs.set)+G.host;if(hudCache.lobby!==pk){hudCache.lobby=pk;renderLobby()}} + if(G.mode==='online'&&rs&&ph==='lobby'){const n=liveIds().length;let lm; + if(rs.lr){ // a host with ready up: the count and the timer go in the ready row, which stays put while lobbyMsg shows "Copied" + lm=n<2?(Net.isPublic?'Starts by itself once 2 players are here.':'Waiting for at least one more player. Send them the invite link.'):G.host&&!Net.isPublic?'Starts 5 s after half the room is ready, or when the timer runs out. Start round starts it now.':'Starts 5 s after half the room is ready, or when the timer runs out.'; + const c=readyCount(rs),go=startAt(rs),s=Math.max(0,Math.ceil((go-now())/1000)),soon=go&&rs.rr&&go===rs.rr; + setText('rdNote',T('{n} of {m} ready',{n:c.r,m:c.n})+(go?' · '+(soon?T('Starting in {n}…',{n:Math.min(s,5)}):T('Starting in {t}',{t:fmtT(s)})):'')); + const cl=soon||go&&s<=5?'go':'';if(hudCache.rdCl!==cl){hudCache.rdCl=cl;$('rdNote').className=cl} + const on=String(isReady(Net.uid,rs));if(hudCache.rdOn!==on){hudCache.rdOn=on;$('lobbyReady').setAttribute('aria-pressed',on)}} + else lm=rs.as?'Starting in '+Math.max(0,Math.ceil((rs.as-now())/1000))+'…':Net.isPublic?'Starts by itself once 2 players are here.':n<2?'Waiting for at least one more player. Send them the invite link.':G.host?'Press Start when everyone is in.':'Waiting for the host to start.'; + setHidden('rdRow',!rs.lr);setText('lobbyMsg',T(lm));setText('rotNote',rotText(rs)); + const pk=[...Net.others.keys()].filter(k=>Net.live(k)).join()+G.hostUid+JSON.stringify(rs.set)+G.host+(rs.lr?liveIds().map(u=>isReady(u,rs)?1:0).join(''):'');if(hudCache.lobby!==pk){hudCache.lobby=pk;renderLobby()}} if(G.mode==='online'&&ph==='end'&&!$('end').hidden)setText('endMsg',(liveIds().length>=2?'Next round in ':'Back to the lobby in ')+Math.max(0,Math.ceil(left))+'…'); // touch buttons if(isTouch){setHidden('stick',G.studio);setHidden('tbtns',G.studio);setHidden('tShoot',role!=='seeker');if(role!=='seeker')G.trigT=false;setHidden('tTaunt',!(role==='hider'&&ph==='seek'));setHidden('tPaint',!canPaint());setText('tPaint',G.studio?'Done':'Paint');for(const id of ['tPose1','tPose2','tFlat','tStick'])setHidden(id,!(role==='hider'||role==='free'));if(me){setText('tStick',me.wall?'Let go':'Stick');setText('tPose2',me.wall?'Side':'Lie');setHidden('tPose1',!(role==='hider'||role==='free')||!!me.wall)}} @@ -4483,7 +4534,9 @@

      Hiders win!

      const ids=[Net.uid,...[...Net.others.keys()].filter(k=>Net.live(k))]; for(const id of ids){const li=document.createElement('li'),dot=document.createElement('span'),nm=document.createElement('span'),t=document.createElement('span'); const e=ents.get(id);dot.className='dot';dot.style.background=id===Net.uid?myColor:(e?e.color:'#ccc');nm.className='nm';nm.setAttribute('data-noi18n','');nm.textContent=id===Net.uid?T('{n} (you)',{n:myName||T('You')}):nameOf(id);t.className='t'; - t.textContent=[id===G.hostUid?'host':'',(rs.sc&&rs.sc[id])?rs.sc[id]+' pts':''].filter(Boolean).join(' · ');li.append(dot,nm,t);ul.appendChild(li)} + t.textContent=[id===G.hostUid?'host':'',(rs.sc&&rs.sc[id])?rs.sc[id]+' pts':''].filter(Boolean).join(' · ');li.append(dot,nm,t); + if(rs.lr){const r=document.createElement('span'),on=isReady(id,rs);r.className='rd'+(on?' on':'');r.textContent=on?'✓':'';r.title=T(on?'Ready':'Not ready');r.setAttribute('role','img');r.setAttribute('aria-label',r.title);li.append(r)} + ul.appendChild(li)} const set=rs.set||defaultSet();segSet($('setMode'),set.mode);$('setMap').value=String(set.map);$('setMap').disabled=!G.host;segSet($('setHide'),set.hide);segSet($('setSeek'),set.seek);segSet($('setSk'),set.sk);segSet($('setTn'),set.tn); $('lobby').classList.toggle('guest',!G.host);$('hostNote').textContent=G.host?'(you\'re the host)':'(host picks)'; const sb=$('startRound');sb.hidden=Net.isPublic;sb.disabled=!G.host||ids.length<2;sb.textContent=G.host?'Start round':'Host starts'; @@ -4611,7 +4664,7 @@

      Hiders win!

      if(Net.refs)Net.leave(); clearEnts();clearFx();loadMap(0);makeMe(Net.uid); const sp=MAP.spawns[Math.floor(Math.random()*MAP.spawns.length)];me.pos.set(sp[0],0,sp[1]); - Object.assign(G,{mode:'online',pmode:null,rs:null,host:false,hostUid:null,he:0,maxHe:0,lastRS:null,rsSeen:'',rid:-1,ph:'',role:'free',seenFd:{},paused:false,studio:false,joinedAt:performance.now()}); + Object.assign(G,{mode:'online',pmode:null,rs:null,host:false,hostUid:null,he:0,maxHe:0,lastRS:null,rsSeen:'',rid:-1,ph:'',role:'free',seenFd:{},paused:false,studio:false,joinedAt:performance.now(),myRd:0}); G.seenTg=new Map(); try{await Net.join(room,isPublic)}catch(err){G.mode='menu';throw err} enterGame();renderLobby(); @@ -4707,7 +4760,7 @@

      Hiders win!

      else if(c==='KeyB'&&G.studio){SC.tool='brush';syncStudio()}else if(c==='KeyI'&&G.studio){SC.tool='pick';syncStudio()} else if(c==='BracketLeft'&&G.studio){SC.size=Math.max(2,SC.size-2);syncStudio()}else if(c==='BracketRight'&&G.studio){SC.size=Math.min(40,SC.size+2);syncStudio()} else if((c==='ArrowLeft'||c==='ArrowRight')&&(G.role==='out'||G.role==='spec'))cycleSpec(c==='ArrowLeft'?-1:1); - else if(c==='Enter')practiceReady(); + else if(c==='Enter'){if(G.mode==='online'){if(!(ev.target&&ev.target.tagName==='BUTTON'))toggleReady()}else practiceReady()} }); addEventListener('keyup',ev=>{keys[ev.code]=false}); addEventListener('blur',()=>{for(const k in keys)keys[k]=false;G.trig=G.trigT=false}); @@ -4823,6 +4876,7 @@

      Hiders win!

      showRotToday();setInterval(showRotToday,60000); for(const [id,key,num] of [['setMode','mode',false],['setHide','hide',true],['setSeek','seek',true],['setSk','sk',true],['setTn','tn',true]])$(id).onclick=ev=>{const b=ev.target.closest('button');if(b)hostSet(key,num?+b.dataset.v:b.dataset.v)}; $('startRound').onclick=()=>{if(G.host&&G.rs&&G.rs.ph==='lobby'&&liveIds().length>=2)setRS(newRound(G.rs))}; +$('lobbyReady').onclick=toggleReady; $('lobbyMin').onclick=()=>{$('lobby').classList.toggle('min');$('lobbyMin').textContent=$('lobby').classList.contains('min')?'Show':'Hide'}; const copyInvite=(msgEl)=>{const url=location.origin+'/#'+Net.room,m=$(msgEl);const done=ok=>{m.textContent=ok?'Invite link copied. Your friend opens it and enters the code to join.':url};try{navigator.clipboard.writeText(url).then(()=>done(true),()=>done(false))}catch(e){done(false)}}; $('lobbyInvite').onclick=()=>copyInvite('lobbyMsg');$('copyInvite').onclick=()=>copyInvite('inviteMsg'); @@ -4858,7 +4912,7 @@

      Hiders win!

      if(inv){$('room').value=inv[1];setMsg('You were invited to room cf-'+inv[1]+'. Press Play in room to join.');$('joinRoom').classList.remove('alt');$('joinRoom').classList.add('pink');$('quick').classList.remove('pink');$('quick').classList.add('alt')} if(navigator.webdriver)window.__cf={G,P,buildNav,findPath,get me(){return me},ents,Net,MAPS,get MAP(){return MAP},loadMap,startPractice,goOnline,toMenu,setRS,hostTag,shoot,openStudio,closeStudio,perceive,visibility,camoCheck,placeBot,botPaint,PC,SC,setColor,fillAll,eyedrop, - get camYaw(){return camYaw},set camYaw(v){camYaw=v},get camPitch(){return camPitch},set camPitch(v){camPitch=v},renderer,scene,camera,step,keys,tryPose,setPose,toggleFlat,taunt,practiceReady,newRound,lobbyRS,roleOf,showPause,resume,rayMap,strokeTo,hitMe,SIZES,atlasOf,hidersLeft,specTarget,cycleSpec,get MAPIDX(){return mapIdx}, + get camYaw(){return camYaw},set camYaw(v){camYaw=v},get camPitch(){return camPitch},set camPitch(v){camPitch=v},renderer,scene,camera,step,keys,tryPose,setPose,toggleFlat,taunt,practiceReady,newRound,lobbyRS,roleOf,toggleReady,readyCount,startAt,showPause,resume,rayMap,strokeTo,hitMe,SIZES,atlasOf,hidersLeft,specTarget,cycleSpec,get MAPIDX(){return mapIdx}, toggleStick,stickWall,unstick,attachWall,wallMove,bodyBlocked,wallHeld,findWall,jump,heightOf,overlapping,circles,controlMe,aiSeeker,lineClear,navCell,patrolPoints,syncStudio,setMySize,setMyShape,undoPaint,makeEnt,practiceRoundStart,WALL_N,moveEnt,get CK(){return CK},kitOn,kitOf,kitLoad}; // The Seeker kit: kit.js is fetched the first time kitOn() is true (a captain's answer arrives a moment after the page diff --git a/e63334287a3deaa3/odd-one-out/es.js b/e63334287a3deaa3/odd-one-out/es.js index c09ef3c9..b478c242 100644 --- a/e63334287a3deaa3/odd-one-out/es.js +++ b/e63334287a3deaa3/odd-one-out/es.js @@ -66,6 +66,7 @@ if (window.BackRoomLang) BackRoomLang.add({ 'Press Start match when everyone is in.': 'Pulsa Empezar partida cuando estén todos.', 'Waiting for the host to start.': 'Esperando a que empiece el anfitrión.', // ready up and the lobby timer 'Ready': 'Listo', 'Not ready': 'No listo', 'ready': 'listo', 'not ready': 'no listo', '{n} of {m} ready': '{n} de {m} listos', 'Starting in {t}': 'Empieza en {t}', + 'Press Enter to ready up': 'Pulsa Enter para estar listo', 'Starts 5 s after half the room is ready, or when the timer runs out.': 'Empieza 5 s después de que la mitad de la sala esté lista, o cuando se acabe el tiempo.', 'Starts 5 s after half the room is ready, or when the timer runs out. Start match starts it now.': 'Empieza 5 s después de que la mitad de la sala esté lista, o cuando se acabe el tiempo. Empezar partida la empieza ya.', 'Back to the lobby in {n}…': 'Vuelta a la sala en {n}…', 'Next round in {n}…': 'Próxima ronda en {n}…', 'Final scores in {n}…': 'Puntos finales en {n}…', diff --git a/e63334287a3deaa3/odd-one-out/index.html b/e63334287a3deaa3/odd-one-out/index.html index f667ca90..7016d5c1 100644 --- a/e63334287a3deaa3/odd-one-out/index.html +++ b/e63334287a3deaa3/odd-one-out/index.html @@ -333,7 +333,7 @@
      @@ -2897,7 +2897,7 @@

      Props win!

      if(rs.lr){ // a host with ready up: the count and the timer go in the ready row, which stays put while lobbyMsg shows "Copied" lm=n<2?(Net.isPublic?'Starts by itself once 2 players are here.':'Waiting for at least one more player. Send them the invite link.'):G.host&&!Net.isPublic?'Starts 5 s after half the room is ready, or when the timer runs out. Start match starts it now.':'Starts 5 s after half the room is ready, or when the timer runs out.'; const c=readyCount(rs),go=startAt(rs),s=Math.max(0,Math.ceil((go-now())/1000)),soon=go&&rs.rr&&go===rs.rr; - setText('rdNote',LT('{n} of {m} ready',{n:c.r,m:c.n})+(go?' · '+(soon?LT('Starting in {n}…',{n:s}):LT('Starting in {t}',{t:fmtT(s)})):''));setClass('rdNote',soon||go&&s<=5?'go':''); + setText('rdNote',LT('{n} of {m} ready',{n:c.r,m:c.n})+(go?' · '+(soon?LT('Starting in {n}…',{n:Math.min(s,5)}):LT('Starting in {t}',{t:fmtT(s)})):''));setClass('rdNote',soon||go&&s<=5?'go':''); const on=String(isReady(Net.uid,rs));if(hudCache.rdOn!==on){hudCache.rdOn=on;$('lobbyReady').setAttribute('aria-pressed',on)}} else lm=rs.as?'Starting in '+Math.max(0,Math.ceil((rs.as-now())/1000))+'…':Net.isPublic?'Starts by itself once 2 players are here.':n<2?'Waiting for at least one more player. Send them the invite link.':G.host?'Press Start match when everyone is in.':'Waiting for the host to start.'; setHidden('rdRow',!rs.lr);setText('lobbyMsg',LT(lm));