In part 2 of the series learn how to add Socket.io and server logic for adding and removing players.

Posted on 14th Jun 2019. Follow @phaser_ and get the Phaser World newsletter.

image

From Phaser Tutorials.com: "In Part 1 of this tutorial, we created our Node.js server, set up a basic Phaser game, and set up our server to run Phaser in headless mode. If you missed the beginning, you can find it here. In this tutorial, we are going to focus on adding the Socket.IO library to game, adding the server logic for adding and removing players from the game, and adding the client side logic for adding a player to the game.

If you didn’t complete Part 1 and would like to continue from there, you can find the code for it here. Let’s get started!"

Read More

Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.

The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now
$19