Skip to content

Meet-4/Targetgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ Target Shooting Game (Java)

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.


๐Ÿš€ Features

  • ๐ŸŽฏ Image-based targets
  • ๐Ÿ”ซ Custom crosshair cursor
  • ๐Ÿ’ฅ Explosion effect on hit
  • โฑ๏ธ Timer-based gameplay
  • ๐Ÿ“Š Score and high score tracking (in-session)
  • ๐ŸŽฎ Start / Restart functionality

๐Ÿ–ผ๏ธ Screenshots

(Add your screenshots here later)


๐Ÿ› ๏ธ Technologies Used

  • Java
  • Swing (GUI)
  • AWT (Graphics & Events)

๐Ÿ“ Project Structure

Mini Project/
โ”‚โ”€โ”€ TargetGame.java
โ”‚โ”€โ”€ images/
โ”‚   โ”œโ”€โ”€ target.png
โ”‚   โ”œโ”€โ”€ explosion.png
โ”‚   โ”œโ”€โ”€ crosshair.png

โ–ถ๏ธ How to Run

  1. Clone the repository

  2. Open the project in VS Code / IntelliJ

  3. Compile the program:

    javac TargetGame.java
    
  4. Run the game:

    java TargetGame
    

๐ŸŽฎ How to Play

  • 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

โš ๏ธ Notes

  • Make sure all images are placed correctly in the images folder
  • Recommended image format: .png (for transparency support)
  • If the cursor is not visible, check the image path and format

๐Ÿ“Œ Future Improvements

  • ๐Ÿ”Š Add sound effects
  • ๐Ÿ’พ Save high score to file
  • ๐ŸŽฏ Moving targets
  • ๐ŸŽฎ Difficulty levels
  • ๐Ÿ† Leaderboard system

๐Ÿ“„ License

This project is for educational purposes.

About

Mini project in Java language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages