Screens

We already have a screen that renders the game, and all it needs to work and have gameplay. Now, we will need to add other common screens (unless you go with an original design). For our game, we'll need: a main menu screen, a loading screen (to avoid weird freezes), and a leaderboards screen.

Main menu screen

Our main menu screen needs to have some basic items such as a background, a title, a play button, a leaderboards button, and a quit button. We won't get into more details because we are building a prototype so we'll only include the primary features.

We will first change Core.java to make it read our main menu screen before launching the actual game screen:

Core.java to make it read our main menu screen before launching the actual game ...

Get Building a 3D Game with LibGDX now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.