January 2015
Beginner to intermediate
478 pages
9h 46m
English
The application life cycle in LibGDX is a well-defined set of distinct system states. The list of these states is pretty short: create, resize, render, pause, resume, and dispose.
LibGDX defines an ApplicationListener interface that contains six methods, one for each system state. The following code listing is a copy that is directly taken from LibGDX's sources. For the sake of readability, all comments have been stripped:
public interface ApplicationListener {
public void create ();
public void resize (int width, int height);
public void render ();
public void pause ();
public void resume ();
public void dispose ();
}All you need to do is implement these methods in your main class of the shared game ...
Read now
Unlock full access