Skip to content
Benedikt S. Vogler edited this page Dec 29, 2019 · 10 revisions

This guides was made using Netbeans 8.2 and Java 8.

Using maven

Wurfel Engine now uses Maven for dependencies. You need to have to have the maven plug-in for Netbeans installed. With NetBeans you can simply use the open project… dialog and then select the core folder to open the WurfelEngine as a maven project. The needed dependencies are then downloaded.

Then in your maven game project you can add the engine project as a dependency.

If you don't want to work with the engine's source code or maven you can import the WurfelEngineWithDependencies.jar file. This file contains the compiled sources. In the project overview right click on Libraries to add the dependencies.

Add Libraries Screenshot

Working with the engine source without maven

During game development you probably have to modify the engine in some ways. Therefore it is advice to use this setup. For simple setups the other setup may fit better.

Setup Wurfel Engine

  1. Create New Project -> Java -> Java Application NewProject
  2. Choose own name and location
  3. Right click on the new project -> Properties.
  4. Remove old source folder.
  5. "Add Folder…" then choose <WE SDK directory>/src. You only need the source files so you can use hard links or copy the files wherever you like.
  6. In the project overview: Right click on "Libraries" folder and add the libGDX files.

Add Libraries Screenshot

They should include:

  • gdx-controllers-desktop-natives.jar
  • gdx-controllers-desktop.jar
  • gdx-controllers.jar (in official libGDX release located under extensions/)
  • gdx-backend-lwjgl-natives.jar
  • gdx-backend-lwjgl.jar
  • gdx-natives.jar
  • gdx.jar

Simple setup

If you just want to make games and do not want to modify the engine for your needs choose this guide. This will not include the source code of Wurfel Engine.

  1. Create New Project -> Java -> Java Application NewProject
  2. Choose own name and location
  3. In the project overview right click on Libraries.

Add Libraries Screenshot

  1. Add WurfelEngine.jar and the libGDX .jar files. They should be:
  • gdx-controllers-desktop-natives.jar
  • gdx-controllers-desktop.jar
  • gdx-controllers.jar (in official libGDX release located under extensions/)
  • gdx-backend-lwjgl-natives.jar
  • gdx-backend-lwjgl.jar
  • gdx-natives.jar
  • gdx.jar
Clone this wiki locally