This project is a multiplayer game built using Rust for the server and shared logic, and JavaScript for the client-side application. The game logic is

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-07-06 18:00:02

This project is a multiplayer game built using Rust for the server and shared logic, and JavaScript for the client-side application. The game logic is shared between the server and client using WebAssembly (Wasm). This ensures deterministic behavior across both environments.

The utils directory contains shared Rust code that is compiled to WebAssembly for use in the browser as well as for the server backend.

This command will automatically host the static website on the specified port and listen for WebSocket messages on the same port.

The shared code in the utils directory is crucial for maintaining deterministic game logic across both the server and client. This code includes the definitions for game objects, their behaviors, and the physics calculations.

The client is a web application that renders the game using PixiJS and WebAssembly. It communicates with the server to receive game state updates and send player actions.

Leave a Comment