Snake

Classic Snake built with HTML5 Canvas. Use arrows / WASD. Swipe on mobile.

Score
0
High Score
0
Speed
6
Controls

Arrows / WASD — Pause: P or Space — Restart: R

↑ / W move up
← / A move left
↓ / S move down
→ / D move right

How scoring & speed work

Every apple = +1. Every 5 points increases speed by 1 (max 16). High score stored locally.


About

Small, self-contained example built to be easily readable and portable.