Chapter 7. Asset Management

In this chapter, we will cover the following recipes:

  • Getting to know AssetManager
  • Asynchronous asset loading
  • Creating custom asset loaders
  • Managing groups of assets for bigger games

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

Get Libgdx Cross-platform Game Development Cookbook 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.