ExperimentsFable 5.2 Retro Games

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.

  • Original title: Graphite Falls
  • Inspired by: the Tetris genre (falling four-block shapes, full rows clear)
  • File: games/02-graphite-falls/index.html (one self-contained file, no network requests)
  • Built by: Job A, 2026-11-14

What I built

A 10 by 20 board with seven falling shapes. It has the comforts players expect: a preview of the next three shapes, a hold box, a dashed landing preview, soft drop and hard drop, a short delay before a shape locks, and wall kicks when you rotate next to a wall. The speed rises every 10 rows.

Addition to the genre:

  • The eraser. Every four rows you clear earns one eraser (you start with one and can carry three). Press E, or tap the eraser box, to rub out the bottom row of the board. It gives no points. It is a rescue tool.

Looks

  1. Colored Pencil (main). Blocks are shaded with three passes of slanted pencil strokes, so the graph paper shows through, and each block has a sketchy outline. The paper has blue grid lines, a red margin line, a ruler-drawn frame, and doodles. A cleared row is erased: a pink and blue eraser rubs across the row, the blocks smear into a grey streak, crumbs fall off, and a faint grey smudge stays on the paper for the rest of the game.
  2. Glazed Tile. Glossy ceramic tiles with a painted flower on each, set into a terracotta wall with a blue and white tile border. A cleared row flashes white and shatters into shards. The eraser becomes a chisel.
  3. Jelly Cubes. Translucent jelly cubes on a deep blue background with soft light spots. A shape wobbles when it lands. A cleared row swells and pops into bubbles. The eraser becomes a spoon.

Techniques

  • All art is drawn by code on a canvas. Block pictures are drawn once for each colour and reused.
  • Pencil shading uses seeded random strokes, so every block of one colour has the same hand-drawn texture and does not flicker.
  • Smudges are painted onto a second layer that stays, so the page shows the history of the game.
  • Shapes come from a shuffled set of all seven, so you never wait long for the one you need.
  • Sound is generated with the Web Audio API. The pencil look uses filtered noise for the rubbing sound.

What I am proud of

The eraser animation and the smudges it leaves behind. It answers the brief ("erase like smudged pencil, not just vanish") and it also became a game mechanic.

Known issues

  • The handwriting font is Bradley Hand or Marker Felt when the device has one. Other devices fall back to a generic cursive font, which can look different.
  • On a phone, Hold and Eraser are tap targets on the side panel, not pad buttons. The start card says so, but a new player can miss it.
  • On a phone held sideways the board is small (about 230x307 CSS pixels on a 740x360 screen). Portrait is better.
  • Smudges are cleared when the window is resized or the look is changed.

Self-test

Tested with headless Chrome through .tools/selftest.js at 375x667, 740x360, and 1440x900. Result: all checks passed. A second scripted test confirmed the rules: a hard drop that fills a row scores 100 points plus drop points, the row is removed, the eraser removes the bottom row and uses one charge, hold works, and a full board ends the game.

Issues found and fixed during testing:

  • The look name "Colored Pencil" was cut off in the top bar on a 375-pixel phone. The look button is now wider than the other three.
  • The tile border in the Glazed Tile look did not meet at the corners. Fixed.
  • The start card was squeezed inside the narrow playfield on a phone held sideways. The card now uses the whole stage area.