[5SD037] Multiplayer

So in this blog post I will write about one of the most important systems in multiplayer game. The network solution.

In The Summoning we chose to use Photon PUN, can be found here, this because I have used Photon together with Unity before (only some experimental projects). Photon is a great framework for making simple multiplayer games in Unity. It doesn’t take much code and time to get a game project up and running. Which is exactly what we needed for this project, considering we only had 8 weeks to make it.

We started out with splitting the game into a authoritative server project and a client project. Both running in Unity. However after one week with a lot of work I noticed how much extra time it took to implement features using this structure. So after a few discussions I was convinced I had to change from server-to-client to peer-to-peer. This means the development was much smoother, instead of having duplicated code in two projects we could just add it in one place.

 

blog_multiplayer_shared-views
This is a really early image from two clients connected the the same game

 

About Alexander Pihl

2015 Programming