So you want to learn how to make a multiplayer game using a Low-Level API in Godot? In this video, I'll take you through how I use the Low-Level API provided by Godot to create a multiplayer game. I'll be teaching you a bunch of stuff like making our own network handler from scratch and encoding and decoding bytes into a network packet.
IN THIS VIDEO, I USE ASSETS FROM THE PREVIOUS VIDEO ON HIGH-LEVEL API! YOU ARE NOT REQUIRED TO WATCH THAT VIDEO, AS THEY ARE PRETTY EASY TO RECREATE.
Mentioned in this video:
- ENet Library
- ENetMultiplayerPeer
- ENerConnection
Project files:
https://icyengine.itch.io/godot-simple-high-level-multiplayer
Godot version: 4.4
ENet Library:
http://enet.bespin.org/usergroup0.html
Channels:
https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html#channels
Here to teach gamedev and help you make your dream game come to life!
Discord: https://discord.gg/Ev9g6kBPnN
Itch: https://icyengine.itch.io/
Contact: [email protected]
-----------------------------------------
🕒 TIMESTAMPS
00:00 - Intro
01:00 - TCP vs UDP
02:16 - Network Handler
07:46 - PacketInfo
09:44 - IDAssignment
11:28 - PlayerPosition
13:40 - NetworkGlobals
14:16 - NetworkGlobals (Client)
15:43 - NetworkGlobals (Server)
17:08 - Player controller + position sync
18:37 - PlayerSpawner
19:27 - Showcase
19:58 - Outro