We will build our world and talk about what's going on inside our structure. First, we'll start implementing our game world, the UI, and other screens later.
First, we will set up a structure to work with and keep things organized. We will make a small image that shows how the structure is made:
The DesktopLauncher.java
and AndroidLauncher.java
contain the Core that will run our screens. The Core will call the first screen, the Main Menu Screen; from there we can go to the Game Screen or Leaderboards Screen, and move between them.
As good practice and to keep our motivation up, we will first build a Game Screen and an actual game to check design failures and see fast gameplay.
First, we'll configure DesktopLauncher.java
using the following code:
public class DesktopLauncher { public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.width ...