I adapted the jump n run box2d code to use the most up to date JS port of Chipmunk Physics
, and have released it: https://github.com/kirbysayshi/chipmunk-impactjs
You can play a demo at https://dl.dropbox.com/u/52514/games/impact-chipmunk/index-desktop.html
Let me know what you think! It's still in a rough form (and is very simple, using bunches of code from the original box2d demo), but hopefully it allows someone to start using Chipmunk in ImpactJS.
1 decade ago
I actually find chipmunk pretty interesting, it got some awesome joints different from the ones in box2d. You can experience them here:
Great demo there. Thanks for that (and to Kirby for the plugin).
How about publishing the code for the demo. Would help me and others get started with CP.
1 decade ago
I would gladly, but I didn't make the demo I took it from the box2d forums. most precisely here: http://box2d.org/forum/viewtopic.php?f=22&t=8072
But i'll look more closely unto cp and make a similar demo.
Don't do it just for me. Your github codebase as it is now provides one with a good start. An example of a joint would be nice, but beyond that, nothing needed IMO.
@alexandre, @Xatruch, the joint demo comes with chipmunk-js (https://github.com/josephg/Chipmunk-js
), you can see the link in the header description.
@alexandre, were you asking for a joint demo to be added to chipmunk-impact plugin? If so that's possible, if someone wants to give me a simple idea?
@jorasso, hahaha you're totally right! Part of that is the way the projectile is spawned... there isn't any logic for "if the player is facing a wall, don't allow shooting".
To all: There is a better way to make a platforming player, apparently, which I'm discussing here (https://chipmunk-physics.net/forum/viewtopic.php?uid=1705&f=1&t=2363&start=0
) and trying out. If I make progress, I'll definitely push the code. The main issue I've been seeing is the player overlapping a bit with level geometry, and things being squishy.
were you asking for a joint demo to be added to chipmunk-impact plugin? If so that's possible, if someone wants to give me a simple idea?
Just an idea: in your current demo, a hinged platform.
1 decade ago
Hi guys I passed two demos from chipmunk that works on ImpactJS. One is of joints and the other is from balls you can download them here:
@KirbySaysHi Thanks alot for the plugin, chipmunk is awesome!
@Xatruch, nice job porting. Any chance you'd want to expand the demo that comes with the plugin to include ramps and or joints? Pull requests are welcome! (https://github.com/kirbysayshi/chipmunk-impactjs
Ramps will be tough, because each tileDef will require a similar "shape def" or something like it.
Page 1 of 1