Back to Browse

Introduction to Photon for Unity

3.4K views
Jul 14, 2019
2:44

ACCESS the FULL COURSE here: https://academy.zenva.com/product/multiplayer-game-development-mini-degree/?zva_src=youtube-description-introtophoton TRANSCRIPT Hey, everyone, my name's Daniel Buckley, and I will be instructor for this course. So this is what we're going to be making. We are going to be making a 3D multiplayer game in Unity using Photon. Photon is a networking tool for Unity, and it's one of the most popular ones currently in the world for the platform. So the aim of our game is to hold the hat for a certain amount of time. This is going to be a multiplayer game where you can have as many players as you want really, but the aim of the game is to hold on to this hat, or any various object, for a certain amount of time. Once you hold on for that amount of time, you win the game. As you can see here, the players can also steal the hat from each other by running into each other, and this is just going to be a game that we can use to demonstrate many of the different features of Photon and networking inside of Unity. We're going to be creating a menu and lobby system which will allow players to join games and lobby up before jumping into the actual game. As you can see here, we have a lobby and there's three players in it, and as the host, you will be able to start the game. We'll also be working on a player controller. This player controller will be able to move, jump, and steal the hat from other players. When they hold on to the hat, their timer will increase, and if that timer reaches the maximum amount of time needed, then they will win the game. All this stuff will also be done through networking, so we'll be syncing the movement, the jumping, the stealing of the hat, through the network so that it appears on all other player screens at the same time. For all of this, we'll be using Unity's UI system, canvases, text, buttons, input fields, sliders, and more. These will be used on the menu to enter in the player name, the room name that you wanna join, as well as the buttons. In the game view here we have the sliders and the text to display the players and their current time, as well as who wins the game. This is what our game loop is gonna look like. We're gonna start on the menu, and then a player can either join or create a game, and that will place them inside the lobby. Once in the lobby, the host can start the game and that will load up the game scene, where they'll begin to play the game. When a player who's holding the hat reaches the winning time, that player wins the game, and all the players then go back to the menu. ZENVA is an online learning academy with over 400,000 students. We feature a wide range of courses for people who are just starting out, or for people who just want to learn something new. The courses are also very versatile, allowing you to watch them whenever you want, and however you want. There are included course project files that you can follow along to see the project and work along with it, and there's also lesson summaries, so you can choose to read the course as well. With that all said, let's get started on our project.

Download

0 formats

No download links available.

Introduction to Photon for Unity | NatokHD