Book Image

Libgdx Cross-platform Game Development Cookbook

Book Image

Libgdx Cross-platform Game Development Cookbook

Overview of this book

Table of Contents (20 chapters)
Libgdx Cross-platform Game Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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