Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game

A modern Snake Game built with Vanilla JavaScript, HTML5, and CSS3. The project features real-time gameplay, score tracking, high-score persistence using LocalStorage, a timer system, and a responsive dark-themed interface.


🚀 Features

  • 🎮 Smooth snake movement using keyboard controls
  • 🍎 Random food generation
  • 📈 Real-time score tracking
  • 🏆 High score persistence with LocalStorage
  • ⏱️ Game timer
  • 💀 Collision detection and game-over system
  • 🔄 Restart functionality
  • 🌙 Clean dark-themed UI

🛠️ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)

📸 Screenshots

Start Screen

Start Screen

Gameplay

Gameplay

Advanced Gameplay

Advanced Gameplay

Game Over

Game Over


🎯 Learning Outcomes

Through this project, I practiced and strengthened my understanding of:

  • DOM Manipulation
  • Event Handling
  • Game Loop Logic
  • Collision Detection
  • State Management
  • LocalStorage
  • Arrays and Objects
  • JavaScript Timing Functions (setInterval)
  • Problem Solving & Debugging

▶️ Getting Started

Clone the Repository

git clone https://github.com/PARTTTHH/Snake-Game.git 

Run the Project

  1. Open the project folder.
  2. Open index.html in your browser.
  3. Start playing.

📂 Project Structure

Snake-Game/
│
├── index.html
├── style.css
├── script.js
├── README.md
│
└── screenshots/
    ├── start-screen.png
    ├── gameplay.png
    ├── gameplay2.png
    └── game-over.png

🔮 Future Improvements

  • Multiple difficulty levels
  • Pause / Resume functionality
  • Sound effects
  • Mobile touch controls
  • Leaderboard system
  • Animated UI enhancements

👨‍💻 Author

PARTH PUNGAONKAR

Built while strengthening my JavaScript fundamentals through hands-on project development.


⭐ If you like this project, consider giving it a star.

About

A modern Snake Game built to strengthen JavaScript fundamentals including game loops, event handling, state management, and LocalStorage.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages