Coder Social home page Coder Social logo

doebi / liquidfun.js Goto Github PK

View Code? Open in Web Editor NEW
32.0 5.0 7.0 217 KB

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

Home Page: https://doeberl.at/liquidfun.js-demo/

Makefile 80.19% C++ 15.30% Python 4.51%
liquidfun emscripten javascript

liquidfun.js's People

Contributors

doebi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

liquidfun.js's Issues

Some functions are missing

b2ParticleSystem::ParticleApplyForce (int32 index, const b2Vec2 &force) seems to be missing, and some other functions as well. Why is that? And is there still a way to call this function somehow?

http://files.doebi.at/lfjs is down

Hello,

i wanted to download your build, but the server seems to be down. I'd be great if you could publish the final build somewhere. I cant seem to get the build processes working on my machine.

Cheers

b2PolygonShape Set error

this is my code:

var shape = new b2PolygonShape()
var points = [
    new b2Vec2(-4, 3),
    new b2Vec2(4, 3),
    new b2Vec2(4, 1),
    new b2Vec2(4, 0),
    new b2Vec2(-4, 0),
  ]
 shape.Set(points, 5)

liquidfun_v1.1.0.debug.js

...

b2PolygonShape.prototype['Set'] = function(arg0, arg1) {
  console.log(arg0, arg1)
  var self = this.ptr;
  if (arg0 && typeof arg0 === 'object') arg0 = arg0.ptr;
  else arg0 = ensureString(arg0);
  if (arg1 && typeof arg1 === 'object') arg1 = arg1.ptr;
  else arg1 = ensureString(arg1);
  console.log(arg0, arg1)
  _emscripten_bind_b2PolygonShape_Set_2(self, arg0, arg1);
};

the points is Array, but it has not ptr.
i think the points may be make by new sth. but i can find nothing.

Make error

Hello. I am attempting to build your version using emscripten on ubuntu.

I am getting the error:

python /usr/share/emscripten/tools/webidl_binder.py liquidfun.idl liquidfun_glue
Traceback (most recent call last):
File "/usr/share/emscripten/tools/webidl_binder.py", line 15, in
import WebIDL
ImportError: No module named WebIDL
Makefile:87: recipe for target 'liquidfun_glue.cpp' failed
make: *** [liquidfun_glue.cpp] Error 1

To be honest I an not really sure that this message is the fault of the author. I've been unable to build any version of liquidfun on any OS and I am out of options.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.