A personalized Java-based Snake Game built from scratch using JPanel, KeyListener, and Timer. This version includes wrap-around movement, stylized snake and food design, and a score display — all optimized for clarity and learning.
- ✅ Arrow key controls for movement
- ✅ Wrap-around board edges
- ✅ Stylized snake head and body with rounded shapes
- ✅ Orange circular food
- ✅ Score display and red "Game Over" message
- ✅ Slower movement speed for better control
- ✅ Modular design using inner
Tileclass andArrayListfor snake body
This project helped reinforce:
- Object-oriented design with inner classes
- Real-time game loop using
javax.swing.Timer - Event handling with
KeyListener - Collision detection and wrap-around logic
- Custom rendering with
GraphicsandColor
- Clone the repository:
git clone https://github.com/Gyan987/SnakeGame.git