Multiplayer Snake Game | JavaScript & Socket.io

preview_player
Показать описание

Hungry Turtle Code YouTube Channel:

Code:

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
Рекомендации по теме
Комментарии
Автор

Thanks so much for the opportunity Brad! It was such a blast making this

Hungryturtledev
Автор

Adrian is an excellent teacher. I really like the way he explains everthing.

anonymous-jeih
Автор

I literally typed how to learn to make a multiplayer game because i thought an idea of a multiplayer snake game and I thought it was so original, but i saw this video hahahaha that was funny

skourt
Автор

Thank you Brad.
love and respect 🙏 from Sikkim, India 🇮🇳

its_magnetic
Автор

I was watching one of his videos just the other day! I think me might just be the fastest JavaScript developer on YouTube.

davidconnelly
Автор

holy shit ur such a good teacher, keep it up!

hellfishii
Автор

Literally was wondering about making something like this not 2 hours ago! SO GLAD TO SEE A TUTORIAL. Thanks both of you guys

petermanchester
Автор

Quick question: Why does this communication between Netlify and Heroku via Socket.io not cause CORS errors? I am trying a variant of your tutorial and I am getting CORS on the frontend when I deploy the project. Any help is appriciated!

christofferos-lol
Автор

Thanks Brad for another great guest on your channel !

Автор

Thanx Brad..bcoz of you we are getting these type of great content and personalities.. grateful to u

m..
Автор

Awesome tutorial. I was able to make a multi-player competitive hangman game from this with zero background with socket io and npx

logandihel
Автор

Hey man! Thank you very much. I finished this project and I am glad I did it. I was trying to understand which is the power of sockets and you doing this example let me understand that. Stay hungry stay foolish!

Tinchoas
Автор

This is what I was looking as an inspiration for competition 🙂🙂, Thank you Brad sir and Aidrian sir!

swoorp
Автор

20:13 this is exactly what i want. thank you very much. you're awesome ♥️🐥

greyhorn
Автор

There are actually many great creators i did not know about. Thanks for bringing this to us Brad!

MaxProgramming
Автор

I saw him coding with Vim, instantly subscribed !

Автор

Thank you for this im watching it rn and making it

tylerobier
Автор

This video just made my youtube feed exciting really I love it😍

rohitsharma
Автор

1:12:00 I suspect that one of the issues was related to the change made back at 48:50. The game.js code was changed to export "initGame" instead of "createGameState", but the require() statement in the calling code in server.js wasn't updated to match.

mykalimba
Автор

This is beautiful. Next time please if possible you can do a video on production development of nodejs web apps mostly on the security, aspect, database security and most of all if possible a web app that spans a large region. In short how to create a full production system which is used by atleast 500 people at a go. Wanna see how to control those errors, seurity aspect, etc

Ahdhsjsshhsj