How Multiplayer Games Work

preview_player
Показать описание
Learn the fundamentals of how to make online multiplayer games.
Crash course in the fundamentals of computer networking and how to make multiplayer games.

Frameworks mentioned:

Chapters:
0:00 Why I Love Multiplayer Games
0:38 Types of Multiplayer
2:51 Internet and LAN Communication
6:08 Synchronizing Game State
7:47 State Buffer for Out of Order Commands
9:24 Client-Side Prediction
11:18 Remote Procedure Call
11:45 Client Authoritative Control
13:27 Application in Untiy
14:13 My Experiences
14:52 Try Add Multiplayer to Your Next Game

#gamedev #multiplayer #computerscience

References:
Рекомендации по теме
Комментарии
Автор

Incredibly underrated video. Fantastic production!

sheditz
Автор

I’ve taken networking courses in college and can say with certainty that if the instructors presented the topics like you have here, much more of the class would be engaged with the intricate web *pun intended* of subject matter!

DoubleOSevan
Автор

another thing worth noting is that any way you allow the client to be authoritative, you will open space for hacks more easily, since it is just modifying the game to modify the behavior. i have seen some games (like Rocket League) use prediction on the client for the player's own movement so the server still has full control of the player's position without implying fluidity. this should be more difficult to implement, but is way more secure
btw, nice video ;)

nodenotjs
Автор

2:04 I like how he avoided making a demonic sign whenhe was example peer to peer 😂

theasianoogway
Автор

Damn, I am so interested in a Unity multiayer tutorial by you. Explaining and comparing the different methods on how to implement multiplayer.

TheCrustiCroc
Автор

Scratch online multiplayer games are usually done using peer to peer connection. Tit is possible to make the host type, but is harder. The hardest obe to make on scratch, is the client server, because you have to have a special case in the project to make it run as a server or a client, and also leave the project running forever, and not have to worry about being disconnected. The best way to do that, would be to use an external server that communicates with scratch's server, which is against their tos, so it is rare to find a project that uses that.

ego-lay_atman-bay
Автор

This is such an insanely good high level overview. As someone who codes very very little I felt like I was able to follow everything you were talking about and really love that I now have a better understanding of how this works. Thank you!

ajaydillon
Автор

Explained very clearly. Loved it. Great work 👍

muhammadfaisalbaig
Автор

That's how to present a complex topic in a short precise manner - very well done.

DanElgaard
Автор

I really related to the joy of making multiplayer games!

I definitely want to make one again in the future

MatthewTrecozzi
Автор

This is a really beautiful video, it helped a lot understanding things I had never actually understood before. Thank you so much, keep up the amazing content!

stefanolassandro
Автор

I have no idea how to make a game but for the most part, I was actually able to keep up with the content a little bit.

StanleyMalbroughRoninHD
Автор

4:52 It is a bit problematic to say that an IP address points to an entire network and a port points to a particular computer, as this is only true in the context of network address translation (from the perspective of a server or peer). In the general case, an IP address refers to a network interface and a port is associated with a particular application on a computer. Just thought it's worth pointing out.

spacechild
Автор

3 years of my experience of trial and error, sweat and tears, in just 15 minutes video.. Where were you all this time?
Well done explaining everything, I wish I saw this 3 years ago

BoredDeveloper
Автор

An important clarification to make: an IP address refers to a device on a network, the address tells the sender whether the receiving device is on the same LAN or not, as well as where to send to. Ports refer to an application on a device, for example, a port number can tell the device whether the signal it receives is meant for a web browser or a game. A socket pair refers to both an IP address and the port number, meaning you can know which program is being talked with on which device.

zachlandis
Автор

Damn this helped me understand more about Computer networks than the entire semester of my college you so much :)

chanakyashivaji
Автор

This video is more informative than the wikipedia page on multiplayer technologies for games

MrKristian
Автор

I'm a self-taught junior web developer and a gamer. Once I learnt web sockets, RPC and etc couple days ago, I wondered how multiplayer games work. Your video helped me to understand it, and made me more curious about it so I'll deep dive in it. thank you so much ❤

Furki_
Автор

you forgot how udp packets are not guaranteed to be delivered at all!

(reliability is one of the main points of tcp)

vxl
Автор

Wowww! Incredibly underrated, thank you for this useful info :)) 😊

Mikelica