liquidfun.js is a direct port of the Liquidfun 2D physics engine to JavaScript, using Emscripten. I started this since the JavaScript Port of liquidfun provided by Google was incomplete and manually written. This project is translated directly to JavaScript, without human rewriting, so functionality should be identical to the original Liquidfun.
https://github.com/doebi/liquidfun.js/releases
To directly play with and test the library you can use my precompiled version, or build it from source as described below.
- Install Emscripten
- Clone this repo with it's submodules:
git clone git@github.com:doebi/liquidfun.js.git --recursive
- Compile it using emscripten:
emmake make
There are some slight differences in Usage compared to the manual emscripten port provided by Google. Take a look at https://github.com/doebi/liquidfun.js-demo for more details.
online demo: https://doeberl.at/liquidfun.js-demo/
- erincatto for Box2D
- google for Liquidfun
- kripken for Emscripten