Handling Data During a Session
To work on a multiplayer game, you need a solid system in place to manage the flow of data between levels. This means tracking variables – such as character inventory or health – to keep players up to date with the information they need. In short, an effective multiplayer game requires careful management of data to ensure a smooth, engaging experience for all players.
In this chapter, you’ll be adding the final touches to the previous chapter’s session system by creating a system that will serve as an entry point for the players. This means working on a new level that will let the player create a session – if they’re starting the game as a server – or look for available sessions in the network – if they’re playing as a client.
Additionally, you will learn how to customize the player character – by adding skin variants – and how to send this data from the session selection...