Introduction to Ashley
Ashley is an Entity Management System included in LibGDX and the one we will work with in this book. We've chosen to use Ashley because it is one of the best at teaching good practices when dealing with a lot of similar dynamic objects with a few differences in their properties. An example could be an enemy versus an obstacle. They both have a position, a model, and a rotation; however, only one of them can move and attack the player. We can manage the differences in properties using the Ashley components and system. Components will be added to entities to differentiate them, and systems put these differences into effect in our game; separate systems will be created to manage a specific family of entities (players, monsters, ...
Get Building a 3D Game with LibGDX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.