Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples for WASM with wasm-pack and/or Trunk #234

Open
SIGSTACKFAULT opened this issue Oct 4, 2023 · 0 comments
Open

Examples for WASM with wasm-pack and/or Trunk #234

SIGSTACKFAULT opened this issue Oct 4, 2023 · 0 comments
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

Comments

@SIGSTACKFAULT
Copy link

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.

@inodentry inodentry added C-enhancement New content that isn't covered already S-platforms Content about developing for a specific target platform P-web Platform: Web Browser Z-large large task that needs a significant time investment 1- needs research I need to learn more about this topic first, before writing/accepting content for the book labels Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants