Public: anyone can read this; the crew can change it.

Migrated from github.com/amirmushichge/pixel-plays

Add Chimney Sweep: the playable page and its place in the catalogue, on the rules in `chimney-sweep/roofs.js` #313

Merged opened this

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

Merged

Chimney Sweep now has its playable page at chimney-sweep/index.html, built on roofs.js with no rules of its own. I ran only the test files that cover the change (the page tests, serve, shell, town, and the Chimney Sweep and round-list tests in playtest.test.mjs).

Notes

shipped production is serving it deploy ab54f53

opened this

Chimney Sweep now has its playable page at chimney-sweep/index.html, built on roofs.js with no rules of its own. I ran only the test files that cover the change (the page tests, serve, shell, town, and the Chimney Sweep and round-list tests in playtest.test.mjs). They pass, and so does the scripted round: it wins with 3 lives in about 10.6 s. I did not run the full suite or bun scripts/gate.ts, and there is no scripts/gate.ts in this clone. bun x tsc --noEmit printed only its help text and did not finish, so it gave no verdict. The branch is rebased on main.

The page

  • Scene: a cut-away brick stack with four soot-black flues, a top-hatted sweep with a brush, three rooftops along the top and a weathervane. Shadows fall screen-right on the 360x280 canvas. The weathervane is the only ambient motion and stops under prefers-reduced-motion; smoke and the sweep are play.
  • Smoke: lumpy, light-grey wobbling clouds that rise, against square, static, red brickwork.
  • Input: tap or space pulls. The left and right arrows or a swipe change flue, one flue per swipe.
  • HUD: height, flue, time, score and best, with lives drawn as brushes plus a number. Each pull, hit, flue change and refusal goes to the aria-live status line, which carries the rules' own line.
  • Required items: there is a #mute button and no .mp3. The rules popup is four lines and the canvas aria-label says how to play.

Catalogue

  • Entries: GAMES has the entry exactly as specified, with the matching <li> in the root index.html. The README has a Games table row, the no-music list and the ambient-motion note.
  • Building: nothing was added for the town building; it comes from GAMES, as for the other games.
  • Share card: bun scripts/og.mjs was run, which produced og/chimney-sweep.png and updated og/home.png.

Tests

  • Rounds and serving: rounds.mjs has a scripted round that looks half a second ahead with the rules' own tick and changes flue to dodge smoke. serve.test.mjs asserts /chimney-sweep/ and /chimney-sweep/roofs.js answer 200.
  • Page tests: chimney-sweep/page.test.mjs has 7 tests and runs in under 2 s.

Test I edited: serve.test.mjs only allowed nine kinds, so I added Climbing to its list and to the shell.js comment. The kind itself is the issue's.

Not done: no dynamic sweep-and-smoke screenshot was reviewed, only the opening-frame share card.

🤖 Generated with Claude Code

Closes #288

commented

Chimney Sweep now has its playable page at chimney-sweep/index.html, built on roofs.js with no rules of its own. I ran only the test files that cover the change (the page tests, serve, shell, town, and the Chimney Sweep and round-list tests in playtest.test.mjs). They pass, and so does the scripted round: it wins with 3 lives in about 10.6 s. I did not run the full suite or bun scripts/gate.ts, and there is no scripts/gate.ts in this clone. bun x tsc --noEmit printed only its help text and did not finish, so it gave no verdict. The branch is rebased on main.

The page

  • Scene: a cut-away brick stack with four soot-black flues, a top-hatted sweep with a brush, three rooftops along the top and a weathervane. Shadows fall screen-right on the 360x280 canvas. The weathervane is the only ambient motion and stops under prefers-reduced-motion; smoke and the sweep are play.
  • Smoke: lumpy, light-grey wobbling clouds that rise, against square, static, red brickwork.
  • Input: tap or space pulls. The left and right arrows or a swipe change flue, one flue per swipe.
  • HUD: height, flue, time, score and best, with lives drawn as brushes plus a number. Each pull, hit, flue change and refusal goes to the aria-live status line, which carries the rules' own line.
  • Required items: there is a #mute button and no .mp3. The rules popup is four lines and the canvas aria-label says how to play.

Catalogue

  • Entries: GAMES has the entry exactly as specified, with the matching <li> in the root index.html. The README has a Games table row, the no-music list and the ambient-motion note.
  • Building: nothing was added for the town building; it comes from GAMES, as for the other games.
  • Share card: bun scripts/og.mjs was run, which produced og/chimney-sweep.png and updated og/home.png.

Tests

  • Rounds and serving: rounds.mjs has a scripted round that looks half a second ahead with the rules' own tick and changes flue to dodge smoke. serve.test.mjs asserts /chimney-sweep/ and /chimney-sweep/roofs.js answer 200.
  • Page tests: chimney-sweep/page.test.mjs has 7 tests and runs in under 2 s.

Test I edited: serve.test.mjs only allowed nine kinds, so I added Climbing to its list and to the shell.js comment. The kind itself is the issue's.

Not done: no dynamic sweep-and-smoke screenshot was reviewed, only the opening-frame share card.

🤖 Generated with Claude Code

Approved

Static client-side game; no server surface. The only innerHTML (brush icons) is built from a number and fixed markup. No secrets, no dependency, no mp3. Preview serves the page, rules and card with 200. Page drives roofs.js only, tests cover pull, cooldown, flue change, hits, end and mute, and a scripted round exists. Nit, not blocking: finish(before) takes an unused parameter.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs