title: "PM-Dungeon: Overview" author: "André Matutat" lang: en-EN ...
- Framework for 2D Games in Java
- Based on libGDX
- Uses Edgar-DotNet (v1.06) levels
- Build for teaching purposes
- JDK 11 or higher
- One of the following build tools:
- Ant
- Maven
- Gradle
TODO
- OS-dependent prerequisites:
- See here
- General prerequisites:
- Adapt settings in
build.xml(propertymain-class) to reflect your main class - Run
ant init-ivyonce in your project folder to download and install ivy
- Adapt settings in
- Use
ant compile-runto compile your sources and to start the game
- OS-dependent prerequisites:
- See here
- Run
mvn clean compilein your project folder to clean old builds and to compile your sources - Use
mvn exec:java -Dexec.mainClass="de.pmdungeon.PACKAGE.MAIN"to start the game (replacePACKAGE.MAINwith your main class) - You can optionally call all goals at once:
mvn clean compile exec:java -Dexec.mainClass="de.pmdungeon.PACKAGE.MAIN"
- General prerequisites:
- You don't need to install Gradle because you can use the Gradle wrapper provided in this project/repo
- Adapt settings in
build.gradle(propertymainClassName) to reflect your main class
- Use
gradlew runto compile your sources and to start the game
- Maven project integration:
- Open Eclipse and your workspace
- Right click in project explorer and choose
Import... - Choose
Existing Maven Projects - Choose the root directory and pick the
pom.xml - Click
Finish
- Gradle project integration:
- Open Eclipse and your workspace
- Right click in project explorer and choose
Import... - Choose
Existing Gradle Project - Skip Welcome
- Choose the project root directory
- Click
Finish
- Project integration:
- If no project is opened in IntelliJ IDEA, then left click on
Open. Otherwise left click onFilechooseOpen - Choose the project root directory
- Choose
Gradle projectorMaven project - Choose
Trust Project - Choose
This Windowornew Window
- If no project is opened in IntelliJ IDEA, then left click on
- If you use macOS, you must add the VM-Argument
-XstartOnFirstThreadin your IDE.- For Eclipse:
- Right click in project explorer and choose
Run As - Choose
Run Configurations... - Left click on
Arguments - In the
VM arguments:add-XstartOnFirstThread - Click
Run
- Right click in project explorer and choose
- For IntelliJ IDEA:
- Left click on
Edit Configurations... - Left click on
+ - Choose
Application - Set a name
- Left click on
Modify optionsand chooseAdd VM options - For
VM optionsyou add-XstartOnFirstThread - For
Main Classyou add the main Class from the project root directory - Left click on
module not specifiedand choose a JDK like16 - Left click on
<no module>and choose the your project name - Click
OK
- Left click on
- For Eclipse:
This manual helps you to set up a basic implementation using this project.
If you need more information about the structure of this framework see the Framework Guide
Q: Can I use this project in my lessons?` A: Yes. This project is build for teaching purposes.
Made with contributors-img.
TODO: How to contribute
All files are published under the MIT license by their respective authors. See LICENSE for details.