Skip to content

It is a Java-based first-person shooting game where players aim and shoot enemies

Notifications You must be signed in to change notification settings

aryalpatrick/Shooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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.

About

It is a Java-based first-person shooting game where players aim and shoot enemies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages