Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.35 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.35 KB

FPSGame

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.

Features

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.

Prerequisites

Java Development Kit (JDK) 8 or higher. A Java IDE or text editor to compile and run the game.

Installation

Clone or download the repository to your local machine. Open the project in your Java IDE or text editor.

Usage

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.

Customization

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.