Skip to content

A Port of liquidfun to JavaScript using Emscripten and its WebIDL capabilities.

Notifications You must be signed in to change notification settings

doebi/liquidfun.js

Repository files navigation

liquidfun.js

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.

Download

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.

Building

  • 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

Usage

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/

Credits