https://github.com/dvarshith/snake-game
Vanilla JavaScript Snake Game – eat food to change snake color, dodge bombs, and beat your high score!
https://github.com/dvarshith/snake-game
css github html javascript retro-game snake-game
Last synced: about 1 year 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/dvarshith/snake-game
- Owner: dvarshith
- License: mit
- Created: 2024-06-03T18:02:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-14T02:35:12.000Z (over 1 year ago)
- Last Synced: 2025-02-14T03:28:18.022Z (over 1 year ago)
- Topics: css, github, html, javascript, retro-game, snake-game
- Language: HTML
- Homepage: https://dvarshith.github.io/snake-game/
- Size: 37.1 KB
- Stars: 0
- 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://dvarshith.github.io/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!_