Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Multiplayer Snake Game | JavaScript & Socket.io
Play lesson

Vanilla JavaScript - Multiplayer Snake Game | JavaScript & Socket.io

5.0 (3)
31 learners

What you'll learn

This course includes

  • 52 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video we will create a multiplayer snake game using socket.io Hungry Turtle Code YouTube Channel: https://www.youtube.com/channel/UC7Vxnf06GP6w42Lg3TQLXSw Code: https://github.com/HungryTurtleCode/multiplayerSnake Timestamps: 0:07 - Adrian's Intro 1:05 - Setting up HTML 2:25 - Setting up the canvas 7:00 - Painting the snake 12:24 - Setting up the socketio server 14:15 - Connecting to socketio from frontend 18:10 - Moving game state to the server 19:58 - Adding a game loop 32:31 - Debugging game loop issue 33:45 - Controlling the snake 39:05 - WORKING SNAKE GAME!! 40:50 - Home screen for multiplayer game 45:12 - Handling new game on the server 53:30 - Adding ability for second player to join the game 1:01:30 - Handling join game error states 1:03:44 - Modify game mechanics for two players 1:11:48 - Testing the game 1:12:35 - Debugging errors 1:15:15 - Working multiplayer game 1:15:21 - Outro

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere