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

Migrated from github.com/amirmushichge/pixel-plays

Add Go-Kart Fete: the playable page and its place in the catalogue, on the rules already in `go-kart/lap.js` #125

opened this

Merged 33d 18h ago, live in production

Go-Kart Fete now has a playable page at /go-kart/, built on go-kart/lap.js, and it is in the catalogue. The go-kart playtests, serve.test.mjs and shell.test.mjs all pass. I did not run the full suite or bun x tsc --noEmit, and the repo has no scripts/gate.ts.

Notes

opened this

Go-Kart Fete now has a playable page at /go-kart/, built on go-kart/lap.js, and it is in the catalogue. The go-kart playtests, serve.test.mjs and shell.test.mjs all pass. I did not run the full suite or bun x tsc --noEmit, and the repo has no scripts/gate.ts. I also ran no frame-time measurement; I did not check 60 fps or phone use.

What changed

  • Rules: the page adds none of its own. It reads Lap.advance and R, and the HUD and end line show the rules' own text ("Won with N points" / "Lost with N points").
  • Controls: Space, Up or W held, or press and hold on the canvas, drives the kart. A tap or Space after the end line restarts.
  • Speed boards: a yellow board stands 38 m before each bend with the safe speed in m/s. It is static pixels, so reduced motion keeps it.
  • Look: 360×280 canvas, fixed 30° camera, hard shadows screen-right. The track is baked at 8 scroll phases like Tram Line. The only ambient motion is the chequered flags and the waving spectators, and both stop under prefers-reduced-motion.
  • Accessibility and sound: the canvas aria-label says how to play, the rules popup is 4 lines, and there is a #mute button with synthesised sounds and no .mp3.
  • Catalogue: the shell.js GAMES entry is as specified. The root index.html <li>, the README Games table, the no-music list and the ambient-motion note are updated.
  • Share card: bun scripts/og.mjs was run, so og/go-kart.png and the share tags exist. The og run also re-rendered og/home.png, which is in the commit.
  • Tests: serve.test.mjs asserts /go-kart/ and /go-kart/lap.js answer 200. rounds.mjs has a scripted round that brakes to each board's safe speed and ends on "Won with 9 points" after about 178 s of play.

Shared test change Three races of three 400 m laps cannot finish under the shared playtest limits of 100 s per round and 150 s for a stuck game. I added an optional per-round limit and budget in rounds.mjs and playtest.test.mjs. Every other game keeps the old defaults (100 s, 150 s, 120 s timeout), and Go-Kart uses limit: 300. The go-kart playtest file takes about 35 s because the round is played twice.

Not done

  • No engine hum or wheel-spin animation, to keep ambient motion to the flags and spectators.
  • No other game was touched.

To try it Run bun run serve.mjs, open /go-kart/, and hold Space.

My shell showed untracked dotfiles (.bashrc, .gitmodules, .claude/ and others) that I didn't create. I left them out of the commit.

Closes #104

6 earlier comments · 2 events
commented

Go-Kart Fete now has a playable page at /go-kart/, built on go-kart/lap.js, and it is in the catalogue. The go-kart playtests, serve.test.mjs and shell.test.mjs all pass. I did not run the full suite or bun x tsc --noEmit, and the repo has no scripts/gate.ts. I also ran no frame-time measurement; I did not check 60 fps or phone use.

What changed

  • Rules: the page adds none of its own. It reads Lap.advance and R, and the HUD and end line show the rules' own text ("Won with N points" / "Lost with N points").
  • Controls: Space, Up or W held, or press and hold on the canvas, drives the kart. A tap or Space after the end line restarts.
  • Speed boards: a yellow board stands 38 m before each bend with the safe speed in m/s. It is static pixels, so reduced motion keeps it.
  • Look: 360×280 canvas, fixed 30° camera, hard shadows screen-right. The track is baked at 8 scroll phases like Tram Line. The only ambient motion is the chequered flags and the waving spectators, and both stop under prefers-reduced-motion.
  • Accessibility and sound: the canvas aria-label says how to play, the rules popup is 4 lines, and there is a #mute button with synthesised sounds and no .mp3.
  • Catalogue: the shell.js GAMES entry is as specified. The root index.html <li>, the README Games table, the no-music list and the ambient-motion note are updated.
  • Share card: bun scripts/og.mjs was run, so og/go-kart.png and the share tags exist. The og run also re-rendered og/home.png, which is in the commit.
  • Tests: serve.test.mjs asserts /go-kart/ and /go-kart/lap.js answer 200. rounds.mjs has a scripted round that brakes to each board's safe speed and ends on "Won with 9 points" after about 178 s of play.

Shared test change Three races of three 400 m laps cannot finish under the shared playtest limits of 100 s per round and 150 s for a stuck game. I added an optional per-round limit and budget in rounds.mjs and playtest.test.mjs. Every other game keeps the old defaults (100 s, 150 s, 120 s timeout), and Go-Kart uses limit: 300. The go-kart playtest file takes about 35 s because the round is played twice.

Not done

  • No engine hum or wheel-spin animation, to keep ambient motion to the flags and spectators.
  • No other game was touched.

To try it Run bun run serve.mjs, open /go-kart/, and hold Space.

My shell showed untracked dotfiles (.bashrc, .gitmodules, .claude/ and others) that I didn't create. I left them out of the commit.

commented

I merged main into the branch and pushed it; the merge commit is 5208d84. The serve.test.mjs, shell.test.mjs and Go-Kart playtests pass, and so do the Egg Basket ones. I did not run the full suite, so the forge's check on the push is the full verdict.

  • README.md: both conflicts were single long lines, one in the no-music list and one in the ambient-motion note. I took main's versions, which add Egg Basket, and put Go-Kart Fete back into both lists. The Games table row merged cleanly.
  • og/home.png: I took main's copy and regenerated it with bun scripts/og.mjs, so it now includes both new games.

The rest merged on its own: shell.js, index.html, rounds.mjs and serve.test.mjs.

commented

I removed the dead code @sentinel flagged in go-kart/index.html and pushed it as 01640a3. The Go-Kart playtests pass; I did not re-run the rest of the suite.

  • INK3: deleted. It was never used.
  • gantry: the unused i parameter and the argument at its call site are gone.
  • bales: the i parameter and the + i terms are gone, and the call no longer passes the constant 0. Since i was always 0, the picture is unchanged.

I disagree with nothing in the review.

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

I merged main into the branch and pushed it. It now merges cleanly.

  • README.md, index.html, shell.js: both sides added a game in the same spot. I kept Cloakroom, which came from main, and Go-Kart Fete in the catalogue table, the home list and GAMES. I merged the "plays on its own sound effects" list and the ambient-motion sentence so each names both games.
  • og/home.png: I regenerated it with bun scripts/og.mjs. It now has the Go-Kart Fete and Cloakroom cards, and it rendered og/go-kart.png as well.
  • Tests: serve.test.mjs, go-kart/ and cloakroom/ pass (84 tests, 0 failures). I did not run the full suite; it timed out here, and the forge runs the full check on push.
  • Type check: bun x tsc --noEmit only printed its help text. The repo has no tsconfig, so nothing was type-checked.
commented

The deploy failed on one test: "every committed card is what the games render now". og/home.png was stale. After the merge with main it was still missing the Dinghy Race card.

I regenerated it with bun scripts/og.mjs, and the grid now has both Dinghy Race and Go-Kart Fete. The only file that changed is og/home.png.

serve.test.mjs now passes, all 54 tests including the card check. I did not run the full suite here, since it takes about seven minutes; the forge runs it on this push. I pushed the fix as 92e9911.

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

I had already fixed all four review comments, and the fixes are pushed. The pull's head is 88bf230, which is also this branch's last commit, so nothing new needed pushing on this turn.

Review comments

  • @juniper, conflict marker in README.md: fixed in 88bf230. The README now has no conflict markers or duplicate lines, and Go-Kart Fete is added to main's version of the line.
  • @sentinel, dead code in go-kart/index.html: removed in 01640a3.
    • The unused INK3 is gone.
    • The index parameter that was always 0 is gone, along with its + i terms.
    • gantry(m) no longer takes or receives an unused i.
  • Commit 88bf230: the README also says the page needs JavaScript, for anyone browsing with scripts off.

Earlier in this pull

  • og/home.png was regenerated with bun scripts/og.mjs after merging main, in 92e9911. That fixes the card test that failed the last deploy, because the grid now includes the Dinghy Race and Go-Kart Fete cards.

Checks

  • The forge's deploy of 88bf230 was still running when I looked, so it has no verdict yet.
  • The preview answers /go-kart/ with 200.
  • serve.test.mjs and the go-kart/ playtests passed on the previous turns; I did not run the full suite here.
  • The repo has no scripts/gate.ts and no tsconfig, so there was nothing for the gate or bun x tsc --noEmit to check.

To try it: open /go-kart/ on the preview, or run bun run serve.mjs and open /go-kart/. Hold Space, Up, W, or press on the canvas to drive; let go to brake before the yellow board at each bend.

My shell showed untracked dotfiles (.bashrc, .gitmodules, .claude/ and others) that I didn't create, and I left them out of the commits.

🤖 Generated with Claude Code

commented

This pull adds a playable Go-Kart Fete page at /go-kart/, built on the rules already in go-kart/lap.js, and puts it in the catalogue. It is now merged with main again (7eb0b4d), and main's new Coconut Shy is kept alongside Go-Kart Fete. serve.test.mjs, shell.test.mjs, go-kart/ and coconut-shy/ pass: 105 tests, 0 failures. I did not run the full suite. The repo has no scripts/gate.ts and no tsconfig, so there is nothing for the gate or bun x tsc --noEmit to check. I did not measure frame time, so 60 fps and phone play are unchecked.

The game

  • Rules: the page adds none. It calls Lap.advance and reads R, and the screen shows the rules' own result text ("Won with N points" / "Lost with N points").
  • Controls: hold Space, Up or W, or press and hold on the canvas, to drive; let go to brake. A tap or Space after the finish restarts.
  • Speed boards: a yellow board stands 38 m before each bend and shows the safe speed for it.
  • Motion: the only background animation is the chequered flags and the waving spectators, and both stop under prefers-reduced-motion.
  • Sound and accessibility: a #mute button and synthesised sound effects, with no music track. The canvas label says how to play, and the README says the page needs JavaScript.

Catalogue: a GAMES entry in shell.js, a matching <li> in index.html, a README table row, and Go-Kart Fete added to the README's no-music list and background-motion note. The share card og/go-kart.png was made with bun scripts/og.mjs.

Merge with main:

  • README.md: both conflicts were the no-music list and the background-motion note. I took main's lines, which add Coconut Shy, and put Go-Kart Fete back into each.
  • og/home.png: I took main's copy and regenerated it, so the grid has both the Coconut Shy and the Go-Kart Fete cards.

Shared test change: three races of three 400 m laps can't finish within the shared playtest limits (100 s per round, 150 s for a stuck game). So rounds.mjs and playtest.test.mjs now accept an optional limit and budget per round. Go-Kart uses limit: 300 and every other game keeps the old defaults. The Go-Kart test file takes about 35 s because its round is played twice. serve.test.mjs checks that /go-kart/ and /go-kart/lap.js answer 200.

Review fixes:

  • go-kart/index.html (from @sentinel): removed the unused INK3, an index parameter that was always 0, and gantry's unused i.
  • README.md (from @juniper): removed the conflict markers left in.

Not done: no engine hum and no wheel-spin animation, to keep background motion to the flags and spectators.

To try it: run bun run serve.mjs, open /go-kart/ and hold Space; brake to the number on each yellow board.

My shell showed untracked dotfiles that I didn't create (.bashrc, .gitmodules, .claude/ and others), and they are left out of the commits.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs