box2d templates for Ignition?

Monkey Forums/Monkey Programming/box2d templates for Ignition?

Playniax(Posted 2013) [#1]
Hi,

I am experimenting with box2d templates for Ignition.

http://playniax.com/share/demos/box2d/html5/MonkeyGame.html

I started out with box2d so I don't know much about it. Does any one know if the shapes can be 'skinned' because I think that would be a cool feature for Ignition to support if possible. I don't promiss anything yet though ;)

Also is box2d the engine by choice?

Bye


Qcat(Posted 2013) [#2]
I have been playing with box2d for a while. I think I wood probably move my project over to playniax if it had box 2d support.


Xaron(Posted 2013) [#3]
Box2d is very nice and it's the first choice when it comes to 2d games with physics.

BUT: Box2d is made for games that are platform like, NOT for games that are top down even though it works there as well. But you need some tweeks here and there to make it nice for top down games.


MikeHart(Posted 2013) [#4]
@Xaron: Why do you think it is for platform games only? Just add no gravity and you can use it for top down games too.


CopperCircle(Posted 2013) [#5]
I currently use a modified version of my Box2D framework with Ignition:
http://www.monkeycoder.co.nz/Community/posts.php?topic=3106


Xaron(Posted 2013) [#6]
That explains it much better than I can:

http://www.iforce2d.net/b2dtut/top-down-car

Fact is you have to do some additional work, apply some "counter" forces by yourself and so on. You just don't have some kind of "ground friction".


MikeHart(Posted 2013) [#7]
Well, there still is linear and angular damping. If that is not enough, you can also determine the current force and apply something in the opposite direction.


Playniax(Posted 2013) [#8]
I have uploaded a box2d template for Ignition. For people who bought the framework you can download it here:

http://monkey.playniax.com/

You also need to download the box2d module from the website:

http://code.google.com/p/monkeybox2d/

Playniax does not support box2d in any way so use at own risk!!!


Qcat(Posted 2013) [#9]
Just ordered! :D will look at moveing my game project over.


Playniax(Posted 2013) [#10]
I have put a small update v1.v5b at http://monkey.playniax.com

It fixes some button problems that slipped in earlier.

I have also split the engine tutorial in 2 parts. Beginner and advanced.