In development! Planned release: 4th Quarter, 2022.
Author: Brian G. Burton, Ed.D.
Multiplayer 2D Games with Unity walks through the full process of creating an authoritative Client/Server 2D game.
Using open-source and free tools you will learn the process of communicating with a server and handling game events.
With the open-source server tool Colyseus, this textbook walks through the entire process of creating a multiplayer game for virtual reality or desktop play with the Unity Game Engine.
Table of Contents:
Chapter 0: Before We Begin
How We Will Reach Our Goal
Chapter 1: Saying Hello
An Introduction to Multiplayer Games
What is a server or a host?
What is a client?
Types of Game Servers
Colyseus Hello World
Things you will need
Creating a Game Environment
Adding a Player
Adding Movement to the Player
Adding the Multiplayer Client
Adding the Colyseus Network Manager
The Colyseus Client
Sending information to the server
Receiving Information from the server
Time to connect!
Chapter 2: Understanding Client/Server
Local vs. Remote Servers
Configuring a local server
Launching your local server
Debugging in Localhost
Colyseus APIs Used
Chapter 3: Making the Client Game Environment
A New Scene
Client Implementation of Player Rotation
Server Implementation of Player Rotation
Adding the player’s name
Client Implementation of player’s name
Health and Scoring
Client Implementation of Health and Scoring
Server Implementation of Health and Scoring
Chapter 4: Adding Combat
Client Implementation of Combat
Server Implementation of Combat
Chapter 5: Configuring an Arena Server
First Things First
Managing your server
Uploading your script
Updating your client for Arena
Chapter 6: Adding a Server Lobby
Configuring a Lobby
Winning the Game
Chapter 7: Publishing
Chapter 8: Next Steps