Can you use Java libraries such as LibGDX with Kot...
# announcements
t
Can you use Java libraries such as LibGDX with Kotlin for game development? I heard there is something called 'libKTX' - can we use 'libKTX' (Kotlin extensions for LibGDX) standalone, or does it need to be combined with LibGDX?
google 3
m
You can use anything written in java along with kotlin, but in general libgdx and other libraries are not the best e.g from an architectural point of view they are mostly still monoliths instead of modules. Ktx should resolve dependency to gdx itself hovewer if you hope for clean code then unfortunately the only way not to use 20 years old wood under surface is to write everything from scratch.
v
LibKtx is mostly just very nice extensions on top of LibGDX. You need both in your project.
The other big alternative to LibGDX, LibKtx is a kotlin only framework called KorGE. It's very young and undocumented though.
n
I've written a moderate amount of LibGDX code using Kotlin, it works fine