Davidobot / love.js

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

Call JS or emit signal from within LOVE #26

Closed alexjgriffith closed 3 years ago

alexjgriffith commented 3 years ago

Is there any way to emit a signal/event from within the game to the JS environment?

I was trying to find a way to use the same fullscreen button in game to for both web and desktop.

Davidobot commented 3 years ago

You're probably looking for: https://github.com/MrcSnm/Love.js-Api-Player

alexjgriffith commented 3 years ago

Bingo! Worked like a charm

Thanks so much :)