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
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:wasmNavigate to the web directory and install dependencies:
cd web
npm installStart the development server:
npm run devBuild for production:
npm run buildTo run the native desktop version:
cargo build
./target/debug/netcode_example