scratchyone / wasm-sockets

A rust WASM-specific websocket library
MIT License
31 stars 3 forks source link

Macroquad Example #6

Open Pebaz opened 10 months ago

Pebaz commented 10 months ago

I don't know if you've used Macroquad, but I've been trying to get wasm-sockets to work with it's unique build process but haven't succeeded. It would be amazing to have such a simple way of doing multiplayer in the browser with WASM. Could you make a barebones Macroquad example that uses wasm-sockets?

scratchyone commented 9 months ago

This is a great question, thanks for asking! :) I've definitely used wasm-sockets with Macroquad before, in fact IIRC I originally developed this library for a multiplayer web game I was developing in Macroquad. I do remember struggling with the compilation process for Macroquad in general haha, but I don't remember having any issues getting it to compile wasm-sockets, so things have probably changed with the compilation process since then. It's currently finals week so I'm a bit busy, but I'll take a look and try to write a quick example when I have a chance.