Skip to content

A modular and scalable 2D combat game developed using Java, featuring advanced object-oriented programming principles, multithreading for improved performance, and resource management for a seamless user experience.

License

Notifications You must be signed in to change notification settings

nhannguyensf/TankGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csc413-tankgame

Student Information
Student Name Nhan Nguyen
Student Email nnguyen14@sfsu.edu

src Folder Purpose

src folder is to be used to store source code only.

resources Folder Purpose

resources folder is to be used to store the resources for your project only. This includes images, sounds, map text files, etc.

The src and resources folders can be deleted if you want a different file structure

jar Folder Purpose

The jar folder is to be used to store the built jar of your term-project.

NO SOURCE CODE SHOULD BE IN THIS FOLDER. DOING SO WILL CAUSE POINTS TO BE DEDUCTED

THIS FOLDER CAN NOT BE DELETED OR MOVED

Required Information when Submitting Tank Game

Version of Java Used:

Java 20 (Oracle JDK 20)

IDE used:

IntelliJ IDEA 2023.2

Steps to Import project into IDE:

  1. Download or clone the project folder from remote repository.
  2. Open an IDE such as Eclipse, IntelliJ IDEA, or NetBeans.
  3. Click on "Open" or "New -> Project from Existing Sources". (This step may vary slightly depending on the IDE you are using.)
  4. Navigate to the directory of the game and select it.
  5. Follow the on-screen instructions. The IDE will attempt to set up a project based on the sources it detects.

Steps to Build your Project:

  1. Ensure you have Java Development Kit (JDK 20) installed on your computer. You can download from the official Oracle website.
  2. Go to File -> Project Structure.
  3. Under the Project tab, ensure you have the appropriate JDK selected (JDK 20). If no JDK is available, you can add one by clicking "New..." and selecting the path to your installed JDK.
  4. Hover over the "Mark Directory as" option on the "resources" folder to reveal a sub-menu. In the sub-menu, click on "Resources Root". The directory will now be marked as a resources folder.
  5. Click the Build -> Build Project option to compile the game.
  6. Ensure that the project builds successfully without any errors. If there are any compilation errors, review the code and resolve them.

Steps to run your Project:

  1. Go to Run -> Edit Configurations.
  2. Click the + (plus) button and choose "Java Application" or "Application".
  3. Name your configuration.
  4. Set the "Main class" to Launcher class.
  5. Click the green play button or Run -> Run "YourConfigurationName" to run the game.

Controls to play your Game:

Player 1 Player 2
Forward W Up
Backward S Down
Rotate left A Left
Rotate Right D Right
Shoot Space NUMPAD 0

About

A modular and scalable 2D combat game developed using Java, featuring advanced object-oriented programming principles, multithreading for improved performance, and resource management for a seamless user experience.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages