How to Make Multiplayer Python Games - Tutorial

Subscribers:
102,000
Published on ● Video Link: https://www.youtube.com/watch?v=VvwLXnY-mKk



Duration: 0:00
9,253 views
453


Making multiplayer games takes the surprisingly simple functionality utilized with socket programming and makes use of powerful abstractions in order to communicate game states/events. This tutorial covers a basic netcode case for a Tic-Tac-Toe Pygame game through the use of the built-in Python socket library.

Base Tic-Tac-Toe Pygame implementation built on in the video:
https://dafluffypotato.com/static/scripts/networking_tutorial/tictactoe.py
Finished Client/Server:
https://dafluffypotato.com/static/scripts/networking_tutorial/tictactoe_client.py
https://dafluffypotato.com/static/scripts/networking_tutorial/tictactoe_server.py

Clumsy (tool for stress testing netcode):
https://jagt.github.io/clumsy

Linode VPS Referral (gives me credit to pay for my servers):
https://www.linode.com/lp/refer/?r=4c4a0ebc1c40718e778abf5dec802a2c6ee8fbc3

Struct Docs:
https://docs.python.org/3/library/struct.html

Other Networking Videos:
   • I "Just Added Multiplayer" to My Game  
   • I Made Multiplayer Gamedev EASY!  

Support Me (and get source code for many of my unreleased projects):
https://www.patreon.com/dafluffypotato


GunSlaw Discord Server (join for playtests & dev updates of the VR shooter game in the video):
https://discord.gg/pDwkwY9Bj8

My Discord:
https://discord.gg/fluffland-554137097229959188

Check out Yawnoc on Steam (Video BGM is from Yawnoc): https://store.steampowered.com/app/2824730/Yawnoc

My Website (all games shown were made by me):
https://dafluffypotato.com/

Special thanks to my Potato Tier Patrons:
Agent Effe
c h point
Eivind Teig
Michael Placido
Nelligan
rethanon
Szabolcs Dombi

Timestamps:
0:00 - basics & architecture
3:55 - establishing a connection
18:20 - communicating events & states
46:52 - it works!
47:47 - playing over the internet
54:43 - other notes on networking from experience

#gamedev #python #sockets