Student Information | |
---|---|
Student Name | Ethan Zheng |
Student Email | [email protected] |
The jar folder will 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
- Clone repository to your local machine by clicking on the Green code button and copying the URL from HTTPS
- Open Your Terminal and run git clone [URL] (replace [URL] with the URL you copied)
- Right click the repo folder you just cloned and select "Open Folder Using IntelliJ IDEA"(assuming you are on Windows)
- After Project import, navigate to the top left corner and click on “File” then go to “Project Structure”.
- Find Artifacts and click the “+” icon and select the type to be “JAR” and then “From modules with dependencies”.
- Select the Main class to be Launcher.java and click OK and exit out of the menu.
- Then click on the "Build" button in the top menu and select “Build Artifacts”.
- The JAR File created will be located under the out folder and inside the subfolder ‘artifacts’.
- Using File Explorer (Finder on Mac), navigate to the folder where the JAR file was built and double-click the JAR file to run the program.
- Alternatively, you can open a terminal and navigate to the folder where the JAR file was built and run the command
java -jar [JAR_FILE_NAME]
(replace [JAR_FILE_NAME] with the name of the JAR file) - And you can also run the program from the IDE by right-clicking on the Launcher.java file and selecting "Run Launcher.main()"
Player 1 | Player 2 | |
---|---|---|
Forward | W | UP |
Backward | S | DOWN |
Rotate left | A | LEFT |
Rotate Right | D | RIGHT |
Shoot | SPACE | ENTER |