libGDX - My Beginnings

Check: https://libgdx.com/dev/

There is a setup tool, that can be used. It can be found here: https://libgdx.com/wiki/start/project-generation and is called gdx-liftoff. (more precisely here: https://github.com/libgdx/gdx-liftoff/releases/tag/v1.14.0.7)

Download and a java -jar gdx-liftoff-1.14.0.7-linux.jar later, the ui appears.

I have installed (at the moment)

$ java -version
openjdk version "21.0.10" 2026-01-20
OpenJDK Runtime Environment (build 21.0.10+7-Ubuntu-124.04)
OpenJDK 64-Bit Server VM (build 21.0.10+7-Ubuntu-124.04, mixed mode, sharing)

There is already a new LTS Version of Java there: Java 25 See here: https://www.java.com/releases/

Click through the options.

Important, the name and package and the java version can be changed at the ui. And maybe most importantly, where to put all the files:

I put the files in a previously prepared, but empty, git repository with no commits. Which is linked to my gitea instance. That worked out of the box.

How to get to build and run it?

What does ./gradlew idea do?

it seems to handle output directories for intellij, and can really be used with ./gradlew idea

build.gradle states the following:

This allows you to “Build and run using IntelliJ IDEA”, an option in IDEA’s Settings.

But I have no clue what it really does! :(

Finally build it with

./gradlew build

and run it!

./gradlew run
Last modified March 7, 2026: doc: add libgdx, first basic moves (79a3858)