A multiplayer game needs a shared game state that represents the current condition of the match.
In a Unity board game, this can include players, turns, board positions, scores, dice results, match status, and other values required to continue the game.
This example shows how a simple network game state can be structured and synchronized in a multiplayer project.
- What Is Game State?
- Why Game State Matters
- Typical Multiplayer Game State
- Example Game State Model
- Player State
- Turn State
- Board State
- Match State
- Updating Game State
- Server-Authoritative State
- Synchronizing Clients
- Late Join State
- Reconnect State
- Example Network Flow
- Testing Network Game State
- Network Game State Checklist
- Related Documentation
- Conclusion
Game state is the collection of information that describes the current condition of a multiplayer match.
For example:
Game State
├── Match Status
├── Current Turn
├── Players
├── Board
├── Dice Result
├── Scores
└── Winner