Tiny rendering engine (WASM + canvas)

⚓ rust    📅 2025-05-10    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 52 days ago. The information described in this article may have changed.

Hello!

I was surprised to find out that there's a code_review category here. I don't work with Rust professionally (hence I don't have Rust colleagues to push me) so it would be amazing to get some feedback on how I'm doing!

I made a small project for fun to explore WASM - GitHub - vimlucid/twors: Simple 2D render engine based on canvas and WASM written entirely in Rust

I'm mainly interested in feedback for Rust specific patterns, but any general observations will also be appreciated!

  • It's worth noting that ECS is probably the best approach for a generic game engine, but I wanted to keep the scope small and simple.
  • I implemented a procedural macro as well - obviously a flexible component system would have avoided the hardcoded renderables and transform properties, but the macro code is what's important for the review!

2 posts - 2 participants

Read full topic

🏷️ rust_feed