Understanding the application lifecycle of LibGDX
With a better understanding of the core modules included with LibGDX, we can now look at the application lifecycle of a typical game written with LibGDX for the desktop illustrated by the following figure (Figure 6):
This diagram represents the cycle of your game loop, where one loop through the logic represents a frame. The following steps outline the various paths through the game loop in this figure:
- The
LwjglApplication
class will bootstrap itself with your starter class instance and the configuration that was passed into its constructor. TheLwjglApplication
constructor will instantiate ...
Get Mastering LibGDX Game Development 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.