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

https://github.com/varshithdupati/snake-game

Vanilla JavaScript Snake Game – eat food to change snake color, dodge bombs, and beat your high score!
https://github.com/varshithdupati/snake-game

css github html javascript retro-game snake-game

Last synced: about 1 month ago
JSON representation

Vanilla JavaScript Snake Game – eat food to change snake color, dodge bombs, and beat your high score!

Awesome Lists containing this project

README

          

# Snake Game
[**Play the Game Here!**](https://varshithdupati.com/snake-game/)


A **classic Snake** game built using **vanilla JavaScript**—just HTML, CSS, and JS for that retro fun. Steer your snake to eat the food, but don’t run into yourself!


## Preview
![Snake Game Preview](https://github.com/user-attachments/assets/e2eba6b4-d046-4820-8787-697b7b530ce6)


## Features
- **Pure JS Mechanics**: No frameworks needed—old-school, grid-based logic.
- **Increasing Difficulty**: The snake grows and becomes fast with each meal!
- **Colorful Snake**: The snake’s color **changes** to match the food it just ate.
- **Bombs**: Dodge the bombs or it’s game over!
- **Retro Feel**: Simple, classic look that keeps the focus on gameplay.


## How to Play
1. **Clone or Download** this repo.
2. **Open** `index.html` in your browser.
3. Use your **arrow keys** to guide the snake.
4. **Eat** the food to grow—but don’t collide with your own tail!


## Contributing
1. Fork this repo.
2. Create a feature branch (`git checkout -b feature/cool-idea`).
3. Commit & Push.
4. Open a pull request.

## License
This project is released under the `MIT License`. That means you’re free to use, modify, and distribute the code, but you do so at your own risk.

## Contact
Author: Varshith Dupati
GitHub: @dvarshith
Email: dvarshith942@gmail.com
Issues: Please open an issue on this repo if you have questions or find bugs.

_Enjoy the nostalgia!_