Hacker News new | ask | show | jobs
by hu3 258 days ago
Interesting. Aere you using Ebiten for wasm?

https://ebitengine.org/en/documents/webassembly.html

1 comments

Dang I am not sure why I was downvoted. But to your question I just used a basic MVP pattern where the Go side was pushed events from the browser and the game lib did the validation and called back methods on the browser to update the view state. So the browser side was very stateless for me. This made my testing a lot easier.