mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
WebAssembly Example
Simple example showing how to use Fyrox with WebAssembly.
Build instructions
- Make sure you have
wasm32-unknown-unknowntarget installed in rustup (if not, do:rustup target add wasm32-unknown-unknown) - Make sure you have
wasm-packinstalled (if not, do:cargo install wasm-pack) - Make sure you have
basic-http-serverinstalled (if not do:cargo install basic-http-server) - Finally, execute this:
wasm-pack build --target web
basic-http-server
If everything has succeeded, open web browser at http://localhost:4000/ and you should a scene with 3d model which can be rotated using A D keys.