Table of Contents
Preface
Part 1: Handshaking and Networking
1
Setting up a Server
Technical requirements
Introduction to a network
Understanding the ENetMultiplayerPeer class
What is the ENet library?
What is the UDP protocol?
How does this connection happen?
Creating the server
Creating the client
Testing our handshake
Summary
2
Sending and Receiving Data
Technical requirements
Understanding packets
Introduction to the JSON format
Serialization
Sending packets with PacketPeerUDP
Creating an AuthenticationCredentials Autoload
Sending players’ credentials
Listening to packets with UDPServer
Authenticating the player
Loading a fake database
Replying to the authentication request
Maintaining the player’s session
Loading the player’s avatar
Summary ...
Get The Essential Guide to Creating Multiplayer Games with Godot 4.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.