O'Reilly logo

Mastering LibGDX Game Development by Patrick Hoey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required