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!
- Host: GitHub
- URL: https://github.com/varshithdupati/snake-game
- Owner: varshithdupati
- License: mit
- Created: 2024-06-03T18:02:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-13T00:01:48.000Z (12 months ago)
- Last Synced: 2025-07-02T14:43:30.908Z (11 months ago)
- Topics: css, github, html, javascript, retro-game, snake-game
- Language: HTML
- Homepage: https://dvarshith.github.io/snake-game/
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

## 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!_