ktx v1.9.10-b4 Release Notes
Release Date: 2020-01-24 // over 4 years ago-
🚀 The first release to include a new KTX module with Tiled map editor utilities:
ktx-tiled
.
- [FEATURE] (
ktx-actors
) AddedonTouchDown
,onTouchUp
andonTouchEvent
extension methods that allow to attachClickListener
instances to actors. - [CHANGE] (
ktx-collections
)Array.removeAll
andretainAll
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
) andset
([]
) operators support toMapProperties
. - Added extension methods that simplify properties extraction from
MapLayer
,MapObject
,TiledMap
,TiledMapTile
andTiledMapTileSet
: property
propertyOrNull
containsProperty
- Added
shape
extension field toMapObject
. - Added extension fields that ease extraction of basic properties from
TiledMap
andMapObject
.
- Added
- [FEATURE] (