A classic Snake game built using Java Swing. Control the snake, eat food, and grow longer while avoiding collisions!
- ๐ฎ Smooth keyboard controls
- ๐ Food spawning for score increments
- ๐ Snake grows as it eats
- โ Game over on self-collision
- ๐ Restart option after losing
1. Use the arrow keys (โฌ๏ธโฌ๏ธโฌ ๏ธโก๏ธ) to move the snake.
2. Eat the food to grow longer and increase your score.
3. Avoid hitting the walls or yourself.
4. The game ends if you collide with yourself or the wall.
For any questions or suggestions, feel free to reach out:
- Email: sasankaranawaka0@gmail.com
- GitHub: SasankaDinith