Kotlin game framework based on LibGDX
LibKTX aims to provide idiomatic Kotlin extensions and APIs for the LibGDX Java game framework. It provides modular utilities and extensions for selected parts of LibGDX with poor native Kotlin support.
Examples of Kotlin language features used to improve usability, performance and readability of LibGDX APIs include:
- Operator overloads for collections and mathematical operations.
- Extension methods with sensible default parameters.
- Inline methods with reduced runtime overhead for various listeners, builders and loggers.
- Nullable types which improve typing information of selected interfaces and functions.
- Default interface methods simplifying the implementation.
- Type-safe builders for GUI, styling and physics engine.
- Coroutines context providing concurrency utilities.
- Reified types that simplify usage of methods normally consuming
Class
parameters.