Skip to content

Releases: Quillraven/ktx

1.14.2-rc2

Choose a tag to compare

@Quillraven Quillraven released this 08 Sep 22:17

The Kotlin version update to 2.4.20 broke the script module. I have no experience with Kotlin scripting and as far as I know it is experimental and has no priority for JetBrains. I migrated it from the JSR-223 stuff to the official scripting documentation that I found. Not quite sure what exactly breaks for people that use this module but it does support more things now than before from my understanding (see below). If anyone is using it and faces issues then please create an Issue for it or ideally a PR. Thanks!


1.14.2-rc2

  • [FEATURE] (ktx-textratypist) new KTX module with utilities and type-safe builders for TextraTypist animated text widgets.
    • textraLabel factory method for creating plain TextraLabel instances.
    • typingLabel factory method for creating animated TypingLabel instances.
  • [UPDATE] Updated to Kotlin 2.4.20.
  • [UPDATE] Updated to Gradle 9.7.1.
  • [CHANGE] (ktx-script) KotlinScriptEngine no longer wraps the deprecated JSR-223 ScriptEngine and now uses
    the native Kotlin scripting host from the kotlin-scripting-jvm-host package:
    • The public engine property exposing the JSR-223 ScriptEngine was removed.
    • Scripts executed with evaluateOn can now contain import statements.
    • import, importAll, and setPackage no longer evaluate scripts; invalid imports or packages are reported
      with a ScriptEngineException on the next script evaluation.
    • Scripts are compiled and evaluated separately. Top-level classes, functions, and variables declared in a script
      are no longer available in future script evaluations.
    • setPackage can be called multiple times; the package of the future scripts is updated accordingly.
  • [FEATURE] (ktx-tiled) Added tileSet extension method to TiledMap that returns a TiledMapTileSet
    by name or throws a MissingTileSetException if the tileset does not exist.
  • [FEATURE] (ktx-tiled) Added forEachCell extension methods to TiledMap and TiledMapTileLayer that
    execute an action for each non-empty Cell of the tile layer(s), passing the cell and its coordinates.
  • [FEATURE] (ktx-tiled) Added tileById extension method to TiledMap that returns a TiledMapTile
    from a tileset by its name and local tile ID. It throws a MissingTileSetException if the tileset does not
    exist and a MissingTileException if the computed global tile ID does not match a tile in the tileset.
  • [FEATURE] (ktx-tiled) Added layerOrNull extension method to TiledMap that returns a MapLayer
    by name or null if the layer does not exist.

1.14.2-rc1

Choose a tag to compare

@Quillraven Quillraven released this 13 Aug 05:04

The first official release of the community fork. To migrate you need to update the dependencies from io.github.libktx to io.github.quillraven.libktx. So e.g.:
io.github.libktx:ktx-app becomes io.github.quillraven.libktx:ktx-actors.


  • [UPDATE] Updated to libGDX 1.14.2.
  • [UPDATE] Updated to Kotlin 2.4.10.
  • [UPDATE] Updated to Kotlin Coroutines 1.11.0.
  • [UPDATE] Updated to VisUI 1.5.9.
  • [UPDATE] Updated to Dokka 2.2.0.
  • [UPDATE] Updated to Gradle 9.7.0.
  • [MISC] The project is now maintained as a community fork of the original LibKTX repository.
  • [FEATURE] (ktx-tiled) MapObject.shape now also supports PointMapObject and TextMapObject. Point objects
    are returned as a Rectangle with zero width and height, text objects as their Rectangle.