> For the complete documentation index, see [llms.txt](https://asrob-uc3m.gitbook.io/robotdevastation-developer-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asrob-uc3m.gitbook.io/robotdevastation-developer-manual/robotdevastation/game-fsm/game-state.md).

# Game State

Game State is where most of the game occurs. In this state you can control your robot to fight other robots. When your health arrives to 0, you die and go to the DeadState.

## Setup

In the Setup the game connects with the [NetworkManager](/robotdevastation-developer-manual/robotdevastation/managers/network-management.md) and the [MentalMap](/robotdevastation-developer-manual/robotdevastation/managers/data-management.md) to receive updates (e.g. your health has changed, some player has joined the game, some player died...). It also starts the video and audio and enables both the user input and the robot controller.

## Loop

In the Loop the game gets input events, process them accordingly and updates the screen.

## Cleanup

If it arrived to this state after requesting exit, it disables all the involved managers.

## Transitions

If health arrives to 0, you die and go to the DeadState.

If exit is requested, it finishes the game.
