Skip to content

Add Snake 404 - #50

Merged
radiumcoders merged 1 commit into
mainfrom
snake-404
Oct 14, 2026
Merged

radiumcoders merged 1 commit into
mainfrom
snake-404

Conversation

@radiumcoders

Copy link
Copy Markdown
Owner

Adds Snake 404 to the Pages group, next to Dithered 404.

  • "404" is drawn as a dot-matrix grid, and every dot is a food pellet.
  • A Nokia-style snake slides in and finds the nearest pellet on its own, avoiding walls and its own body.
  • It opens its mouth when food is just ahead. Each meal shows as a bulge that stays put while the body slides past, and the snake grows when the tail reaches it.
  • When the snake clears the glyph, the digits pop back and it keeps going.
  • To play, click the field, then steer with the arrow keys or WASD, or swipe. Hitting a wall or itself makes the snake blink, then autopilot starts again. Esc or moving focus away hands control back.
  • Props: code (any digits, e.g. "500"), color, cellSize, speed, maxLength, grid, lcd (Nokia green screen), playable, score, smooth, theme, plus onEat, onClear and onPlayChange.
  • Respects reduced motion (the snake stays parked until you play) and pauses while scrolled out of view.
  • Includes the docs page with a live demo, entries in the README, the docs index and the skill files, the OG image, and the published registry JSON.

Checked with pnpm test (149 passing), pnpm typecheck, pnpm lint, and screenshots in light, dark and LCD. Frame timing: 361 frames in 6 s, slowest 16.8 ms, none dropped.

🤖 Generated with Claude Code

…an take over and play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@radiumcoders
radiumcoders merged commit ef09ec8 into main Oct 14, 2026
@github-actions

Copy link
Copy Markdown

Cloudflare preview is ready.

Preview https://pr-50-23rd-dev.radiumcoders.workers.dev
This commit https://91cbb7da-23rd-dev.radiumcoders.workers.dev

Production (23rd.dev) is unchanged. This preview URL stays the same as you push to this PR.

This branch was successfully deployed

1 active deployment
preview — 7325ece7 Deployed Oct 14, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant