liquidfun-emscripten
v1.1.4
Published
LiquidFun emscripten releases.
Downloads
157
Maintainers
Readme
About
This is simply a repository to hold the emscripten releases of LiquidFun.
If you want to read about liquidfun.js and how to compile it from scratch view this README.
Installation
Can be installed with npm
or bower
.
npm
npm install liquidfun-emscripten
bower
bower install liquidfun-emscripten
Usage
Using this with node is the same as any other module, the web usage is slightly different than the one provided by Google.
Web
Add <script>
tag to your page
<script src="/node_modules/liquidfun-emscripten/liquidfun.js"></script>
or (depending on package manager)
<script src="/bower_components/liquidfun-emscripten/liquidfun.js"></script>
Access the liquidfun variables from the liquidfun
global.
var circle = new liquidfun.b2CircleShape;
nodejs
var liquidfun = require('liquidfun-emscripten');
var circle = new liquidfun.b2CircleShape;