A modern, feature-rich Snake Game built using HTML, CSS, and JavaScript, enhanced with shop systems, power-ups, particle effects, and persistent storage.
- Classic Snake mechanics with smooth controls
- Multiple difficulty modes:
- Easy
- Medium
- Hard
- Dynamic food system with different point values
- Smart spawning system (no overlap issues)
- 🪙 Coins & 💎 Diamonds collected during gameplay
- Persistent wallet using localStorage
- Spend currency in the shop
- 🎨 Themes (change background & grid)
- 🐍 Snake Skins (custom colors & styles)
- ⚡ Boost Upgrades (increase power-up duration)
- Unlockable & purchasable items
- ⚡ Speed Boost
- 🛡️ Invincibility
- 💎 Double Points
- 👻 Ghost Mode
- 🔵 Shrink Snake
- 🧲 Magnet
Each power-up includes:
- Visual effects
- Custom duration (upgradeable)
- Unique gameplay impact
- Particle explosions & sparkles
- Animated food & collectibles
- Smooth grid rendering
- Responsive UI
- Background music & menu music
- Sound effects:
- Eat
- Coin / Diamond
- Power-ups
- Game Over
- Auto audio initialization (browser-safe)
- High scores per mode
- Player wallet (coins & diamonds)
- Purchased skins/themes
- Settings (volume)
All saved using localStorage.
- Mode selection screen
- Shop screens (Themes, Skins, Boosts)
- Settings panel
- About section
- Game Over & Pause overlays
| Key | Action |
|---|---|
| ↑ ↓ ← → / WASD | Move snake |
| SPACE | Start / Restart |
| P | Pause |
| ESC | Back to menu |
| TAB | Open settings |
| F11 | Fullscreen |
- Download the project
- Open
index.htmlin your browser
- Open project in VS Code
- Install Live Server
- Right-click → Open with Live Server
- HTML5 Canvas
- CSS3 (Responsive UI)
- Vanilla JavaScript (ES6)
- Web Audio API
- LocalStorage API
- 🎯 Fully standalone (no backend required)
- ⚡ High-performance game loop
- 🎨 Advanced UI/UX for a browser game
- 🧩 Modular game logic (Snake, Food, PowerUp classes)
- 📱 Mobile touch support
- Multiplayer mode 🌐
- Leaderboard system 🏆
- Cloud save ☁️
- More skins & themes 🎨
- Boss levels / challenges 🎯
Akash Pramanik
If you like this project:
- ⭐ Star the repository
- 🍴 Fork it
- 🧠 Improve & contribute
This project is open-source and free to use.

