Multiplayer Snake Game | JavaScript & Socket.io



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

source

You May Also Like