Tuesday, 3 October 2023

Show HN: Elara- A free open-source coding game built with Rust and WebAssembly https://bit.ly/46gpgb9

Show HN: Elara- A free open-source coding game built with Rust and WebAssembly I'm excited to share a project that I've been working on mostly solo for the past year! It's called Elara, and it's a free open source game that teaches you how to code. You can play directly in your browser without downloading anything or creating an account. It's targeted toward complete beginners, but if you already have some coding experience, there are optional bonus challenges to really test your knowledge and problem-solving skills. If you like code golf, some of the challenges will be right up your alley ;) 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://bit.ly/46fzsRm . https://bit.ly/46lRW2M October 4, 2023 at 01:01AM

No comments:

Post a Comment