hecrj / coffee

An opinionated 2D game engine for Rust
https://docs.rs/coffee
MIT License
1.08k stars 55 forks source link

Wasm support? #135

Open jgarvin opened 4 years ago

jgarvin commented 4 years ago

I don't see any mention in the README, but would be sweet to have given the library's aspirations.

ispringle commented 3 years ago

I think we would need to do something similar to the example in the wgpu-rs repo. From my limited understanding and use of this, we need to provide a means of linking the the Canvas if we're compiling for wasm. winit does most of the work, just would need to setup the option. I think the ideal way to do it would be to add this to directly to coffee so that you can just specify a target and cargo will compile it.