Dodger Game
Dodger Game is a fast-paced 2D arcade-style desktop game built with Java Swing. The goal is simple: survive as long as possible by dodging falling enemies while your score increases over time.
How the Game Works
- Move left and right using keyboard controls
- Enemies continuously fall from the top of the screen
- Your score increases the longer you survive
- Colliding with an enemy triggers game over
- The game can be restarted without restarting the program
Tech Stack
What I Learned
- Building a real-time game loop in Java
- Handling keyboard input and focus in Swing
- Collision detection using bounding boxes
- Structuring projects using object-oriented design
- Debugging and iterating on graphical applications
Source Code
View the full source code on GitHub:
github.com/guptan0506/DodgerGame