Student Information | |
---|---|
Student Name | Nhan Nguyen |
Student Email | nnguyen14@sfsu.edu |
src folder is to be used to store source code only.
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
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
- Download or clone the project folder from remote repository.
- Open an IDE such as Eclipse, IntelliJ IDEA, or NetBeans.
- Click on "Open" or "New -> Project from Existing Sources". (This step may vary slightly depending on the IDE you are using.)
- Navigate to the directory of the game and select it.
- Follow the on-screen instructions. The IDE will attempt to set up a project based on the sources it detects.
- Ensure you have Java Development Kit (JDK 20) installed on your computer. You can download from the official Oracle website.
- Go to File -> Project Structure.
- 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.
- 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.
- Click the Build -> Build Project option to compile the game.
- Ensure that the project builds successfully without any errors. If there are any compilation errors, review the code and resolve them.
- Go to Run -> Edit Configurations.
- Click the + (plus) button and choose "Java Application" or "Application".
- Name your configuration.
- Set the "Main class" to Launcher class.
- Click the green play button or Run -> Run "YourConfigurationName" to run the game.
Player 1 | Player 2 | |
---|---|---|
Forward | W | Up |
Backward | S | Down |
Rotate left | A | Left |
Rotate Right | D | Right |
Shoot | Space | NUMPAD 0 |