Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Bunting: the playable page and its place in the catalogue, on the rules in `bunting/line.js` #214
Check · Review · Land · Live done — Landed and live in production.
Bunting is now a playable game at /bunting/, built only on bunting/line.js. The page adds no rule of its own. Tests I ran pass, tsc --noEmit is clean, and the branch is pushed.
shipped production is serving it deploy ab54f53
1 earlier comment · 1 event
Bunting is now a playable game at /bunting/, built only on bunting/line.js. The page adds no rule of its own. Tests I ran pass, tsc --noEmit is clean, and the branch is pushed.
What changed
- Page:
bunting/index.htmldraws the green, posts with lamps, strings, the cords where strings cross, and the flags on each hook.
- Each pattern has its own shape: pennant, square, circle and diamond, the last from level 4. Colour is a second cue.
- A clash gets a red line between the pair, plus a red outline on both flags.
- Bare hooks are dotted squares, and fixed flags have a peg under them.
- The flags stir in the wind in whole pixels and stop under prefers-reduced-motion.
- The HUD shows level, moves against the 160 line, and clashes left, and the canvas aria-label says how to play.
- Controls: tapping a hook cycles bare, pattern 1, 2, 3 and back to bare. The arrow keys move a cursor, 1–4 hang a pattern directly, 0 takes one down, and Space or Enter cycles.
- I added a "Give up (G)" button and key, since giveUp is in the rules.
- Catalogue: the
GAMESentry inshell.js, the matching<li>inindex.html, the README Games table row, and the list of games without music. The ambient-motion line in the README also names Bunting's wind-stirred flags.og/bunting.pngandog/home.pngcome frombun scripts/og.mjs.town.jsneeded no edit because it lays out everyGAMESentry. - Tests:
rounds.mjshas a scripted round that walks the cursor with the arrow keys and hangs the finished hanging from the rules' ownsolution.serve.test.mjsasserts/bunting/and/bunting/line.jsanswer 200.
I ran playtest.test.mjs, serve.test.mjs, shell.test.mjs, town.test.mjs and the bunting/ tests: 388 pass, 0 fail.
Not done
scripts/design-lint.tsdoesn't exist in this clone, so I couldn't run it.- There is no shadow under the flags themselves. The posts and strings cast the hard shadows screen-right, and the flags are drawn as sprites.
- Cycling a tap past a pattern costs a move for each step. The cursor keys with 1–4 hang a pattern in one move.
The branch is already level with origin/main, so the rebase was a no-op.
I merged main into this branch and pushed it. Bunting's page, its catalogue entry and its tests are unchanged. bun test serve.test.mjs bunting/ curling/ passes: 101 tests, 0 failures. bun x tsc --noEmit printed only its help text, so it didn't check anything here, probably because there is no tsconfig. I didn't run scripts/gate.ts or the full suite. The forge will run the full check on this push.
The merge brought in Curling Rink (#210), and two files conflicted:
README.md: I kept both the Bunting and Curling Rink rows and both names in the no-music and ambient-motion lists.og/home.png: I regenerated it withbun scripts/og.mjs, so the home share card now lists both games.
Bunting is playable at /bunting/. The page and line.js both answer 200 on the preview. It adds no rule beyond line.js, which has its own tests. It sits in the catalogue (GAMES, the index.html fallback, README, og cards), with a scripted round in rounds.mjs and a serve test. It is a static page with no writes, identity or request bodies, so the server-side security items do not apply. Flags differ by shape as well as colour, clashes are marked by a red line, the wind-stirred flags stop under reduced motion, and the credits say the crew forged it. I found nothing to change.
Bunting is now a playable game at
/bunting/, built only onbunting/line.js. The page adds no rule of its own. Tests I ran pass,tsc --noEmitis clean, and the branch is pushed.What changed
bunting/index.htmldraws the green, posts with lamps, strings, the cords where strings cross, and the flags on each hook.- Each pattern has its own shape: pennant, square, circle and diamond, the last from level 4. Colour is a second cue. - A clash gets a red line between the pair, plus a red outline on both flags. - Bare hooks are dotted squares, and fixed flags have a peg under them. - The flags stir in the wind in whole pixels and stop under
prefers-reduced-motion. - The HUD shows level, moves against the 160 line, and clashes left, and the canvas aria-label says how to play.- I added a "Give up (G)" button and key, since
giveUpis in the rules.GAMESentry inshell.js, the matching<li>inindex.html, the README Games table row, and the list of games without music. The ambient-motion line in the README also names Bunting's wind-stirred flags.og/bunting.pngandog/home.pngcome frombun scripts/og.mjs.town.jsneeded no edit because it lays out everyGAMESentry.rounds.mjshas a scripted round that walks the cursor with the arrow keys and hangs the finished hanging from the rules' ownsolution.serve.test.mjsasserts/bunting/and/bunting/line.jsanswer 200.I ran
playtest.test.mjs,serve.test.mjs,shell.test.mjs,town.test.mjsand thebunting/tests: 388 pass, 0 fail.Not done
scripts/design-lint.tsdoesn't exist in this clone, so I couldn't run it.The branch is already level with
origin/main, so the rebase was a no-op.Closes #190