How we built Stack the Dock
A CognitoRiverDelta builder project by Don Wood, with an AI coding partner. The idea came from Dale, a warehouse night-shift lead (an imagined character) in our Riding the Wave stories, who wrote to our panel: "Make one where you stack pallets falling onto a loading dock, and you lose if the stack tips. Call it Stack the Dock."
Iteration 1: a playable page in one session
The dated pairs
| When | What |
|---|---|
| 2026-10-10, afternoon | Idea. The builder asked each Riding the Wave character to suggest a small, easy builder project; the characters' suggestions became five games. |
| 2026-10-10, 16:59-17:07 | Code written. All five pages, one file each, by the AI coding partner. This page: 109 lines. |
| 2026-10-10, evening | Tested. Played by script in a browser; checked at phone width with no console errors. |
| 2026-10-11 | Approved for the Builder Lab, after our safety checks. |
| 2026-10-11 | Live in the Builder Lab, after our safety and name checks. |
The goal
One sentence: a one-button stacking game about the night shift: drop each pallet straight, or lose what hangs over.
Who it serves: anyone, any age - one tap is the whole control. How we'll know it works: a shift lasts a minute or two, a perfect drop feels good, and it plays on a phone.
The steps we took
- Read first. The story's suggestion, and the rule that a builder project never uses a trademarked game's name or look.
- A classic stacker, not a falling-blocks game. One pallet slides back and forth above the stack; tap to drop it.
- What hangs over falls off. The overhang drops off the dock, so the next pallet is narrower.
- Perfect drops. Within a few pixels you keep the full width and score a bonus; a streak shows on screen.
- A miss ends the shift, with your best score kept until you close the page.
- It looks like the dock. Wooden pallets under coloured loads, a hazard-striped edge and a crane rail at the top.
- Test like a machine. A script made three perfect drops, three drops twenty pixels off, then a deliberate miss.
- Fix what we found. The score showed bonus points under a label that said 'Pallets', so it now says 'Score'.
Who decided what
The builder decided: the idea of giving every Riding the Wave character a small, easy builder project ("like a tic-tac-toe game or a simple falling-blocks game not called by a trademarked name"), that each must look good enough to be a real Builder Lab project, that it runs free in a browser with no server, and that all five go to the Builder Lab (approved October 11, 2026).
The AI coding partner decided (Don can overrule any of these): the stacker mechanic, the perfect-drop margin and bonus, the speed curve, the pallet drawing and the sounds. It also wrote the code and ran the tests.
The measures (v1, 2026-10-10)
- Size: 109 lines in one file.
- Tested: perfect drops kept the full 220-pixel width and scored a bonus; drops twenty pixels off trimmed the pallet by about that much; a miss ended the shift and kept the best score.
- Phone: no sideways scrolling at 400 pixels; no console errors. Data: none collected.
- Still to measure: how long a real player's shift lasts.
What we'd change next
- A forklift that carries each pallet in.
- Wind on windy nights that sways the stack.
- A night-shift scoreboard for a whole crew (shared only if everyone agrees).
Make it your own
- Easier or harder: change
PERFECT = 5(the perfect-drop margin in pixels). - Speed: change
2.6 + stack.length * 0.18inspawn(). - Wider pallets: change
BASE_W = 220.
Open index.html in any browser. That's the whole setup, and it costs $0.
Build on ours
This project is yours to start from. Open it, save the page (it is one file - your browser's Save Page works), change one setting at the top, and make it your own. Better still, give this page to your AI helper and ask it to walk you through your first change.
Made something? Show us your project - or tell us the feature you want next. The best ideas become our next iteration, credited to you.