ExperimentsFable 5.2 Retro Games
Creek Crossing
The game has the keyboard when this page opens. If the keys stop working, click or tap the game. On a phone, Play full screen gives the game the whole screen.
Build notes
Open NOTES.md ↗ (opens in a new tab)- Original title: Creek Crossing
- Inspired by: the Frogger genre (hop across lanes of moving hazards and floating platforms)
- File:
games/07-creek-crossing/index.html(one self-contained file, no network requests) - Built by: Job B, 2026-11-14
What I built
A small frog must cross a meadow path and then a creek to reach four lily-pad nooks on the far bank. The picture has 12 rows: the start bank, four path rows, a grass bank, five creek rows, and the far bank.
- The path. Snails, hedgehogs, foxes, and bees cross at different speeds. A touch costs one life.
- The creek. The frog must land on a log or a lily pad and ride it. Open water costs one life. So does a ride that carries the frog off the edge.
- Sinking pads. One group of pads in a row goes under water every few seconds. It shrinks and shows a ring first, as a warning. A second row starts to sink from level 2.
- Nooks. A hop from the top creek row into a free nook scores 100 points plus 5 points for each second left. When all four nooks are full, the level ends with a 500-point bonus, one extra life (5 at most), and a faster next level.
- Kinder than the classic. A hop toward the far bank that does not line up with a free nook is blocked. The frog shakes its head and no life is lost.
- Dragonfly. A dragonfly visits a free nook for a few seconds. Reach that nook in time for 200 extra points.
- Timer. Each frog has 30 seconds (less on later levels). The bar is along the bottom edge of the picture.
- Buffered hop. One hop is stored while the frog is in the air, so fast double hops work.
Controls: arrow keys or W A S D. Space also hops forward. On touch: tap the picture to hop forward, swipe to hop in any direction, or use the four arrow buttons.
Looks
- Watercolor (main). Cold-press paper with grain. Each row is a set of overlapping brush washes with uneven edges, darker pooled pigment at the rim, and pale blooms where water pushed the paint. Faint pencil lines mark the rows under the paint. Every creature is painted with the same wet technique and has two slightly different paintings that alternate, so the picture "breathes" like a hand-painted animation. Each lost life leaves a paint splat on the paper until the level ends.
- Paper Cutout. Layers of flat coloured paper with drop shadows: scalloped blue water strips, zigzag grass, a kraft-paper path with stitched lane lines, and paper flowers.
- Firefly Night. The same creek after dark. Shapes are dark with a thin rim of light, eyes and wings glow, the moon is reflected in the water, fireflies drift over the picture, and the frog carries a soft green light so it is easy to find.
Techniques
- All art is drawn by code on a canvas. No images.
- Every creature and object is a short list of shapes (ellipses, polygons, lines). Each look has its own "brush" that paints a shape: layered multiply washes with a bloom for watercolor, a flat piece with a shadow and fibres for paper, a dark fill with a glowing rim for night. One drawing therefore gives three very different results.
- Sprites are painted one time for each look onto one hidden sprite sheet, at the exact screen resolution, and then copied each frame.
- Lane positions come from one clock, so objects never drift out of step, and a level only needs a speed factor.
- Sound is generated with the Web Audio API.
What I am proud of
The watercolor look. The brush overlaps, the pigment at the edges, and the blooms came out close to real paint, and the two alternating paintings of each creature give it life. I also like that one shape list feeds three different brushes.
Known issues
- The walkers on the path are drawn from the side and the frog from above. This is a storybook choice, not a bug, but it is not a consistent camera.
- The picture is always upright (360 by 480 units). On a phone in landscape it is small (about 230 by 300 pixels). It is playable, but portrait is better.
- The handwriting font in the Watercolor look comes from the system. On a device without it, the page uses Georgia.
- I did not tune lane speeds with human players. Level 1 is meant to be gentle.
Self-test
Tested with headless Chrome through .tools/selftest.js at 375x667, 740x360, and 1440x900. Result: all checks passed (no console errors, no network requests, start, pause, restart, all three looks, and all buttons and pads inside the screen).
A second scripted test (.tools/t07.js) confirmed the rules: a forward hop scores 10, a snail costs a life, open water costs a life, the frog rides a log, a hop between nooks is blocked with no penalty, a nook with the dragonfly scores the bonus, four nooks start level 2 with an extra life, the game ends when no lives are left, restart works, and a tap hops forward.
Issues found and fixed during testing:
- The nooks in the Watercolor look were dark blobs because too many washes were stacked. The pad in each nook is now a clear pale green target.
- Sprites were first kept on many small hidden canvases. They are now on one sprite sheet, which is lighter for phones.
- The first version of the rules test used fixed wait times and failed because headless Chrome runs slower than real time. The test now waits for conditions.

