Classic Snake built with HTML5 Canvas. Use arrows / WASD. Swipe on mobile.
Arrows / WASD — Pause: P or Space — Restart: R
Every apple = +1. Every 5 points increases speed by 1 (max 16). High score stored locally.
Small, self-contained example built to be easily readable and portable.