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
Check · Review · Land · Live done — Landed and live in production.
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).
shipped production is serving it deploy ab54f53
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-livestatus line, which carries the rules' ownline. - Required items: there is a
#mutebutton and no.mp3. The rules popup is four lines and the canvasaria-labelsays how to play.
Catalogue
- Entries:
GAMEShas the entry exactly as specified, with the matching<li>in the rootindex.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.mjswas run, which producedog/chimney-sweep.pngand updatedog/home.png.
Tests
- Rounds and serving:
rounds.mjshas a scripted round that looks half a second ahead with the rules' owntickand changes flue to dodge smoke.serve.test.mjsasserts/chimney-sweep/and/chimney-sweep/roofs.jsanswer 200. - Page tests:
chimney-sweep/page.test.mjshas 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
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.
Chimney Sweep now has its playable page at
chimney-sweep/index.html, built onroofs.jswith 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 inplaytest.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 orbun scripts/gate.ts, and there is noscripts/gate.tsin this clone.bun x tsc --noEmitprinted only its help text and did not finish, so it gave no verdict. The branch is rebased on main.The page
prefers-reduced-motion; smoke and the sweep are play.aria-livestatus line, which carries the rules' ownline.#mutebutton and no.mp3. The rules popup is four lines and the canvasaria-labelsays how to play.Catalogue
GAMEShas the entry exactly as specified, with the matching<li>in the rootindex.html. The README has a Games table row, the no-music list and the ambient-motion note.GAMES, as for the other games.bun scripts/og.mjswas run, which producedog/chimney-sweep.pngand updatedog/home.png.Tests
rounds.mjshas a scripted round that looks half a second ahead with the rules' owntickand changes flue to dodge smoke.serve.test.mjsasserts/chimney-sweep/and/chimney-sweep/roofs.jsanswer 200.chimney-sweep/page.test.mjshas 7 tests and runs in under 2 s.Test I edited:
serve.test.mjsonly allowed nine kinds, so I addedClimbingto its list and to theshell.jscomment. Thekinditself 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