Skip to content

Mohammed-Naeem-Patel/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game

A modern and responsive Snake Game built using HTML, CSS, and JavaScript. This project is a redesigned version of the classic Snake Game with an improved user interface, responsive layout, smooth gameplay, sound effects, score tracking, and local high score storage.

The project focuses on strengthening JavaScript fundamentals by implementing game logic, collision detection, DOM manipulation, keyboard event handling, and Local Storage while maintaining a clean and user-friendly interface.


📸 Demo

💻 Desktop View

Snake Game Desktop Demo

📱 Mobile View

Snake Game Mobile Demo


✨ Features

  • 🎮 Classic Snake Game gameplay
  • 📱 Fully responsive design for desktop, tablet, and mobile devices
  • 🐍 Modern snake design with a customised snake head
  • 🍎 Attractive food design with smooth appearance
  • 📊 Current Score and High Score tracking
  • 💾 High Score stored using Local Storage
  • 🔊 Sound effects for food collection and game over
  • ⌨️ Smooth keyboard controls
  • 🎨 Modern UI with gradient effects and glassmorphism-inspired score cards
  • 🌿 Beautiful game background with enhanced visual styling
  • ⚡ Lightweight and fast performance

🛠️ Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)

📂 Project Structure

Snake-Game/
│
├── Audio/
│   ├── food.mp3
│   ├── gameover.mp3
│   ├── move.mp3
│   └── music.mp3
│
├── Images/
│   ├── snake-game-demo.png
│   ├── snake-game-mobile-demo.png
│   └── ...
│
├── index.html
├── style.css
├── script.js
└── README.md

🚀 Getting Started

Follow these steps to run the project locally:

  1. Clone the repository
git clone https://github.com/Mohammed-Naeem-Patel/Snake-Game.git
  1. Navigate to the project folder
cd Snake-Game
  1. Open index.html in your preferred web browser.

🎯 Learning Outcomes

This project helped me improve my understanding of:

  • JavaScript Game Logic
  • DOM Manipulation
  • CSS Grid Layout
  • Event Handling
  • Collision Detection
  • Local Storage
  • Responsive Web Design
  • Code Organisation
  • UI Enhancement using CSS

🔮 Future Improvements

Some features that can be added in future versions include:

  • ⏸️ Pause and Resume functionality
  • 🎚️ Difficulty Levels
  • 📱 Touch controls for mobile devices
  • 🎨 Multiple themes
  • 🏆 Leaderboard system
  • 🎵 Background music controls

👨‍💻 Author

Patel Mohammed Naeem

Aspiring Full-Stack Web Developer passionate about building responsive, interactive, and user-friendly web applications while continuously improving development skills through hands-on projects.


⭐ Show Your Support

If you found this project useful or liked the design, please consider giving this repository a ⭐ Star. Your support motivates me to build more projects and continue improving my skills.

Thank you for visiting this repository! 😊

About

A responsive Snake Game built using HTML, CSS, and JavaScript featuring smooth gameplay, responsive design, animated food, sound effects, score tracking, and local high score storage.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors