Installing the lib

A Zip file with desktop demos and a simple bootstrap project can be downloaded from Github to get started with the gdx2d library quickly.

You can also download and run the gdx2d-demoDesktop-1.2.2.jar file to see the latest demos programs on your PC (no development environment is required):

Gdx2d demos selector

Run demo programs in Eclipse

Download the gdx2d-1.2.2-students.zip file, then import the two project in you Eclipse workspace (using the File->Import...->Existing Projects into Workspace menu in Eclipse then Select archive file:):

Import existing projects in Eclipse

The gdx2d-demoDesktop contains several program examples you can run on your PC. All the source code of the demo programs are provided. Select and run the main Java file gdx2d-demoDesktop/src/ch/hevs/gdx2d/demos/DemoSelector.java to display the demo selector window, or select the demo you are interested in and launch it from Eclipse.

Hello gdx2d project in Eclipse

The gdx2d-helloDesktop project is a simple project you can use as a base to start coding with the gdx2d library. Select and launch the HelloWorld.java file to see your first program:

Gdx2d bootstrap project

Maven-based project

Advanced user can also use Maven or Gradle based projects to get started with the gdx2d library on desktop.

<dependency>
  <groupId>ch.hevs.gdx2d</groupId>
  <artifactId>gdx2d-desktop</artifactId>
  <version>1.2.2</version>
</dependency>
compile 'ch.hevs.gdx2d:gdx2d-desktop:1.2.2'

More information are available on this page.

Development versions

Development / snapshots versions of the gdx2d library can be downloaded from the Sonatype snapshots repository. It is also possible to build the library from sources using Maven. Please have a look at this page for the details.


This page is generated from GitHub. :pencil2: Improve this page.