Skip to content
Alistair Rutherford edited this page Sep 14, 2013 · 20 revisions

Pre-requisites

  1. netthreads-libgdx

The demos use the netthreads-libgdx library. If you don't have this already you will have to build it and install it into your local maven repository. Just follow the build instructions.

The project is here:

https://github.com/alistairrutherford/netthreads-libgdx

The build instructions are here:

https://github.com/alistairrutherford/netthreads-libgdx/wiki/Build-Instructions

  1. FixtureAtlas

The box2d-test demo makes use of the FixtureAtlas class from here:

https://code.google.com/p/box2d-editor/

You will need to download the jar from here:

https://code.google.com/p/box2d-editor/downloads/detail?name=libgdx-fixtureatlas-1.0.zip

Then you will need to install it into your local repository

mvn install:install-file -Dfile=fixture-atlas.jar -DgroupId=aurelienribon.fixtureatlas -DartifactId=libgdx-fixtureatlas -Dversion=1.0.0 -Dpackaging=jar -DgeneratePom=true

Build

The demos use the LibGDX maven archetype so you can build the different targets using the instructions here:

https://code.google.com/p/libgdx/wiki/MavenProjectSetup

Eclipse

To build the Eclipse project run the following Maven command in the root of the project:

mvn eclipse:eclipse

You will also have to ensure the M2_REPO class path variable is set in your Eclipse. Go to Window->Preferences->Java->Build Path->Classpath Variables and add M2_REPO. The path you put in is the path to your local repo e.g. c:\Users\Alistair.m2\repo (for windows, I have no idea what it would be for Mac or Linux).

Clone this wiki locally