-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning Libgdx Game Development
A Starter Class defines the entry point (starting point) of a Libgdx application. They are specifically written for a certain platform. Usually, these kinds of classes are very simple and mostly consist of not more than a few lines of code to set certain parameters that apply to the corresponding platform. Think of them as a kind of boot-up sequence for each platform. Once booting has finished, the Libgdx framework hands over control from the Starter Class (for example, the demo-desktop project) to your shared application code (for example, the demo project) by calling the different methods from the ApplicationListener interface that the MyDemo class implements. Remember that the MyDemo class is where the shared application code begins.
We will now take a look at each of the Starter Classes that were generated during the project setup.
The Starter Class for the desktop application is called Main.java.
The following listing is Main.java...
Change the font size
Change margin width
Change background colour