KTX 1.9.6-b3
Pre-release
Pre-release
Features a new module with Box2D utilities: ktx-box2d
. Notable changes include a new coroutines-based asset loader - AssetStorage
from ktx-async
- and removal of all previously deprecated features.
- [UPDATE] Updated to Kotlin 1.1.2-3.
- [UPDATE] Updated to Kotlin Coroutines to 0.15.
- [CHANGE] (
ktx-assets
) StaticAssetManager
instance container -Assets
- was removed. All top level functions depending on the globalAssetManager
were removed. - [FEATURE] (
ktx-assets
) AddedFileType.getResolver
extension method creatingFileHandleResolver
instances. - [FEATURE] (
ktx-assets
) AddedFileHandleResolver.withPrefix
extension method decorating resolvers withPrefixFileHandleResolver
. - [FEATURE] (
ktx-assets
) AddedFileHandleResolver.forResolutions
extension method decorating resolvers withResolutionFileResolver
. - [FEATURE] (
ktx-assets
) Addedresolution
function constructingResolutionFileResolver.Resolution
instances. - [FEATURE] (
ktx-async
) AddedAssetStorage
: a lightweight coroutines-based alternative toAssetManager
. - [FEATURE] (
ktx-box2d
) Implemented a new KTX module with Box2D physics engine utilities:ktx-box2d
.world
factory method constructingWorld
instances.World.body
extension method providing type-safe builder DSL forBody
instances.FixtureDef
builder methods supporting all shapes (CircleShape
,PolygonShape
,ChainShape
,EdgeShape
).FixtureDef.filder
extension methods simplifyingFilter
properties setup.BodyDefinition
is aBodyDef
extension providingBody
building DSL. Used internally byWorld.body
.FixtureDefinition
is aFixtureDef
extension providingFixture
building DSL. Used internally byBodyDefinition
.fixture
,circle
,box
,polygon
,chain
,loop
andedge
extensionFixture
building methods added toBody
.earthGravity
property allowing to setWorld
gravity roughly matching Earth's gravity.onCreate
callbacks inBodyDefinition
andFixtureDefinition
giving access to builtBody
andFixture
instances in building blocks.Body
extension methods that ease creation ofJoint
instances between 2 bodies:jointWith
,gearJointWith
,ropeJointWith
,weldJointWith
,motorJointWith
,mouseJointWith
,wheelJointWith
,pulleyJointWith
,distanceJointWith
,frictionJointWith
,revoluteJointWith
,prismaticJointWith
.
- [CHANGE] (
ktx-i18n
) StaticI18NBundle
instance container -I18n
- was removed. - [CHANGE] (
ktx-i18n
) Top levelnls
functions were removed. - [FEATURE] (
ktx-i18n
)nls
property and method added toBundleLine
for extra readability. - [CHANGE] (
ktx-inject
) StaticContext
instance container was removed. All top level functions depending on the globalContext
were removed. - [FEATURE] (
ktx-inject
)Context.register
builder method added to ease context initiation process.