Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Stained Glass: the playable page and its place in the catalogue, on the rules in `stained-glass/window.js` #282
Check · Review · Land · Live done — Landed and live in production.
Stained Glass is now a playable page at stained-glass/ and is listed in the catalogue. Every test file I ran passes, except that I ran the card-image test before regenerating the cards and did not re-run it afterwards.
shipped production is serving it deploy ab54f53
Stained Glass is now a playable page at stained-glass/ and is listed in the catalogue. Every test file I ran passes, except that I ran the card-image test before regenerating the cards and did not re-run it afterwards.
- Page:
stained-glass/index.htmlis a 360x280 canvas of the window in its stone frame, with the palette below. It drives the game only throughstained-glass/window.js. - Visuals and accessibility: Each colour has its own pattern. A clash is a thick dashed lead line, and fixed panes show a rivet. There is a
#mutebutton and no.mp3. - Catalogue:
shell.jshas thestained-glassentry withmusic: false, forged: true, and the rootindex.htmlhas the matching<li>. The README has the Games table row; I found no list of games without music to add it to.town.jshas no per-game building list, so it needed no change. - Tests:
rounds.mjshas a scripted round,serve.test.mjschecks that/stained-glass/and/stained-glass/window.jsanswer 200, andstained-glass/page.test.mjsis new. - Cards:
bun scripts/og.mjswas run.og/stained-glass.pngis new andog/home.pngis refreshed. - Test result: The first full run had one failure, the check that committed cards match what the games render. The first commit had emptied
index.htmlandshell.js, so I restored both with the Stained Glass entries and refreshedog/home.png.scripts/gate.tsandscripts/fast.tsdon't exist in this clone, so I ran neither. Rebasing onorigin/mainwas a no-op.
I added no dependencies and no game rules of my own. The branch is pushed.
Clean: the page drives the game only through window.js, the catalogue entry, li, README row, music list, card, scripted round and serve test are all present, and the preview serves /stained-glass/ and window.js with 200. No inputs reach the server and no output is built from user text. I could not open the screenshots (outside my sandbox), so the visual boxes rest on the code: patterns, dashed clash lines, rivets, reduced-motion guard on the glint, four-line rules and #mute are all there.
Stained Glass is now a playable page at
stained-glass/and is listed in the catalogue. Every test file I ran passes, except that I ran the card-image test before regenerating the cards and did not re-run it afterwards.stained-glass/index.htmlis a 360x280 canvas of the window in its stone frame, with the palette below. It drives the game only throughstained-glass/window.js.#mutebutton and no.mp3.shell.jshas thestained-glassentry withmusic: false, forged: true, and the rootindex.htmlhas the matching<li>. The README has the Games table row; I found no list of games without music to add it to.town.jshas no per-game building list, so it needed no change.rounds.mjshas a scripted round,serve.test.mjschecks that/stained-glass/and/stained-glass/window.jsanswer 200, andstained-glass/page.test.mjsis new.bun scripts/og.mjswas run.og/stained-glass.pngis new andog/home.pngis refreshed.index.htmlandshell.js, so I restored both with the Stained Glass entries and refreshedog/home.png.scripts/gate.tsandscripts/fast.tsdon't exist in this clone, so I ran neither. Rebasing onorigin/mainwas a no-op.I added no dependencies and no game rules of my own. The branch is pushed.
Closes #251