A simple 2D shooting game built using Java Swing. The player clicks on moving targets to score points within a limited time. The game includes a custom UI, image-based targets, and basic animations.
- ๐ฏ Image-based targets
- ๐ซ Custom crosshair cursor
- ๐ฅ Explosion effect on hit
- โฑ๏ธ Timer-based gameplay
- ๐ Score and high score tracking (in-session)
- ๐ฎ Start / Restart functionality
(Add your screenshots here later)
- Java
- Swing (GUI)
- AWT (Graphics & Events)
Mini Project/
โโโ TargetGame.java
โโโ images/
โ โโโ target.png
โ โโโ explosion.png
โ โโโ crosshair.png
-
Clone the repository
-
Open the project in VS Code / IntelliJ
-
Compile the program:
javac TargetGame.java -
Run the game:
java TargetGame
- Click on the targets to score points
- Each hit increases your score
- Missing a target reduces points
- The game runs for a limited time
- Try to beat your high score
- Make sure all images are placed correctly in the
imagesfolder - Recommended image format:
.png(for transparency support) - If the cursor is not visible, check the image path and format
- ๐ Add sound effects
- ๐พ Save high score to file
- ๐ฏ Moving targets
- ๐ฎ Difficulty levels
- ๐ Leaderboard system
This project is for educational purposes.