Implementing asset management with loading textures and tile-based maps

The next class to review is Utility, which can be found at core/src/com/packtpub/libgdx/bludbourne/ The Utility class represents a placeholder for various methods including dealing with the loading and unloading of game assets.


The class diagram for Utility (Figure 7) shows the attributes and method signatures for our implementation:


Figure 7

The import packages for Utility are as follows:

package com.packtpub.libgdx.bludbourne; import com.badlogic.gdx.Gdx; import; import com.badlogic.gdx.assets.loaders.TextureLoader; import ...

Get Mastering LibGDX Game Development 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.