The next class to review is
MainGameScreen, which can be found at
MainGameScreen class is the first
Screen implementation for our game and represents the main gameplay screen used to display the game map, player avatar, and any UI components.
The class diagram for
MainGameScreen (Figure 8) shows all the attributes and method signatures for our first pass:
The import packages for
MainGameScreen are as follows:
package com.packtpub.libgdx.bludbourne.screens; import com.badlogic.gdx.Gdx; import ...