ndless-nspire / Luna

Create TNS files from Lua and XML
Other
57 stars 13 forks source link

Simple JS+WASM version demo with emscripten #8

Closed adriweb closed 7 years ago

adriweb commented 7 years ago

Tested successfully in FF and Chrome.

adriweb commented 7 years ago

I've changed some stuff to also be compatible with WebAssembly. The Makefile has been updated too, to make such a target. Both work fine on Chrome with wasm support enabled, FF Nightly, and Safari (using asm.js fallback if built in Wasm, otherwise, the expected asm.js directly).

Online demo: https://tiplanet.org/scripts/luna-web/index.html (WASM + asm.js fallback)