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-ivy
once in your project folder to download and install ivy
- Adapt settings in
- Use
ant compile-run
to compile your sources and to start the game
- OS-dependent prerequisites:
- See here
- Run
mvn clean compile
in 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.MAIN
with 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 run
to 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 onFile
chooseOpen
- Choose the project root directory
- Choose
Gradle project
orMaven project
- Choose
Trust Project
- Choose
This Window
ornew Window
- If no project is opened in IntelliJ IDEA, then left click on
- If you use macOS, you must add the VM-Argument
-XstartOnFirstThread
in 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 options
and chooseAdd VM options
- For
VM options
you add-XstartOnFirstThread
- For
Main Class
you add the main Class from the project root directory - Left click on
module not specified
and 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.