Skip to content

Quillraven/gdx-kotlin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gdx Kotlin Template

This project uses a modern Gradle setup approach with Kotlin DSL, version catalog (see gradle/libs.versions.toml) and extracted build logic to convention plugins located in buildSrc. It also uses both a build cache and a configuration cache (see gradle.properties).

It is a starting point for any LibGDX Kotlin application with LibKTX extensions and provides two launchers:

  • Desktop (=lwjgl3): Lwjgl3Launcher.kt
  • TeaVM (=browser): TeaVMLauncher.kt

To run lwjgl3 just execute the main method of the launcher class or run:

  • ./gradlew lwjgl3:run

Construo is used to package your game for distribution. To package for Linux or Windows run:

  • ./gradlew lwjgl3:packageLinuxX64
  • ./gradlew lwjgl3:packageWinX64

For teavm there are four different tasks to build and optionally run it on http://localhost:8080/:

  • ./gradlew teavm:teavmDebugBuild: build an unobfuscated version with source-mapping for browser debugging
  • ./gradlew teavm:teavmDebugRun: run the debug build locally
  • ./gradlew teavm:teavmReleaseBuild: build an obfuscated and optimized version
  • ./gradlew teavm:teavmReleaseRun: run the release build locally

This template can be configured using Gdx-Quilly-Utils.

About

LibGDX Kotlin Gradle DSL template using LibKTX extensions for lwjgl3 and teavm.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages