Designing the Pangaea game’s flow
To minimize the complexity of the Pangaea game’s flow, the game is designed to have only one lobby (LobbyMap) and one gameplay (TopDownMap) level. The lobby level shows the main menu, which allows players to choose to play as a game host or a client, whereas the gameplay level is the map on which players fight. Here is the game flow chart:
Figure 11.1 – Pangaea game flow diagram
Based on this flow chart, the next thing we need to do is create the three UI widgets for displaying the main menu, the HUD, and the Game Over window, respectively.