ktx v1.9.10-b4 Release Notes

Release Date: 2020-01-24 // 4 months ago
  • 🚀 The first release to include a new KTX module with Tiled map editor utilities: ktx-tiled.


    • [FEATURE] (ktx-actors) Added onTouchDown, onTouchUp and onTouchEvent extension methods that allow to attach ClickListener instances to actors.
    • [CHANGE] (ktx-collections) Array.removeAll and retainAll now return a boolean if any elements were removed.
    • [CHANGE] (ktx-collections) Array.transfer is now less strict about typing.
    • [FEATURE] (ktx-math) Added Kotlin ranges extensions that simplify creating ranges and rolling random numbers:
      • Int.amid, Float.amid;
      • +, -, * and / for ranges;
      • ClosedRange<Float>.random, IntRange.random;
      • ClosedRange<Float>.randomGaussian;
      • ClosedRange<Float>.randomTriangular.
    • [FEATURE] (ktx-tiled) Added a new KTX module: Tiled API extensions.
      • Added contains (in) and set ([]) operators support to MapProperties.
      • Added extension methods that simplify properties extraction from MapLayer, MapObject, TiledMap, TiledMapTile and TiledMapTileSet:
      • property
      • propertyOrNull
      • containsProperty
      • Added shape extension field to MapObject.
      • Added extension fields that ease extraction of basic properties from TiledMap and MapObject.

Previous changes from v1.9.10-b3

  • 📚 Includes multiple new utilities, major documentation improvements and some notable dependencies updates.


    • ⚡️ [UPDATE] Updated to Kotlin 1.3.61.
    • ⚡️ [UPDATE] Updated to Kotlin Coroutines 1.3.3.
    • [FEATURE] (ktx-assets) Added AssetGroup abstract class that allows to manage groups of assets.
    • [FEATURE] (ktx-collections) Added removeAll, retainAll and transfer extensions to LibGDX Array using lambda predicates to modify the array in-place.
    • [CHANGE] (ktx-collections) PooledList now implements MutableIterable.
    • [FEATURE] (ktx-graphics) Added Batch.begin extension methods that automatically set projection matrix from a Camera or Matrix4.
    • [FEATURE] (ktx-style) Added Skin extension methods with reified resource types: optional, add, remove, has and getAll.
    • [FEATURE] (ktx-style) The overloaded += operator can now be used to add "default" resources to Skin.
    • [FEATURE] (ktx-json) Added JsonSerializer and ReadOnlyJsonSerializer adapters to facilitate writing custom serializers.
    • [FEATURE] (ktx-json) Added readOnlySerializer() factory functions to simplify creation of ReadOnlyJsonSerializer.