Chapter 3. Photon Server – Star Collector
In the last chapter, we covered Photon Unity Networking, coupled with Photon Cloud. In this chapter, we'll be covering another multiplayer technology from Exit Games, called Photon Server.
Photon Server is a dedicated server middleware. That means, unlike Unity Networking or Photon Unity Networking, games are not organized by players (in rooms or hosts). Instead, players connect to a single dedicated server, which is in charge of processing game logic. This is the kind of setup you would see in an MMO (for example, a single region in the game might be a server).
In this chapter we will cover the following topics:
What differs Photon Server from Photon Unity Networking or Unity Networking
Getting the Photon Server
Setting up a Photon Server instance
Setting up the Photon Client SDK in Unity
Creating a new server application
Connecting and sending/receiving messages
Creating a central game logic class
Assigning player IDs
Creating a semi-server-authoritative...