Skip to content
Alistair Rutherford edited this page Nov 27, 2016 · 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/

This is installed along with the tween engine as part of the build instructions for the netthreads-libgdx library. Instructions here : https://github.com/alistairrutherford/netthreads-libgdx/wiki/Build-Instructions

Android Studio

To open in Android Studio simply import the project.

NOTE: For a build target which is not Android you will have to set the working folder as the 'assets' folder under the 'android' source code folder.

NOTE: The GWT target does not work. This is because the project uses Guice. I am planning to switch to a difference dependancy insertion framework in the near future which should resolve this.

Build

To build the appropriate target follow the instructions here:

https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline

At the moment the only targets which will compile are desktop and android:

Desktop

gradlew desktop:run

Android

  • Set the local.properties sdk to the path of your Android sdk (where appropriate)
Clone this wiki locally