doebi / liquidfun.js Goto Github PK
View Code? Open in Web Editor NEWA Port of liquidfun to JavaScript using Emscripten and its WebIDL capabilities.
Home Page: https://doeberl.at/liquidfun.js-demo/
A Port of liquidfun to JavaScript using Emscripten and its WebIDL capabilities.
Home Page: https://doeberl.at/liquidfun.js-demo/
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?
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
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.