This is the repository for a YouTube series here. If you want to run the code yourself follow these instructions:
- You must have Gradle 6.3+ and Java 1.8+ installed. If you do not have these installed, you should install them and add them to your environment variables.
-
Once you have them installed you should be able to run:
gradle --version
and
java -version
And get no errors.
-
- Open a Command Prompt in the projects root directory.
- If you run
ls
(Mac, Linux) ordir
(Windows) you should seelibs
,src
, andassets
listed as part of the output.
- If you run
- Run:
gradle fatJar
- This will create a fat JAR containing all the dependencies for the project.
- Run
java -jar build/libs/mario-1.0-SNAPSHOT-all.jar
- This should open a new Window with the Mario game running.