O'Reilly logo

LibGDX Cross-Platform Development Blueprints by Indraneel Potnis

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

The loading screen

We will now learn how to implement a loading screen in the game when we transition between different levels.

Game states

Usually, when a level is being loaded in games, we are presented with a loading screen. This is a strategy used in cases where the number of images or initializing data is so high that it takes some amount of time to load them. This strategy gives time for the game to load while simultaneously providing a visual cue to the user that something is happening in the game. In our case, we are going to asynchronously load assets into the game while showing the loading screen:

Game states

In LibGDX, assetManager provides the functionality ...

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