I'm building a cozy game using Godot, and wanted to add a feature where users can pick up a PICO-8 cartridge and run the PICO-8 runtime + cartridge. Godot compiles to run cross-platform, so I figured that the best attempt to get this to work would be running a WASM file.
It seems like WASM support for PICO-8 exporter is experimental? The exporter produces .js and .wasm, so it seems that the WASM executable was intended to be called by the Javascript code. I briefly attempted to wire GDScript to call the WASM file, but the interface functions calls are not straightforward or documented anywhere.
Would love any input regarding running WASM and/or emulation in a Godot environment where the host machine may be arbitrary.



