Game FSM

The Game FSM, implemented in GameStateLib using the State Machine Library, is the component in charge of controlling the game flow. Each state corresponds to a game state, and game conditions trigger the different transitions of the FSM.

There are three main states in robotDevastation, each of them with different pre-state, state and post-state conditions:

  • Init State: the game starts in this state, showing the initial splash screen. When user is ready, it logs in the player.
  • Game State: main state of the game. Combats and robot movement happen in this state.
  • Dead State: you arrive to this state when you die, and remain there for a certain amount of time until you can be respawned into the game.

results matching ""

    No results matching ""