An Emscripten port of the LÖVE 12.0 framework for running games and applications in the browser.
The current build is based on commit cdf68b3 (from the main branch),
using an experimental SDL3 port for Emscripten.
If you need the previous stable build, please use the stable branch.
Forked from love.js:
Instructions for Windows users: install Python 3.10.6 or higher. (When installing Python, make sure 'Add Python to PATH' is checked.)
Drag and drop the game folder or .love package onto the build.bat file.
Or run build.bat with arguments:
build.bat <input> <output>
Options:
<input> the folder with your project or the `.love` file.
<output> (optional) the folder to save the compiled project (default folder is 'game').
-h, --help display usage information.
-n, --name <string> game title.
-m, --memory [bytes] the amount of memory your game will need (default is 16777216 bytes).
-t, --template <string> html template name in the 'lovejs_source' folder.
Once the process is complete, it will display 'Done!'
- In the folder, start a web server using the command
python -m http.server 8080. - Open
localhost:8080in any web browser.
- OpenGL ES 3 shaders are supported.
- Also check out the notes here: https://github.com/Davidobot/love.js
- Using an experimental SDL3 port for Emscripten.
If you want to make changes to the LÖVE source code, follow the instructions below:
Make sure you have CMake and Make installed. Clone and install emsdk
git clone https://github.com/emscripten-core/emsdk
cd emsdk
emsdk install 4.0.10
emsdk activate 4.0.10
Modify the paths to emsdk in the build_lovejs.bat file to the correct ones.
Clone the megasource-web and love-web source code:
git clone https://github.com/rozenmad/megasource-web
cd megasource-web
git clone https://github.com/rozenmad/love-web libs/love
Change the paths to emsdk and to the megasource directory in the build_lovejs.bat file to the correct ones.
When the process is complete, the love.js and love.wasm files in the lovejs_source\compat directory will be replaced.