Skip to content

akash098p/SERPENT-SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 SERPENT - Snake Game+

Status Platform Tech License

Modes • Shop • Coins • Diamonds • Power-Ups • Skins • Themes

A modern, feature-rich Snake Game built using HTML, CSS, and JavaScript, enhanced with shop systems, power-ups, particle effects, and persistent storage.


🚀 Features

🎮 Gameplay

  • 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)

📷 Screenshots

Serpent1

Serpent2


💻 Live Preview


💎 Economy System

  • 🪙 Coins & 💎 Diamonds collected during gameplay
  • Persistent wallet using localStorage
  • Spend currency in the shop

🛒 Shop System

  • 🎨 Themes (change background & grid)
  • 🐍 Snake Skins (custom colors & styles)
  • ⚡ Boost Upgrades (increase power-up duration)
  • Unlockable & purchasable items

⚡ Power-Ups

  • ⚡ Speed Boost
  • 🛡️ Invincibility
  • 💎 Double Points
  • 👻 Ghost Mode
  • 🔵 Shrink Snake
  • 🧲 Magnet

Each power-up includes:

  • Visual effects
  • Custom duration (upgradeable)
  • Unique gameplay impact

🎨 Visual Effects

  • Particle explosions & sparkles
  • Animated food & collectibles
  • Smooth grid rendering
  • Responsive UI

🔊 Audio System

  • Background music & menu music
  • Sound effects:
    • Eat
    • Coin / Diamond
    • Power-ups
    • Game Over
  • Auto audio initialization (browser-safe)

💾 Data Persistence

  • High scores per mode
  • Player wallet (coins & diamonds)
  • Purchased skins/themes
  • Settings (volume)

All saved using localStorage.


🧠 Smart UI System

  • Mode selection screen
  • Shop screens (Themes, Skins, Boosts)
  • Settings panel
  • About section
  • Game Over & Pause overlays

🎮 Controls

Key Action
↑ ↓ ← → / WASD Move snake
SPACE Start / Restart
P Pause
ESC Back to menu
TAB Open settings
F11 Fullscreen

⚙️ How to Run

🖥️ Option 1: Direct Run

  1. Download the project
  2. Open index.html in your browser

🌐 Option 2: Live Server (Recommended)

  1. Open project in VS Code
  2. Install Live Server
  3. Right-click → Open with Live Server

🛠️ Technologies Used

  • HTML5 Canvas
  • CSS3 (Responsive UI)
  • Vanilla JavaScript (ES6)
  • Web Audio API
  • LocalStorage API

🔥 Highlights

  • 🎯 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

📈 Future Improvements

  • Multiplayer mode 🌐
  • Leaderboard system 🏆
  • Cloud save ☁️
  • More skins & themes 🎨
  • Boss levels / challenges 🎯

👨‍💻 Author

Akash Pramanik


⭐ Support

If you like this project:

  • ⭐ Star the repository
  • 🍴 Fork it
  • 🧠 Improve & contribute

📜 License

This project is open-source and free to use.

About

Modern Snake Game+ built with HTML, CSS & JavaScript featuring power-ups, skins, achievements and responsive gameplay.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages