🔵Game State
The game state is the state of the game that is currently running, maybe playing, starting .etc.
How to set a new game state?
game.setState(new MyState());
This state runs immediately after setting a new game state.
How to create a new GameState?
public class MyGameState implements GameState {
@Override
public void run() {
//define your logic
}
}