An open API service indexing awesome lists of open source software.

https://github.com/amit81082/snake_game

A fun and interactive Snake Game built with HTML, CSS, and JavaScript. ๐ŸŽฎ It offers smooth gameplay, attractive design, and keeps track of your High Score using localStorage.
https://github.com/amit81082/snake_game

arcade-game game-development html-css-js javascript-game localstorage retro-game snake snake-game vanilla-javascript web-game

Last synced: 10 months ago
JSON representation

A fun and interactive Snake Game built with HTML, CSS, and JavaScript. ๐ŸŽฎ It offers smooth gameplay, attractive design, and keeps track of your High Score using localStorage.

Awesome Lists containing this project

README

          

# ๐Ÿ Snake Game ๐ŸŽฏ

A fun and interactive **Snake Game** built with HTML, CSS, and JavaScript. ๐ŸŽฎ It offers smooth gameplay, attractive design, and keeps track of your **High Score** using `localStorage`.

!Live Demo -[ https://amit81082.github.io/Snake_Game/](https://snakegamekj.netlify.app/)

screenshot- ![image](https://github.com/user-attachments/assets/6e4ff16a-60ee-43a0-b06c-18ca17c0cd1c)

---

## ๐Ÿš€ **Features**

โœ… **Responsive Design:** Enjoy smooth gameplay on desktop and mobile.
โœ… **High Score System:** Your best score is saved using `localStorage`.
โœ… **Game Over Screen:** Displays your final and high score.
โœ… **Sound Effects:** Realistic sound effects for a better gaming experience.
โœ… **Keyboard Controls:** Control the snake using arrow keys.

---

## ๐Ÿ› ๏ธ **Technologies Used**

- ๐ŸŒ HTML5 โ€“ For game structure
- ๐ŸŽจ CSS3 โ€“ For styling and layout
- โšก JavaScript โ€“ For game logic and interaction
- ๐Ÿ”Š Sound effects โ€“ For better user experience

---

## ๐ŸŽฏ **How to Play**

1. ๐ŸŽ **Start the game:** The snake automatically starts moving.
2. ๐Ÿ”ผ **Control the snake:** Use the arrow keys (`โ†‘ โ†“ โ†’ โ†`) to move.
3. ๐Ÿ **Eat the food:** The snake grows longer with each bite.
4. ๐Ÿ’ฅ **Avoid collision:** Donโ€™t hit the walls or yourself.
5. ๐Ÿ… **Game Over:** The game ends when you collide. Your final score and high score will be displayed.

---

## ๐Ÿš€ **Installation & Running Locally**

1. Clone the repository
```bash
git clone https://github.com/Amit81082/Snake_Game.git