Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Using Kotlin, libGDX and Ashley as well. One neat trick I learned about is .apply { blocks, for initializing.

You can do, for example:

val myEntity = Entity().apply {
add(TransformComponent())
// Other things here
}

(+1)

Thanks. I shall give that a try. Relatives leave tomorrow (not that they haven't been great) so hopefully I will get more programming done.