Posted on

Unity Multiplayer Tutorial – Setup

Photon 2 Tutorial

Welcome to this new tutorial series on creating multiplayer video games in Unity using the Photon 2 PUN plugin. For this lesson, we will show you how to download, install and set up the Photon 2 plugin in your Unity projects. Before you follow along with any of the other lessons in this tutorial series, you must complete this video. We will be providing the downloadable add-ons for all the other videos in this series but these add-ons will not include the original Photon plugin. You must get that from the official Photon website.

Photon Website: https://www.photonengine.com/
PUN 2 Plugin:
https://assetstore.unity.com/packages/tools/network/pun-2-free-119922
Payment Plans: https://www.photonengine.com/en/pun/pricing
Documentation: https://doc.photonengine.com/en-us/pun/current/getting-started/pun-intro
Scripting API: https://doc-api.photonengine.com/en/pun/v2/index.html

Creating a Photon Account

The first thing you will need to do in this lesson is to create a Photon account. Once you have registered an account you will need to create a new Photon app project. You will then need to fill out some information about your multiplayer game and then you will click create. After creating a new app you will need to copy the AppID for later.

Setting up a Network Connection

Back in Unity, you will need to go to the Unity Asset Store and search for the PUN 2 free plugin. You will need to download and install this plugin in your project. After importing this plugin a new window will appear. This is the PUN wizard and you need to paste your project AppID into this window and then you will click setup project. The next thing we will do is establish our very first connection to the Photon master server. To do this we will need to create a new script. In this new script, the only thing we will do for this tutorial is to initialize the network connection.

Posted on

Why You Should Make Multiplayer Games!

Learn Why Multiplayer Games are Better

In this video, you will learn why it is better to develop multiplayer games. If you are thinking about becoming a game developer this might not be the best place to start but this is sure where you want to get to. Developing multiplayer video games will increase the chance of your game hitting it really big.

In this video, we discuss why it is better to make a multiplayer game than just making a single-player game. One of the biggest challenges game developers face is audience retention. There are many ways to improve audience retention. You could make a very immersive story or you could make an addictive game mechanic. The problem with this is that the audience is likely to drop the game as soon as they complete the story or get tired of the addictive game mechanic. One of the best ways to increase audience retention is to make a multiplayer game. the multiplayer games add a sense of competition and allow friends to connect up with each other.

In this playlist, we will teach you how to make multiplayer games of your own. I was able to learn multiplayer and implement it into my game Snake Cubed. Now I will teach you what I have learned so you too can learn how to make a multiplayer game.