kota's memex

distribution

https://love2d.org/wiki/Game_Distribution

Creating a .love file. It's just a renamed zip file! For distribution you can "fuse" the .love file and the love binary for your target system:

cd SuperGame
zip -9 -r -x '*.git*' SuperGame.love .

cat love.exe SuperGame.love > SuperGame.exe

web

Someone made a js port using emscripten: https://github.com/Davidobot/love.js

SharedArrayBuffer

It can export your game in "normal" or "compatibility" mode. The normal mode requires the SharedArrayBuffer js API which is often disabled as a spectr mitigation. You can enable it with these http headers:

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

The "compatibility" mode will work, but is missing pthreads which can make the audio a bit dodgy.

itch.io

If you're planning on hosting your web version on itch and need them to enable these headers you'll need to go to the Embed Options section on your project’s edit page, under Frame Options you will find a checkbox for: SharedArrayBuffer support:

SharedArrayBuffer itch.io toggle

These headers put very strict restrictions on how cross-domain resources can be accessed. If your game accesses resources on other domains then those requests will fail by default. We highly recommend testing your game thoroughly with the browser console open to ensure there are no issues.