Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

9 years ago by Merio

Hi, I have some questions about box2d.
I'm not sure if ImpactJS supports create static worlds box2d surface.
like this.

/><br />
<br />
If supported, I wonder.<br />
<br />
- Does the performance is better when using box2d collisions instead of tiles (weltmeister)?<br />
<br />
- Is there a world editor box2d? to export in json format, and then use it in ImpactJS<br />
<br />
-That plugin box2d is more complete or recommend using to date.<br />
<a href= Joncom plugin or the official who is in the documentation.

Help me please, thanks!

PS: sorry for my bad english.

9 years ago by Joncom

I'm not sure if ImpactJS supports create static worlds box2d surface.
Anything that Box2D can do, you should be able to do using one of the plugins with ImpactJS.

Regarding your image: Box2D does support one-way jumping through objects.

Does the performance is better when using box2d collisions instead of tiles (weltmeister)?
ImpactJS original physics have better performance that Box2D. However Box2D is a much more complicated and capable physics engine.

Is there a world editor box2d? to export in json format, and then use it in ImpactJS
I'm not aware of one. However, the Box2D Sugar plugin can convert your Weltmeister levels into a Box2D world. So can the official plugin, but "sugar" does a better job of merging many tiles into few bodies.

That plugin box2d is more complete or recommend using to date.
Joncom plugin or the official who is in the documentation.
I'd say my plugin is easier to use. However, there's still room for improvement.

9 years ago by Merio

Thanks Joncom for clearing my doubts.

I think using classical ImpactJS entity, and box2d to the surface world.
Is it possible to do this?, or both objects must be instances box2d?

Regards!.

9 years ago by Joncom

If you want a Box2D world, then your entities would need to be done with Box2D too.

Edit: The reason is so that their physics interacts with the world.

9 years ago by Merio

For example, if implemented box2d to Jump'n'Run game.

I should recreate the "logic" of "fireballs />" in box2d, or could easily adapt the original code of "fireballs <img src=

9 years ago by Joncom

With the sugar plugin, for such a simple entity, the code should be nearly identical...
Page 1 of 1
« first « previous next › last »