
Install node.js from nodejs.org, open the terminal, navigate to your game folder, and run npm init to create your package.json, skipping details by pressing enter.
Install the Express.js framework and Socket.IO to host the server and send files to the client, using npm install express and npm install socket.io in your project folder.
Set up the server by creating server.js, requiring Express, path, and circuit.io, initializing the http server with Express, and listening on port 80 with a console message.
Learn to serve an html response with express by sending a landing html file, configure a public folder, and load phaser.js to run a browser game.
Create a main JavaScript file to initialize the game and canvas with Phaser, set window width and height, configure arcade physics and gravity, and implement preload, create, and update.
Map the w, a, s, d keys to move the player, reset velocity each frame, and update movement through a physics-based update loop using the Phaser input manager.
Move the player with wasd and rotate it to face the cursor by handling pointer move events, converting coordinates to world space, and converting radians to degrees.
Implement shooting by listening for the F key and spawning a Shot class that fires bullets at the player's angle with speed 800 using angle-based velocity.
Learn how to connect server and client using websockets in a multiplayer io game, managing players, handling connections and disconnections, and broadcasting new player events.
Use websocket inputs to synchronize movement in an HTML5 io game by sending movement data (x, y, angle) to the server when players move and broadcasting updates to others.
Use websockets to synchronize shooting in a multiplayer io game by emitting bullet data (x, y, angle) to the server and updating all clients in real time.
Connect the players' gliders to the bullets group using a dot collider. Implement a collision callback that alerts the player you are dead and test the multiplayer browser game.
My name is Matthew and I'm self-taught developer. I know how hard it can be to achieve some real career in IT and I want to help others to understand a specific topic. You might know games that are usually called ".io" games, but ".io" means only the favorite domain that they're hosted on. In the real world, those ".io" games are browser-based multiplayer HTML5 games. And I want to share with you an authentic course where we will develop our multiplayer browser game. If you ever asked someone “how to make online game” or anything similar, this might be the course you’re trying to find.