Closed billyb2 closed 3 years ago
We could possibly have this crate as a submodule, then reference the game_logic crate using path in Cargo.toml to compile the WASM.
After trying both WebAssembly and ASM.js while working on 59d86a4167f8ea2bf9e85f1a6c480fa860585198, I noticed that WebAssembly is much, much faster (like compression took 3 seconds vs 20 seconds), so unless we have to , it's the way to go. Though I must note that ASM.js was much easier to get ready, since I didn't have to do any data post-processing (mainly converting it to base64)
Closing, 70a7b35696b64e6dc06c2e2423c0e5826647e6b2 finally gets WASM working!
Eventually, we're gonna want to run this game on the browser. Though the game is very clearly incomplete right now, we need to keep some things in mind as this game rolls through development: