Hacker News new | ask | show | jobs
by maxbond 1312 days ago
Recently I wrote a simple forest fire simulation to test out using egui in WASM. I was impressed by how simple it was to get up and running.

https://maxbondabe.github.io/forest-fire

2 comments

This is not backend related though, WASM is just a binary that can be executed by the browser.
missing the most important part. the underbrush.
Yeah for sure, the goal was to learn egui and validate it's portability. The logic is largely lifted from the NetLogo model library (https://ccl.northwestern.edu/netlogo/models/Fire) and represents only the relationship with density and how far a fire is able to spread. I added a couple variations for fun (like using Perlin noise).