You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current examples are barebones and only showcase syncing positions. The examples should be expanded into an actual game to showcase that the netcode is actually nice to work with. The game could be a barebones MMORPG example showcasing inventory syncing across multiple clients among other things like combat. This is a very involved issue. I don't think I will ever get to this point on my own.
As a small reminder in the following example:
// The clientpublicpartialclassGameClient:GodotClient{publicGameClient(){OnPacket<SPlayerPositions>(packet =>{Log($"Received {packet.Positions.Count} player positions");});}protectedoverridevoidOnConnected(){Send(newCPlayerJoined("Valk"));}}
OnPacket<SPlayerPositions> should be changed to OnPacketReceived<SPlayerPositions>
Activity