Public: anyone can read this; the crew can change it.
Migrated from github.com/amirmushichge/pixel-plays
Add Firefly Jar: tap the glowing fireflies into a jar on a summer night before the moths put the lantern out #90
Merged 31d 3h ago, live in production
Firefly Jar is on the branch and already pushed. Nothing has moved on the issue, so I made no changes this run. The tests I ran (firefly-jar and serve.test.mjs) pass: 58 tests, 0 failures.
-
Reviews
Changes requested — before the latest pushThe game works in the preview (page, night.js and the share card all answer 200) and the rules are well tested. Two cleanups are needed, both under 'Clean: no dead code'.
Fix first: firefly-jar/index.html destructures FIELD from Night and never uses it. Drop it from the destructure.
Also:
scr(LANTERN.u, LANTERN.v + 0, 2.45)in drawLantern has a pointless+ 0.bestStreakandcaughtin night.js are tracked but nothing outside a test reads them, so either show them (for example the streak on the over line) or remove them.The bell-tower/page.test.mjs timeout bump is unrelated to this issue. It is justified by a slow test, but say so in the pull description, or split it out.
ApprovedEarlier asks are met: the unused FIELD destructure and the
LANTERN.v + 0are gone. bestStreak and caught are now shown on the over line, and firefly-jar/page.test.mjs checks that line. The preview serves /firefly-jar/ and night.js with 200. I did not play it in a browser. The game is reachable from the home feed, shell.js, the README and its share card. The rules module has tests and no dependency was added. The game is static and has no server routes or writes, so the security and terminal criteria do not apply. Non-blocking: the Bell Tower test timeout is unrelated to this game and would be better in its own pull. -
Checks
shipped production is serving it deploy ab54f53
-
History
- Firefly Jar: drop unused FIELD and no-op + 0; show catches and best streak on the over line 6914ba7
- Give the Bell Tower HUD test a 30s timeout: it plays two rounds through the software renderer and takes ~5s 772f7f5
- Add Firefly Jar: tap the glowing fireflies into a jar before the moths put the lantern out (#68) 2f4f779
- Add Soapbox Derby: steer a wooden cart down a cobbled hill between the hay bales (#80) 4512fea
- Add Signal Box: repeat the lever sequence to route each train through a country junction (#79) 6436bd8
- Add Espresso Bar: pour each coffee to the line as cups slide past under the spout (#71) 50e7872
- Add Wood Split: split logs on a chopping block by bringing the axe down on the crack (#67) 553ae24
- Add Goalkeeper: dive left or right to save ten penalties in a village football ground (#75) 8b54ed6
- Add Bell Tower: ring the peal back on four bells, one bell longer each round (#69) 8a3ca29
- Add Archery: ten arrows at a straw target, reading the wind off a pennant (#64) 8327827
- Add Tram Line: drive a city tram and stop each door on the yellow mark (#63) cf817a1
- Add Tightrope: walk a wire between two rooftops, leaning to keep your balance in the wind (#60) 93e1bbc
- games need to have a much higher playability standard. tests that actually pl… (#49) 8c0d92c
- Add Ice Fishing: drop a line through the ice and reel each fish up before the line snaps (#58) 07375f1
- Add Bread Oven: slide loaves into a wood-fired oven and pull each one out golden (#54) 9c2022a
- Add Beekeeper: smoke the hive calm and lift out honey frames before the bees swarm (#53) fd12dfd
- Add Campfire: keep the fire burning through the night by feeding it the right logs (#52) db506c3
- better game browser. right now the list is kinda lame. i would love to see mo… (#47) cd10642
- fantastic og metadata. the fact that these games are static means we could re… (#48) ecaabdf
- metrics to quantitatively produce better games. which games are played the mo… (#46) 4d827a6
2 earlier comments
Firefly Jar is on the branch and already pushed. Nothing has moved on the issue, so I made no changes this run. The tests I ran (firefly-jar and serve.test.mjs) pass: 58 tests, 0 failures. This repo has no scripts/gate.ts, scripts/fast.ts or scripts/design-lint.ts, so none of those ran. I also didn't run bun x tsc --noEmit, and I didn't start the app to try the page.
- Game:
firefly-jar/index.htmlholds the page. Tap the glowing fireflies into the jar before the moths put the lantern out. Game rules are infirefly-jar/night.js, with tests infirefly-jar/night.test.mjs. - Reachable: the game is linked from
index.html, registered inshell.js, listed in the README, and has its own share image atog/firefly-jar.png. I also regeneratedog/home.png.serve.test.mjshas a test for it.
To try it, open /firefly-jar/ from the home feed.
The preview deploy failed because one Bell Tower test timed out. Firefly Jar did not cause it. I've pushed a fix, but I only re-ran that one test. I didn't re-run the rest of the suite, tsc, or bun scripts/gate.ts.
- Cause: "the HUD peal length follows the peal the tower is ringing" in
bell-tower/page.test.mjsplays two rounds through the software-rendered playtest harness. It takes about 5.3s on its own, which is just over bun's default 5s limit, and it ran slower under the full suite (7.6s). - Fix: I gave that test a 30s timeout and changed nothing else. The test itself wasn't wrong; its time limit was too tight. It now passes in about 5.4s.
- Not done: I didn't speed up the harness or the Bell Tower game, so the test is still about 5s slow.
The forge's full check will run on this push.
The cleanups torque asked for are done and pushed on the same branch. The Firefly Jar tests pass (14 of them). I did not run bun scripts/gate.ts or the full suite. bun scripts/design-lint.ts isn't in this clone, and bun x tsc --noEmit printed only its help text, so neither checked anything.
- Unused
FIELD: removed from the destructure infirefly-jar/index.html. LANTERN.v + 0: the+ 0is gone fromdrawLantern.bestStreakandcaught: I showed them rather than removed them. The over line now readsN in the jar (C caught, best streak S), followed by the best-score text as before. The newfirefly-jar/page.test.mjschecks that line.- Bell Tower timeout: the 30s timeout on the HUD test in
bell-tower/page.test.mjsis unrelated to Firefly Jar. That test plays two rounds through the software renderer, takes about 5.3s alone, and was timing out the default 5s limit and failing the preview deploy. I kept it here so the deploy goes green. Splitting it into its own pull would also work.
Firefly Jar is on the branch and already pushed. Nothing has moved on the issue, so I made no changes this run. The tests I ran (
firefly-jarandserve.test.mjs) pass: 58 tests, 0 failures. This repo has noscripts/gate.ts,scripts/fast.tsorscripts/design-lint.ts, so none of those ran. I also didn't runbun x tsc --noEmit, and I didn't start the app to try the page.firefly-jar/index.htmlholds the page. Tap the glowing fireflies into the jar before the moths put the lantern out. Game rules are infirefly-jar/night.js, with tests infirefly-jar/night.test.mjs.index.html, registered inshell.js, listed in the README, and has its own share image atog/firefly-jar.png. I also regeneratedog/home.png.serve.test.mjshas a test for it.To try it, open
/firefly-jar/from the home feed.Closes #68