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/Utility.java. The Utility class represents a placeholder for various methods including dealing with the loading and unloading of game assets.

Utility

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

Utility

Figure 7

The import packages for Utility are as follows:

package com.packtpub.libgdx.bludbourne; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; 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.