Show HN: Elara- A free open-source coding game built with Rust and WebAssembly (elaragame.com)
Under the hood, the backend/core game logic is built with Rust and compiled to WebAssembly, and the frontend/UI is in TypeScript and React. In-game, you write code in Rhai, a scripting language tightly integrated with Rust. I chose this architecture for a few reasons: it offers good performance for compiling and running user code, has important sandboxing/safety guarantees like preventing infinite loops, and means the entire game can run in-browser without the need for any servers (aside from just serving static files). Keeping costs low was really important since the game is 100% free and I would like to keep it that way. Check it out and let me know what you think! I'll be checking back here periodically to answer any questions.
The full source code is available on GitHub: https://github.com/albrow/elara.
4 comments
[ 1.8 ms ] story [ 91.2 ms ] threadThe concept is similar user must write code to solve problems involving a "rover" on a grid.
I took some time to make a ScalaJS + HTML version recently, but it still in perpetual alpha-alpha status. The language I invented is minimal and a bit esoteric. Not really a teaching language. It very primitive compared to Elara.
https://github.com/daltontf/coderover-js
https://daltontf.github.io/coderover.html