
Get to know your instructor and course overview.
In this lecture, you will learn how to download the Unity project from the bonus lecture and how to open the project main scene.
In this lecture, you will learn how to test the gameplay and test the game as a server and client instance.
In this lecture, you will get an overview of the scene assets and the game resources.
In this lecture, you will learn how to design the login user interface in Unity, by reusing assets from the source code.
In this lecture, you will learn how to design the Registration screen user interface.
In this lecture, you will learn how to connect the authentication user interface to the code
In this lecture, you will learn how to swap between the Registration panel and the login panel.
In this lecture, you will learn how to add a feedback message field.
In this lecture, you will get an overview of the Authentication layers.
In this lecture, you will learn what is the database layer, and what are the different parts involved.
In this lecture, you will learn how to install the MYSql editor, for free.
In this lecture, you will learn how to create the SQL database and User table inside that database.
In this lecture, you will learn how to insert new users using mysql editor
In this lecture, you will learn how to download the text editor to be able to easily write PHP code on MAC or Windows or also Linux
In this lecture, you will learn how to connect the PHP script to the SQL DB
In this lecture, you will learn how to program the database login script
In this lecture, you will learn how to login users connecting the Unity code to the SQL database via PHP
In this lecture, you will learn how to program the Registration using Unity
In this lecture, you will learn how to trigger the User's registration code from Unity.
In this lecture, you will learn how to create a serializable JSON object for the User within Unity.
In this lecture, you will learn how to refactor the Request Endpoint code
In this lecture, you will learn how to launch the game client after a successful login or successful registration.
In this lecture, you will learn how to test the Game Host and the Client Login system.
In this lecture, you will learn how to hide the characters entered within the password text fields.
In this lecture, you will learn how to program the player gear storage class.
In this lecture, you will learn how to create the SQL table for the Gear
In this lecture, you will learn how to program the PHP code that will retrieve the player's gear items.
In this lecture, you will learn how to retrieve stored player gear in Unity.
In this lecture, you will learn how to equip the helmet that was retrieved from the server.
In this lecture, you will learn how to add item attributes
In this lecture, you will learn how to equip the sword which entry came from the database.
In this lecture, you will learn how to equip the database off hand item.
In this lecture, you will learn how to equip the shoulders that are coming from the database.
In this lecture, you will learn how to add a reference to the ground objects.
In this lecture, you will learn how to program Unity to send player gear information to the database
In this lecture, you will learn how to store the player's gear in the database.
In this lecture, you will get to refactor the code that equip items on player spawn.
In this lecture, you will learn how to create the SQL script that retrieves backpack data
In this lecture, you will learn how to program the PHP script that will retrieve backpack items.
In this lecture, you will learn how to program the PH script to store backpack item data
In this lecture, you will learn how to code the Unity script that will get the backpack items
In this lecture, you will learn how to program the code that will store backpack data into the database.
In this lecture, you will learn how to make sure new players still get empty entries for the gear and the backpack
please download the project files in this lecture.
Note: all software used are FREE to download and use on PC, LINUX and MAC computers (no need to pay, cheers!)
This course teaches you how to create an authentication system for video games made with Unity.
With the authentication system, users can sign up and login into your game from any computers at anytime. It allows you, the developers, to store and retrieve important data such as the player's email address and password, but also critical information such as which weapons and gear items characters are wearing and which items are in the player's backpack.
All the great games are using it, look at world of warcraft, diablo, battlefield or league of legends.
This course goes beyond Unity as it teaches you how to program the server side that will interact with Unity using MySQL and in PHP.
The course is easy to follow because all the steps are show to you in the video lectures, plus you also get all the source codes as reference.
Nobody teaches you how to set up storing/retrieving game player data on a real server, only on home computers as a server, and of course that will not work except to entertain a few friends.
I'll see you in the course
***
Why use PhP and not connect Unity straight to the database?
It's a matter of design. Why would you want your players to connect to the DB directly? Assuming that you do not need to use the DB that often (just to adjust some values which might happen every couple seconds) It's probably always better to have an API in place that takes care of the communication between the client and the server/DB instead of having your players connect directly to the DB.
Also, it would probably mean storing your DB access information(db username and password) in your code or somewhere else on the clients side, which would mean that anyone would be able to find it out in some way. Wwhich is obviously something you don't want to happen.
Now if a user calls a simple SQL link, he/she would have all control over what happens on the server and the DB.
Using the PHP layer, the DB isn't exposed to the player directly and as a developer, you’re able to check the data that your server receives to make sure that somebody isn't cheating.
The Php server layer checks the incoming data before forwarding it to the DB or else everyone could do some terrible things such as specify some values for the URL and just send them directly to your DB.
Also, you don’t want to store the data locally, within the player’s hard drive, because any data stored locally can be easily accessed and modified, and nefarious players could easily equip epic loot without having to defeat bosses, or change their score to a gazillion number.