Skip to content

krahman/rusty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rusty multiplayer starter

Authoritative multiplayer game skeleton in Rust.

Workspace layout

  • crates/protocol: shared wire protocol types
  • crates/shared: deterministic game simulation logic
  • crates/server: authoritative tick-based server
  • crates/client: terminal client for sending movement input

Run

Start server:

cargo run -p server

Start one or more clients in separate terminals:

PLAYER_NAME=alice cargo run -p client
PLAYER_NAME=bob cargo run -p client

In each client, type controls and press enter: w, a, s, d, wa, etc.

Notes

  • Server uses a fixed 20hz simulation tick.
  • Client input includes sequence numbers.
  • Server snapshots include last_processed_input for reconciliation plumbing.

About

learning rust hard way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages