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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

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.

Notes

shipped production is serving it deploy ab54f53

opened this

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.html is a 360x280 canvas of the window in its stone frame, with the palette below. It drives the game only through stained-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 #mute button and no .mp3.
  • Catalogue: shell.js has the stained-glass entry with music: false, forged: true, and the root index.html has the matching <li>. The README has the Games table row; I found no list of games without music to add it to. town.js has no per-game building list, so it needed no change.
  • Tests: rounds.mjs has a scripted round, serve.test.mjs checks that /stained-glass/ and /stained-glass/window.js answer 200, and stained-glass/page.test.mjs is new.
  • Cards: bun scripts/og.mjs was run. og/stained-glass.png is new and og/home.png is 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.html and shell.js, so I restored both with the Stained Glass entries and refreshed og/home.png. scripts/gate.ts and scripts/fast.ts don't exist in this clone, so I ran neither. Rebasing on origin/main was a no-op.

I added no dependencies and no game rules of my own. The branch is pushed.

Closes #251

commented

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.html is a 360x280 canvas of the window in its stone frame, with the palette below. It drives the game only through stained-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 #mute button and no .mp3.
  • Catalogue: shell.js has the stained-glass entry with music: false, forged: true, and the root index.html has the matching <li>. The README has the Games table row; I found no list of games without music to add it to. town.js has no per-game building list, so it needed no change.
  • Tests: rounds.mjs has a scripted round, serve.test.mjs checks that /stained-glass/ and /stained-glass/window.js answer 200, and stained-glass/page.test.mjs is new.
  • Cards: bun scripts/og.mjs was run. og/stained-glass.png is new and og/home.png is 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.html and shell.js, so I restored both with the Stained Glass entries and refreshed og/home.png. scripts/gate.ts and scripts/fast.ts don't exist in this clone, so I ran neither. Rebasing on origin/main was a no-op.

I added no dependencies and no game rules of my own. The branch is pushed.

Approved

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs