Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
624 stars 28 forks source link

Love.js-Api-Player doesn't work because FS is not global #32

Open spectrenoir06 opened 3 years ago

spectrenoir06 commented 3 years ago

Hello I try to use Love.js-Api-Player with this version of loveJS but Love.js-Api-Player use the FS to communicate between lua and JS but can't use FS from loveJS because it's not in the scope How can I fix this ? https://github.com/MrcSnm/Love.js-Api-Player

Davidobot commented 3 years ago

Huh, according to https://github.com/Davidobot/love.js/issues/26 it all worked fine.

Maybe @alexjgriffith could help out?

spectrenoir06 commented 3 years ago

I had to declase FS at the start of love.js for making it work

Davidobot commented 3 years ago

Would you like to submit a pull request with that change?

spectrenoir06 commented 3 years ago

https://github.com/spectrenoir06/love.js

Davidobot commented 3 years ago

I assume the changes are to the love source?

spectrenoir06 commented 3 years ago

I have only remove the var before the FS declaration