This project has been inactive for a while! You're probably looking for https://github.com/Davidobot/love.js
This is LÖVE ported to the web using Emscripten.
It differs from Motor or Punchdrunk in that it is not a reimplementation but a direct port of the existing LÖVE v0.10.0 code with very few code modifications. As such, it should be at feature parity, as long as the browser it's running in supports a given feature.
Here are some live games:
Python 2.7 will allow you to package your game into a format that Emscripten can read. It will also let you run a simple web server for testing. Python 3.5 is not supported at this time.
git clone https://github.com/TannerRogalsky/love.js.git
git submodule update --init --recursive
debug
folder.python ../emscripten/tools/file_packager.py game.data --preload [path-to-game]@/ --js-output=game.js
game.data
and game.js
into the debug
folder.python -m SimpleHTTPServer 8000
will work.localhost:8000
in the browser of your choice.release
folder. Package and test your game for release.release-compatibility
folder can now be copied to a webserver. A simple static webserver should suffice.release-compatibility
is recommended if the performance it yields is adequate. The difference between compatibility
and performance
is that performance
is compiled with exception catching disabled and memory growth disabled. This means that you will not be able to rely on catching exceptions from C++ in your code and you may need to set TOTAL_MEMORY
on the Module
object to indicate how much memory your game will require.
Some things, like threads, don't have browser support yet. Please check the project issues for known problems.
Please consider submitting a test. Any functionality that isn't covered in spec/tests
would be very useful.
The build process for this project is still a very manual process and is not ready to be shared. Feel free to keep an eye on the emscripten
branch of my LÖVE fork if you're really curious.