Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
rot.js
ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you weren't on Rust I'd suggest rot.js but I think for Rust, bracket-lib is something to consider. The tutorial that uses it builds it for the web. Bonuses: it's been updated recently, and the author has written a Rust gamedev book.
Have you looked at Dart at all? I am currently using it with the malison library by u/munificent (https://github.com/munificent/malison) for my some projects of my own.
This isn't really a recommendation, but I'm using Rust (compiled to Wasm) and a custom backend for cursive that interfaces with a javascript wrapper to use rot.js for the rendering. This mostly only made sense because I was already using cursive for terminal rendering, but the general approach of using Rust for the game logic and some subset of the UI logic, with the actual rendering and user input handled in javascript (or I guess typescript) is perfectly viable (wasm-bindgen makes calling Rust code from javascript or vice versa pretty straightforward).
Bevy has bevy_webgl2, which is supposed to enable a way to compile bevy for wasm and consequently run in a browser.
- Cavernos (https://github.com/jordwest/cavernos)
-my own attempt (https://github.com/Zireael07/Rust-HTML-roguelike)
It looks like https://github.com/sportzer/scavenger2 is the most recent thing where source is available. All the web specific stuff is under the wasm/ directory.