Initial multiplayer game
The best way to learn about multiplayer games is by looking at a simple example. The following project is based on the Unity networking tutorial but has been extended to have some other features implemented that will be helpful in the implementation of networking in our RPG.
Fundamental networking components
Since the first edition of the book, a lot of technical and architectural changes have occurred within the Unity engine. Networking is one of the areas that has improved drastically since the publication of the first edition.
Let's take a look and see how we can quickly get started. The first thing you will need to do is download the Network Lobby
asset from the Asset Store, as shown in the following screenshot:
This is a great starting point, as we have a generic network lobby to start off with, so we don't have to waste time creating everything from scratch!
We need to get familiar with some networking components that will be used for the creation of our network...