Examples for WASM with wasm-pack and/or Trunk #234
Labels
1- needs research
I need to learn more about this topic first, before writing/accepting content for the book
C-enhancement
New content that isn't covered already
P-web
Platform: Web Browser
S-platforms
Content about developing for a specific target platform
Z-large
large task that needs a significant time investment
Mayhaps how to convert one of the Bevy's examples into running on wasm-pack
it turns out to not be that hard but it took me (JS veteran, Rust noob) a good couple hours.
wasm-pack
The main trick is to use Wasm-pack's setup instructions and to paste the example code into
lib.rs
.Trunk
no clue; might try later
how to get bevy to draw to a
<canvas>
of your choice instead of one it creates and appends to the DOM would be great too.The text was updated successfully, but these errors were encountered: