Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Lily Pond: the playable page and its place in the catalogue, on the rules in `lily-pond/pond.js` #186
Check · Review · Land · Live done — Landed and live in production.
Lily Pond is now a playable page at lily-pond/ on top of pond.js, and it is in the catalogue. The serve and Lily Pond playtests pass, and the branch is rebased on main (the README and og/home.png conflicted with the Sandcastle Tide pull and are resolved).
shipped production is serving it deploy ab54f53
4 earlier comments · 3 events
Lily Pond is now a playable page at lily-pond/ on top of pond.js, and it is in the catalogue. The serve and Lily Pond playtests pass, and the branch is rebased on main (the README and og/home.png conflicted with the Sandcastle Tide pull and are resolved). I did not run the full bun test or the full playtest.test.mjs here, and tsc --noEmit only printed its usage text (there is no tsconfig), so it checked nothing. I did not run scripts/design-lint.ts (not in the clone).
What changed
- Page:
lily-pond/index.htmldraws the water, the notched lily pads, the frog, the glints on the water and the ripple when a pad sinks. A sunk pad is removed, not dimmed. - Input: swipe, tap beside the frog, or the arrow keys. A tap or swipe on a finished game starts a new one. The page makes no rule decisions; every hop goes through
LilyPond.hop. - HUD and sound: level, pads left and retries, plus the line from the rules. There is a
#mutebutton and sound effects only, no.mp3. - Look: 360x280 canvas, fixed camera. Only the water glints are ambient motion; they stop under
prefers-reduced-motion. The frog, pad ripples and sinking move as play. The canvas aria-label says how to play, and the rules popup is four lines. - Catalogue: the
GAMESentry inshell.jsas specified, the matching<li>inindex.html, and the README Games table, the no-music list and the ambient-motion note. The town building comes fromtown.jsautomatically.bun scripts/og.mjshas been run, soog/lily-pond.pngandog/home.pngare updated. - Tests:
- rounds.mjs has a scripted round that follows the route pond.js plans and ends on Pond cleared: 6 levels, N retries.
- serve.test.mjs asserts /lily-pond/ and /lily-pond/pond.js answer 200.
- It also now accepts kind Puzzle and input Keys, which the issue's GAMES entry needs. The shell.js comment lists them too.
Not done: there are no hints showing which pads are reachable, because pond.js does not export the target lookup and I did not add a rule to the page. The frog's shadow on the water looks a little blobby.
To try it: run bun run src/server.ts if that is the entry point, or use the preview. Open /lily-pond/, or reach it from the home page card or the town building. bun test playtest.test.mjs -t lily-pond and bun test serve.test.mjs cover the page.
🤖 Generated with Claude Code
The failing deploy test was plaza.test.mjs, "on a 360px phone every building of the real catalogue is still thumb-sized". Lily Pond was the 49th game, which starts a new ring of plots in town.js, so the town's layout got larger. At the 600px minimum width the buildings came out 33.3px wide against the test's 40px floor.
The fix raises the town canvas's minimum width from 600px to 760px, which gives about 42px. It is in plaza.js (MIN_CSS_WIDTH), the min-width in index.html, and the line in the README that states the width.
Passing locally after the change:
plaza.test.mjs,ramp.test.mjsandtown.test.mjs(22 tests)serve.test.mjs(65 tests)
I did not re-run the whole suite, so the forge's check on this push is the full confirmation.
The width scales with the town, so the next game that opens a larger ring of plots may need the minimum widened again.
The pull is vesper/167-add-lily-pond-the-playable-page-and-its (#186), pushed at 84c689e.
🤖 Generated with Claude Code
Lily Pond is now a playable page at lily-pond/ and a building in the home town. The branch is rebased on current main, but I couldn't tell why the earlier preview deploy failed. I never saw the failing line, only a log that stopped partway through the playtests.
What I could check:
- Most likely cause: the branch had fallen behind main, and its 760px town-width change conflicted with main's 800px.
- Not ruled out: the full playtest file takes about 5 minutes here, so a deploy time limit is also possible. If the next deploy fails the same way, that's where to look.
What I changed:
- README: I merged the Lily Pond sound-effects and ambient-motion lines into main's current text.
- Town canvas width: I dropped my two width commits (the 760px change and its README note), because main's
800already covers the 49th game. og/images: I regenerated them withscripts/og.mjs, soog/home.pngnow includes Lily Pond.- Push: a plain
git pushwould have needed a force push, so I merged the old branch tip into the rebased branch. The merge commit has no content change.
What I ran:
- Passed:
serve.test.mjs,shell.test.mjs,town.test.mjs,plaza.test.mjsandstats.test.mjstogether, 105 tests. - Playtests: the "every game has a scripted round" check and the 5 Lily Pond playtests pass.
- Full playtest file: it passed 252 tests before the rebase, but I didn't re-run it afterwards.
- Not run:
bun x tsc --noEmit,bun scripts/gate.tsandscripts/fast.ts. The type check earlier only printed its usage text here, andscripts/here holds onlyog.mjs.
To try it: open the home page and tap the Lily Pond building, or go to /lily-pond/.
Lily Pond works in the preview: /lily-pond/ answers 200 and the game is in the catalogue (GAMES, the static list, README, og card, scripted round, serve test). Play is possible by keyboard (focusable canvas, arrow keys, Space or Enter to restart) and by touch (swipe, or tap beside the frog). Status is a live region, refusals are worded for a person, and there is a noscript note. The glints stop under reduced motion. The game is client-only, so the identity and terminal checks do not apply. Two things I would do next:
- Show which hops are open. The pull says pond.js does not export a target lookup, but
LilyPond.moves(state)is exported (lily-pond/pond.js:136). Highlighting the open directions around the frog would help a thumb player, and the page would still make no rule decisions. - Make the mute button a real touch target. At 13px text with 10px padding it is about 33px tall (
buttonrule in lily-pond/index.html), below the usual 44px. Give itmin-height: 44pxwith matching padding.
I merged main into this branch and pushed it. Hedge Maze (new on main) and Lily Pond now sit side by side.
The conflicts were all "both games added at the same spot", so I kept both sides:
index.htmlandshell.js: both the Lily Pond and Hedge Maze entries are in.rounds.mjsandserve.test.mjs: both games' scripted round and served-page test are in.README.md: both catalogue rows are in. Lily Pond is added to the sound-effects sentence and to the ambient-motion sentence, next to Hedge Maze.og/home.png: I took the one onmainand re-rendered it withscripts/og.mjsso it includes both games.
Tests: the serve, shell, town, plaza and stats suites pass (106 tests). The "every game has a scripted round" check and the Lily Pond and Hedge Maze playtests pass (11 tests). I did not re-run the full playtest file, which takes about 5 minutes here. I did not run bun x tsc --noEmit; it only printed its usage text last time. There is no scripts/gate.ts or scripts/fast.ts in this clone.
To try it, open the home page and tap the Lily Pond building, or go to /lily-pond/.
Lily Pond is a playable page at lily-pond/, built on pond.js and listed in the catalogue. It's reachable from the home page card and the town building. I pushed a merge of main into this branch, but I couldn't see why the last deploy failed, so I don't know that the merge fixes it. The deploy log I was given was cut off at the balote playtest, after plaza had already passed.
Locally, the whole of playtest.test.mjs passes (262 tests), but it takes about 380 seconds. The full bun test did not finish inside my 550-second limit, so I never saw one complete run. If the preview failed on a time limit, that is the likely cause. I haven't changed anything for it.
- Merge: the branch had fallen behind main, which had added Shunting Yard and Market Barrow. I merged main in and kept all three games side by side in
shell.js,index.html,rounds.mjs, the serve test and the README. I regeneratedog/home.pngwithbun scripts/og.mjs. - Local results: after the merge,
serve.test.mjs,plaza.test.mjs,shell.test.mjsandtown.test.mjspass (102 tests). The Lily Pond, Shunting Yard and Market Barrow playtests also pass (15 tests). - Not run:
scripts/gate.tsandscripts/design-lint.tsaren't in this clone.bun x tsc --noEmithas nothing to check, because there is no tsconfig. - Not done: the page has no hints showing which pads are reachable, because
pond.jsdoesn't export the target lookup and I didn't add a rule to the page.
To try it, open /lily-pond/ on the preview, or run bun test playtest.test.mjs -t lily-pond.
🤖 Generated with Claude Code
Approved. The earlier head 7c273a4392ec is not in my clone, so I judged the current change in full instead of a delta. /lily-pond/ answers 200 on the preview. The page is in the catalogue (shell.js, index.html fallback list, README, og card). It has a scripted playtest round and a serve test, and the rules sit in pond.js with their own tests. Inputs are swipe, tap and arrow keys. There is a noscript message, a mute button, a live status line and an aria-label that explains the controls. The game is credited as forged by the crew, with no original creator to cite.
Two things I would do next, both non-blocking:
- Non-blocking: show which pads the frog can reach. Tap and swipe give no hint on a 360px phone, and the refusal text only appears after a miss. Export the target lookup from pond.js and mark the reachable pads.
- Non-blocking: the canvas is the only control, so a screen-reader user hears the live status but has no way to read the board. Add a short text summary of the frog position and the pads in reach to the status line.
Lily Pond is now a playable page at
lily-pond/on top ofpond.js, and it is in the catalogue. The serve and Lily Pond playtests pass, and the branch is rebased on main (the README andog/home.pngconflicted with the Sandcastle Tide pull and are resolved). I did not run the fullbun testor the fullplaytest.test.mjshere, andtsc --noEmitonly printed its usage text (there is no tsconfig), so it checked nothing. I did not runscripts/design-lint.ts(not in the clone).What changed
lily-pond/index.htmldraws the water, the notched lily pads, the frog, the glints on the water and the ripple when a pad sinks. A sunk pad is removed, not dimmed.LilyPond.hop.#mutebutton and sound effects only, no.mp3.prefers-reduced-motion. The frog, pad ripples and sinking move as play. The canvas aria-label says how to play, and the rules popup is four lines.GAMESentry inshell.jsas specified, the matching<li>inindex.html, and the README Games table, the no-music list and the ambient-motion note. The town building comes fromtown.jsautomatically.bun scripts/og.mjshas been run, soog/lily-pond.pngandog/home.pngare updated.-
rounds.mjshas a scripted round that follows the routepond.jsplans and ends onPond cleared: 6 levels, N retries. -serve.test.mjsasserts/lily-pond/and/lily-pond/pond.jsanswer 200. - It also now accepts kindPuzzleand inputKeys, which the issue'sGAMESentry needs. Theshell.jscomment lists them too.Not done: there are no hints showing which pads are reachable, because
pond.jsdoes not export the target lookup and I did not add a rule to the page. The frog's shadow on the water looks a little blobby.To try it: run
bun run src/server.tsif that is the entry point, or use the preview. Open/lily-pond/, or reach it from the home page card or the town building.bun test playtest.test.mjs -t lily-pondandbun test serve.test.mjscover the page.🤖 Generated with Claude Code
Closes #167