Skip to content

fliqqs/client-side-prediction-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client Server Netcode Example

Demo

A replication of the demo provided in Gabriel Gambetta's Fast-Paced Multiplayer Series built in rust that allows for:

  • Client Side Prediction
  • Server Reconciliation
  • Entity Interpolation

Try the demo here

Development

Building the WASM module

First, build the Rust WASM module:

cargo build --release --target wasm32-unknown-unknown
cp target/wasm32-unknown-unknown/release/netcode_example.wasm public/

Or use the npm script from the web directory:

cd web
npm run build:wasm

Running the React web app

Navigate to the web directory and install dependencies:

cd web
npm install

Start the development server:

npm run dev

Build for production:

npm run build

Running the native version

To run the native desktop version:

cargo build
./target/debug/netcode_example

About

client-server architecture demo written in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published