Introduction
Assets are an intrinsic part of games in the sense that their mixture defines the final game experience and highly contributes to players' opinions.
Most modern and successful games make use of a variety of assets such as textures, fonts, music, sound effects, skins, particle effects, maps, physics, and so on. The asset ecosystem can be very demanding of memory resources.
In this chapter, we will learn how to efficiently manage any kind of asset in your Libgdx applications through the built-in AssetManager
class, even when the amount of resources increases unexpectedly. In this way, we will save valuable time and memory. Moreover, you will learn how to interact with the user while the load is in progress.
At the beginning, you will find AssetManager
an extra complication, but later, you will think of it as a faithful ally. Your code will be more readable and succinct because it will be independent of data.
It is an essential feature whose flexibility allows you to customize its...