FPSGame is a simple Java-based first-person shooting game where the player's objective is to shoot down enemies that appear on the screen. The game utilizes the Java AWT (Abstract Window Toolkit) library for graphics rendering and user input handling.
Control the player's crosshair using the mouse. Left-click to shoot enemies and earn points. Enemies move around the screen in random directions. The game keeps track of the player's score.Java Development Kit (JDK) 8 or higher. A Java IDE or text editor to compile and run the game.
Clone or download the repository to your local machine. Open the project in your Java IDE or text editor.Compile and run the FPSGame.java file to start the game. Use the mouse to control the player's crosshair. Left-click on enemies to shoot them and earn points. The game will display your current score on the screen.
You can customize the game by modifying certain aspects of the code:
To change the game window size, modify the WIDTH and HEIGHT constants in the FPSGame class.
To use different crosshair and enemy images, replace the crosshair.png and enemy.png files respectively in the specified file paths.
To adjust the number of enemies appearing on the screen, modify the update() method in the FPSGame class.