ftsf / nico

a Game Framework in Nim inspired by Pico-8.
MIT License
624 stars 35 forks source link

does it have any api to communicate with js #83

Open jjhesk opened 2 years ago

jjhesk commented 2 years ago

I need a library to communicate messages with js for browser frontend.

ftsf commented 2 years ago

Nim<->JS is possible via emscripten, though it's not simple to use.

https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html (Nim acts as C++ here)