Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
a33711d
Tumble Trials Closet: 43 new items (sports kits, pirates with eye pat…
claude Nov 19, 2026
4d1409d
Driftfall Locker: 21 sports outfits (OUTFITS 41-61), captains only
claude Nov 19, 2026
1718716
Shell Crackers Locker: 15 sports, pirate, suit and robot egg types an…
claude Nov 19, 2026
5a5dc63
Tumble Trials Closet: smoother wizard beard; README counts for the ne…
claude Nov 19, 2026
829993a
Tumble Trials Closet: lighter fur hat (fewer triangles)
claude Nov 19, 2026
5d3058f
Shell Crackers Locker: 8 gun skins and 3 crack effects (team kits, pi…
claude Nov 19, 2026
cd2fe34
Driftfall Locker: 22 more outfits (pirates, suits, robots, variety; O…
claude Nov 19, 2026
0d069a0
Rumble Karts: 13 new drivers, 10 karts and 4 horns for the Garage (sp…
claude Nov 19, 2026
4335e64
Updraft Gear: 32 new climber skins and 4 backpacks
claude Nov 19, 2026
17e0dfe
Driftfall Locker: 6 backpacks, 6 gliders with their own holds, 5 gun …
claude Nov 19, 2026
85a8809
Updraft Gear: README counts for the new skins and packs
claude Nov 19, 2026
f6cf409
Shop: 70 new avatar skins and 36 accessories (sports, pirates, suits,…
claude Nov 19, 2026
f8a65b0
Asteroid Run Wardrobe: 20 new aliens (athletes, robots, space pirates…
claude Nov 19, 2026
311d888
README: Driftfall Locker wave two
claude Nov 19, 2026
52440fe
Odd One Out Wardrobe: 20 hunter outfits and 9 tools (sports, pirates,…
claude Nov 19, 2026
e5a8f0e
Shop: older packs keep their contents (skinIds/accIds list only the f…
claude Nov 19, 2026
6e83ec7
Slipstream: 32 new Garage items (4 sponsors and their liveries, 12 sp…
claude Nov 19, 2026
1cdc91f
Catalogue and README for the new Slipstream and Rampline items; Rampl…
claude Nov 19, 2026
fdc347f
Chromaflage Seeker kit: 12 seeker hats and 8 tools (sports, pirate, s…
claude Nov 19, 2026
8b4c39b
Cosmetics: spread the new items' rarities closer to the asked mix
claude Nov 19, 2026
3aee2ad
Rampline: tidy the soccer ball and pirate ship's sail
claude Nov 19, 2026
7069365
Coil: 25 new Wardrobe looks (4 colours, 9 designs, 5 object snakes, 7…
claude Nov 19, 2026
f9189ac
Merge branch 'wallet-server' into skins2-avatars
claude Nov 19, 2026
3acddfc
Showdown: a hidden Wardrobe for captains (seat looks, card backs, fel…
claude Nov 19, 2026
92a4a00
Wave 2 skins: fix Chromaflage sweatband stripes and narrow the pirate…
claude Nov 19, 2026
7372f81
Boostball: 28 new Kit items (7 decals, 5 trails, 3 goal explosions, 6…
claude Nov 19, 2026
e1be3a6
Chromaflage Pirate Hat: a real tricorn outline (brims tall in the mid…
claude Nov 19, 2026
4da08be
Driftfall Locker: bigger rotor blades, balls show on the Bag of Balls…
claude Nov 19, 2026
c9a8da7
Tidewick: a hidden Wardrobe for captains (30 outfits, hats, face piec…
claude Nov 19, 2026
9893171
Puffer Party: a hidden Wardrobe for captains (puffer hats, trails, po…
claude Nov 19, 2026
cee2147
Spire: a hidden Wardrobe for captains, with 33 outfits and 4 celebrat…
claude Nov 19, 2026
e582860
Turbo Trail: a hidden Wardrobe for captains, with the 33 outfits and …
claude Nov 19, 2026
104083e
Patchwork Tower: a hidden Wardrobe for captains (29 paint jobs, hats,…
claude Nov 19, 2026
b4a0443
Escapade: a hidden Wardrobe for captains, with the 33 outfits and 4 c…
claude Nov 19, 2026
bc2735c
Lanternhold: a hidden Wardrobe for captains (tower banners, lanterns,…
claude Nov 19, 2026
7dca308
Flickerwood: a hidden Wardrobe for captains (28 kits, hats, face piec…
claude Nov 19, 2026
0bfebe7
Stackfall: hidden Styles for captains (7 block sets, 5 boards, 3 clea…
claude Nov 19, 2026
6702891
Merge remote-tracking branch 'origin/skins2-parkour' into skins-all
claude Nov 19, 2026
e213357
Merge remote-tracking branch 'origin/skins2-shooters-party' into skin…
claude Nov 19, 2026
3c71880
Merge remote-tracking branch 'origin/skins2-driftfall' into skins-all
claude Nov 19, 2026
1130013
Merge remote-tracking branch 'origin/skins3-parkour' into skins-all
claude Nov 19, 2026
bd92493
Merge remote-tracking branch 'origin/skins3-party' into skins-all
claude Nov 19, 2026
a3de690
Melon Merge: hidden Styles for captains (5 fruit sets, 4 walls, 3 mer…
claude Nov 19, 2026
9dc28d9
2048: hidden Styles for captains (4 tile sets, 4 boards)
claude Nov 19, 2026
d4f733a
Gridpop: hidden Styles for captains (4 block sets, 4 boards)
claude Nov 19, 2026
eb5e784
Merge carbon-star into skins4-boostball (goal 22 is Carbon Star; 23 t…
claude Nov 19, 2026
774bba3
Merge remote-tracking branch 'origin/skins3-arcade' into skins-all
claude Nov 19, 2026
415cf2f
Sky Duel: hidden Paint Shop for captains (35 paints, noses, trails, s…
claude Nov 19, 2026
b9e1dac
Boostball: arched brims on the Pirate Tricorn, a half-cylinder lid on…
claude Nov 19, 2026
8fe5b95
Merge remote-tracking branch 'origin/skins2-vehicles' into skins-all
claude Nov 19, 2026
09469ae
Boostball: the second Circuit Board decal is now Gold Circuit, so eve…
claude Nov 19, 2026
602c43f
Merge branch 'skins2-vehicles' into skins-all
claude Nov 19, 2026
b6d3fa0
Driftfall Locker: each sports kit and suit gets its own colours, numb…
claude Nov 19, 2026
539e832
Merge remote-tracking branch 'origin/skins2-vehicles' into skins4-boo…
claude Nov 19, 2026
ff7f18b
Driftfall Locker: the emote moves from T to J (rebindable in Controls…
claude Nov 19, 2026
89495ad
Backrooms Locker (captains only): 36 outfits, 15 gun skins, 6 build s…
claude Nov 19, 2026
be66ddf
Boostball: 83 new Kit items (24 decals, 17 boost trails, 18 goal expl…
claude Nov 19, 2026
e6d7747
Driftfall Locker: 28 more outfits (OUTFITS 84-111): sports, robots, p…
claude Nov 19, 2026
a757291
Boostball third-wave Kit: fixes from the contact sheets (decals that …
claude Nov 19, 2026
2d3d942
Backrooms Locker: outfits measured fair against the plain suit (size,…
claude Nov 19, 2026
d0d6a4c
Driftfall Locker: pickaxes (new slot o, 12), 12 gliders, 8 trails, 13…
claude Nov 19, 2026
e4aae3e
Boostball README: third-wave Kit counts and how the big goal explosio…
claude Nov 19, 2026
6d71fa1
Backrooms Locker: Spanish, README, brighter gold, gun close-ups, cele…
claude Nov 19, 2026
7f720a0
README: Driftfall Locker wave four, the emote on J; brighter Electric…
claude Nov 19, 2026
21438c6
Backrooms Locker: no fixed red on heads or hands (team readability), …
claude Nov 19, 2026
ba82da9
Blockstorm: hidden Locker for captains (16 outfits, 7 hats, 7 gun skins)
claude Nov 19, 2026
e97644f
Merge remote-tracking branch 'origin/skins3-shooters' into skins-all
claude Nov 19, 2026
42e14b3
Boostball third-wave Kit, second pass: a new Stadium Wave and Light D…
claude Nov 19, 2026
9b91445
Driftfall Locker: White Tuxedo back under the standard's triangles wi…
claude Nov 19, 2026
956a1cf
Boostball: a thicker Light Dragon that reads from the wide camera; RE…
claude Nov 19, 2026
7be5fc8
Merge remote-tracking branch 'origin/skins4-boostball' into skins-all
claude Nov 19, 2026
5ac063f
Backrooms Locker: bold outfit redesign, Locker material with its own …
claude Nov 19, 2026
faa5ddf
Driftfall Locker: no key hint on touch screens; an older page keeps t…
claude Nov 19, 2026
4572208
Merge remote-tracking branch 'origin/skins4-driftfall' into skins-all
claude Nov 19, 2026
b49b4fc
Merge remote-tracking branch 'origin/wallet-hardening' into skins-all
claude Nov 19, 2026
a49f85a
Merge remote-tracking branch 'origin/skins2-avatars' into skins-all
claude Nov 19, 2026
fb4d9a2
Backrooms Locker: brighter effects centred on the body, bigger celebr…
claude Nov 19, 2026
8860ea2
Server catalogue regenerated for the combined skins catalogue (1,843 …
claude Nov 19, 2026
6a2a60d
Merge remote-tracking branch 'origin/skins4-backrooms' into skins-all
claude Nov 19, 2026
4bdd990
Server catalogue regenerated with the Backrooms Locker (1,920 items)
claude Nov 19, 2026
5a87fe6
Merge branch 'upmain' into skins-all
claude Nov 19, 2026
f362bdd
Merge branch 'wallet-hardening' into skins-all
claude Nov 19, 2026
760a004
Merge branch 'upmain' into skins-all
claude Nov 19, 2026
6b507e6
Merge branch 'main' into skins-all
ASCoding11 Nov 19, 2026
File filter

Filter by extension

Filter by extension

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

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion e63334287a3deaa3/2048/es.js

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

51 changes: 46 additions & 5 deletions e63334287a3deaa3/2048/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<script src="/e63334287a3deaa3/lang.js"></script>
<script src="/e63334287a3deaa3/2048/es.js"></script>
<script src="/e63334287a3deaa3/captains.js"></script> <!-- who may open Styles while they are not public (see README) -->
<script src="/namefilter.js"></script> <!-- masks rude words in player names (see README) -->
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>2048</title>
Expand Down Expand Up @@ -661,6 +662,7 @@ <h3>Settings</h3>
===================================================================== */
const cv=$('cv'),mainCtx=cv.getContext('2d');
let ctx=mainCtx; // swapped for a moment while a tile or the board is painted into its own picture
let WR=null; // a captain's Styles (styles.js, see the end of this script); null for everyone else
const boardEl=$('board'),app=$('app'),sideEl=$('side');
const REDUCED=matchMedia('(prefers-reduced-motion: reduce)').matches;
const SLIDE_MS=110,POP_MS=150,SPAWN_DELAY=50,SPAWN_MS=140;
Expand Down Expand Up @@ -770,6 +772,7 @@ <h3>Settings</h3>
const lw=Math.max(1.5,c*0.028);
ctx.strokeStyle=st.rim;ctx.lineWidth=lw;rr(-h+lw*0.5,-h+lw*0.5,c-lw,c-lip-lw,Math.max(1,RC-lw*0.5));ctx.stroke();
}
if(WR)WR.tileArt(ctx,st,c,lip); // a captain's tile set (styles.js): art at the edges, under the number
if(st.label){
// Ladder tile: the number small in the top-left corner, an icon (desserts) and the name.
ctx.font=st.font;ctx.textAlign='left';ctx.textBaseline='top';
Expand Down Expand Up @@ -943,14 +946,16 @@ <h3>Settings</h3>
ctx=boardCv.getContext('2d');
try{
ctx.setTransform(DPR,0,0,DPR,0,0);
const g=ctx.createLinearGradient(0,0,0,S);g.addColorStop(0,COL_BOARD);g.addColorStop(1,COL_BOARD_LO);
const B=WR&&WR.board(),K=B?B.c:[COL_BOARD,COL_BOARD_LO,COL_WELL,COL_WELL_SH,COL_WELL_HI]; // a captain's board (styles.js), as bright as the walnut
const g=ctx.createLinearGradient(0,0,0,S);g.addColorStop(0,K[0]);g.addColorStop(1,K[1]);
ctx.fillStyle=g;rr(0,0,S,S,RB);ctx.fill();
if(B)WR.boardExtra(ctx,S,RB);
const d=Math.max(1,c*0.02);
for(let i=0;i<N;i++){
const x=posX[i],y=posY[i];
ctx.fillStyle=COL_WELL_HI;rr(x,y+d,c,c,RC);ctx.fill(); // a light line under the well
ctx.fillStyle=COL_WELL_SH;rr(x,y,c,c,RC);ctx.fill(); // the shaded top of the well
ctx.fillStyle=COL_WELL;rr(x,y+c*0.045,c,c*0.955,RC);ctx.fill();
ctx.fillStyle=K[4];rr(x,y+d,c,c,RC);ctx.fill(); // a light line under the well
ctx.fillStyle=K[3];rr(x,y,c,c,RC);ctx.fill(); // the shaded top of the well
ctx.fillStyle=K[2];rr(x,y+c*0.045,c,c*0.955,RC);ctx.fill();
}
}finally{ctx=mainCtx}
return boardCv;
Expand Down Expand Up @@ -1289,8 +1294,44 @@ <h3>Settings</h3>
layout();
enterMode();

/* ---------- Styles (captains only for now; README, "2048") ----------
Tile sets and boards, drawn by styles.js beside this page. stylesOn() says whether this player may open it:
G2048_PUBLIC (the one line that opens it to everyone), one of the site's captains (../captains.js), or ?styles=1 on
localhost or in an automated browser (remembered for the tab; ?styles=0 forgets it). styles.js (and ../cosmetics.js,
for the item names) is fetched only when it is true; until then WR is null and everything is drawn exactly as
before. Looks only: numbers, colours and the rules are the game's. Saved in this browser as g48:look. */
const G2048_PUBLIC=false;
const CAPTAINS=window.BackRoomCaptains||null;
const stylesOn=()=>G2048_PUBLIC||!!(CAPTAINS&&CAPTAINS.may(false,'styles','2048-styles'));
let wrAsked=false;
function wrRebuild(){clearStyles();boardCv=null;redraw()}
// a little 2 x 2 board for the Styles screen, in a look (swap puts the look on and gives back a function that takes it off)
function wrPreview(cv,look,swap){
const undo=swap(look),g=cv.getContext('2d');
try{
const W=cv.width,S2=2*CELL+3*GAP,sc=W/S2,B=WR.board(),K=B?B.c:[COL_BOARD,COL_BOARD_LO,COL_WELL,COL_WELL_SH,COL_WELL_HI];
g.setTransform(1,0,0,1,0,0);g.clearRect(0,0,W,W);g.setTransform(sc,0,0,sc,0,0);
const gr=g.createLinearGradient(0,0,0,S2);gr.addColorStop(0,K[0]);gr.addColorStop(1,K[1]);g.fillStyle=gr;g.fillRect(0,0,S2,S2);
if(B)WR.boardExtra(g,S2,RB);
[2,16,128,2048].forEach((v,i)=>{const x=GAP+(i%2)*(CELL+GAP),y=GAP+(i>>1)*(CELL+GAP);g.fillStyle=K[2];g.fillRect(x,y,CELL,CELL);
g.save();g.translate(x+CELL/2,y+CELL/2);ctx=g;try{paintTile(v)}finally{ctx=mainCtx;g.restore()}});
}finally{undo()}
}
function wrLoad(){
if(wrAsked)return;wrAsked=true;
const add=src=>new Promise((res,rej)=>{const e=document.createElement('script');e.src=src;e.onload=res;e.onerror=rej;document.head.appendChild(e)});
(window.BackRoomCosmetics?Promise.resolve():add('../cosmetics.js')).then(()=>add('styles.js')).then(()=>{
if(!window.G2048Styles||!window.BackRoomCosmetics)throw new Error('styles did not load');
WR=window.G2048Styles({C:window.BackRoomCosmetics,store,$,RC:()=>RC,preview:wrPreview,get on(){return stylesOn()},rebuild:wrRebuild});
wrSync();
}).catch(e=>{wrAsked=false;console.error(e)});
}
function wrSync(){if(stylesOn())wrLoad();if(WR){WR.access();wrRebuild()}}
wrSync();
if(CAPTAINS)CAPTAINS.onChange(wrSync);

// Test hook for the automated rule checks (only under WebDriver/Playwright).
if(navigator.webdriver)window.__g48={
if(navigator.webdriver)window.__g48={get WR(){return WR},stylesOn,
slideLine,moveBoard,spawnTile,isOver,canMove,newBoard,maxTile,validBoard,LINES,linesFor,
KEY_GAME,KEY_BEST,KEY_OPTS,MODE_IDS,keysFor,statsFor,
get state(){return G.state},get board(){return G.board.slice()},get score(){return G.score},get best(){return G.best},
Expand Down
Loading
Loading