Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Multiplayer Snake Game - JavaScript & Socket.io

Traversy Media via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to create a multiplayer Snake game with JavaScript and Socket.io. It covers canvas setup, server-side game state, game loops, player connections, join errors, and testing a two-player game.

Syllabus

- Adrian's Intro.
- Setting up HTML.
- Setting up the canvas.
- Painting the snake.
- Setting up the socketio server.
- Connecting to socketio from frontend.
- Moving game state to the server.
- Adding a game loop.
- Debugging game loop issue.
- Controlling the snake.
- WORKING SNAKE GAME!!.
- Home screen for multiplayer game.
- Handling new game on the server.
- Adding ability for second player to join the game.
- Handling join game error states.
- Modify game mechanics for two players.
- Testing the game.
- Debugging errors.
- Working multiplayer game.
- Outro.

Taught by

Traversy Media

Reviews

Start your review of Multiplayer Snake Game - JavaScript & Socket.io

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.