Importing ruffle-js

Trying to load a npm module (Ruffle - Using Ruffle · ruffle-rs/ruffle Wiki · GitHub) throws an error:

 ChunkLoadError: Loading chunk 966 failed.
(error: https://observablehq.com/@atiro/core.ruffle.14afbe2b2ea587f28d56.js)

I think I’m pushing things probably trying to load this emulator within a notebook, but any obvious fixes ?

Thanks

I’ve sent you a suggestion to load the wasm file. It seems to be working but I can’t confirm while the swf file is missing.

I’ve created an example here:

3 Likes

for comparison, my suggestion is here Leonardo Canal Challenge / Fil / Observable ; I didn’t know of ruffle-mirror, which seems to be better than my fiddling with the config.

1 Like

Many thanks to you both. Now working - Leonardo Canal Challenge / Richard / Observable.

I’ve updated my notebook to include a splash screen and download progress, implemented via XMLHttpRequest.

2 Likes