Skip to content

poold3/InterAstra

Repository files navigation

InterAstra

A libGDX project generated with gdx-liftoff.

This project was generated with a template including simple application launchers and a main class extending Game that sets the first screen.

Deploy

Build a jar file. ./gradlew lwjgl3:jar

You can deploy this game with packr. Here is the command that I use:

java -jar packr-all-4.0.0.jar --platform windows64 --jdk "~\.jdks\liberica-17.0.13" --executable InterAstra --classpath "lwjgl3\build\libs\InterAstra-1.0.0.jar" --mainclass io.github.interastra.lwjgl3.Lwjgl3Launcher --resources "lwjgl3\build\resources" --output interastra-windows

$env:JAVA_HOME = "~\.jdks\liberica-17.0.13"

Platforms

  • core: Main module with the application logic shared by all platforms.
  • lwjgl3: Primary desktop platform using LWJGL3; was called 'desktop' in older docs.

Gradle

This project uses Gradle to manage dependencies. The Gradle wrapper was included, so you can run Gradle tasks using gradlew.bat or ./gradlew commands. Useful Gradle tasks and flags:

  • --continue: when using this flag, errors will not stop the tasks from running.
  • --daemon: thanks to this flag, Gradle daemon will be used to run chosen tasks.
  • --offline: when using this flag, cached dependency archives will be used.
  • --refresh-dependencies: this flag forces validation of all dependencies. Useful for snapshot versions.
  • build: builds sources and archives of every project.
  • cleanEclipse: removes Eclipse project data.
  • cleanIdea: removes IntelliJ project data.
  • clean: removes build folders, which store compiled classes and built archives.
  • eclipse: generates Eclipse project data.
  • idea: generates IntelliJ project data.
  • lwjgl3:jar: builds application's runnable jar, which can be found at lwjgl3/build/libs.
  • lwjgl3:run: starts the application.
  • test: runs unit tests (if any).

Note that most tasks that are not specific to a single project can be run with name: prefix, where the name should be replaced with the ID of a specific project. For example, core:clean removes build folder only from the core project.