Can't seem to get the mouse click toggle event working. On clicking, a live cell should turn dead and a dead cell should turn alive.
I have uploaded the Rust/WASM Game of Life tutorial project in this Github Repo for those who want to find the issue. PRs are welcome.
My bad. Just changed the variable name from CanvasRight
to CanvasTop
in www/index.js
and it is working now.
system
Closed
3
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.