!til &junkworks And stretch goal has been reached! I've got my UDP client/server prototype controlling two characters. Clients send position packets to a server, the server forwards those packets to the clients, and the clients update the other character's position in space.

Next steps are to make state server-authoritative, implement client-side prediction, rollback, and interpolation. This has been a great jam. I learned a ton and have prototype code to build off of (cough cough refactor cough). Thank you @bvisness and all of the admin team for setting everything up!

View full feed

Motivation

I'd like to make some small multiplayer games, so learning about UDP is a good place to start!

High-level Goal

At the end of this project I'd like to understand the basics of UDP connections in client-server configurations and have some sample code that I can use later.

Mid-level Goals

  • Build a simple client-server UDP demo for connections between LAN clients
  • Build a simple client-server UDP demo for connections between a client and remote server (possibly with NAT between them)
  • Build a multi-client-server UDP demo for connections between multiple clients and a remote server

Stretch Goals

  • Make a simple two-player game where game state is enforced by the server