Pixel Snake: classic snake, rebuilt for today. A clean, commented HTML5 snake game you can reskin and publish.
Eat, grow and try not to bite your own tail on a crisp pixel LCD, wrapped in a clean modern interface. It plays great on a phone or a laptop with nothing to install, and it runs straight from any static host (itch.io, GitHub Pages, Netlify) or from the file system.
For developers
Vanilla JavaScript + Canvas: no frameworks, no build step, works from any static host
Game rules are separate from rendering, input and audio, with 11 unit tests (node tests/logic.test.js)
Fixed-timestep loop, input buffering (no accidental reversals), touch-and-hold, swipe, keyboard and gamepad-style menu navigation
Pixel-perfect LCD renderer that scales to any screen
Web Audio sound effects (no audio files), localStorage saving with safe fallbacks
Speeds, board size and colours all live in a few constants
Controls: Arrows / WASD to move, hold to boost, Space to pause, Enter to restart, M to mute, F for fullscreen. On mobile: swipe on the screen or use the D-pad.
Includes full source code, README and an itch.io store kit (listing text, embed settings and tags).
Features
Three speeds, Easy, Normal and Hard, and you get faster with every bite
Hold a direction for a speed boost
Best score saved for each difficulty
Night and Classic LCD screen themes
Retro 8-bit sound effects (Web Audio API) with mute
Swipe or D-pad on mobile, arrows or WASD on desktop
Portrait and landscape, with fullscreen support
Vibration on supported Android browsers
Auto-pause when the tab loses focus
Pure HTML5 Canvas + vanilla JS, no frameworks or build step
11 unit tests for the game logic
itch.io ready
You have to login to leave a review!
All Reviews
No Review!
What type of support is included? Verified source code Free support included Download code immediately Quality guarantee for your satisfaction Support: info@sellanycode.com
You have to login to ask a question!
All Questions
No Question!
$4
Verified source code
Join 35927+ buyers which trust us!
Download code immediately
100% Guarantee For Item! Satisfaction guarantee policy.