In this chapter, we're going to talk about multiplayer games, the different design and thought processes that go into them, and the Blueprint code that goes into making one. By the end of this chapter, we should have a good idea of how to go about creating a multiplayer game without getting caught in some of the common pitfalls.
When deciding to create a multiplayer game, it's important to start the framework for your game with multiplayer in mind from the beginning. It can be extremely difficult to add multiplayer to a game that wasn't created with it in mind. In some cases, vast portions of code must be entirely rewritten to get a game working in multiplayer.
The following topics will be covered in this chapter:
- The client-server model
- Replication
- Multiplayer classes
Let's take a look at how a multiplayer game works.