4 ms·
Not the OP, but most web-based multiplayer games use a server backend to communicate between the multiple players. > connecting to a rust web server for the ga
by nl 2y ago
Not the OP, but most web-based multiplayer games use a server backend to communicate between the multiple players.
> connecting to a rust web server for the game logic? And you want to embed that server by compiling to wasm?
I would assume so, and it being in WASM means they can use the exact same binary code on the server and in the webbrowser.
You could of course do the same thing by writing in Javascript (running in Node on the server or in the browser) but then you are in JS instead of Rust.
- globalnode 2y agoThank you, that clears it up for me. Tech has changed a lot since I was exposed to web programming.