What makes games feel real is the physics in it. Angry Birds wouldn’t feel as good, and definitely wouldn’t have achieved the level of popularity that it has, if there had been no physics in the game.
The piggies rolling over, bumping into structures and bringing down entire wooden buildings feel so natural. This is made possible thanks to a Physics engine. Mainstream games use much advanced APIs like PhysX and Havok.
Firstly, we’re only working with 2-dimensional physics and Box2dWeb is only programmed to simulate physics in a 2-dimensional world. Its constraint system is called joints and its quite easy to setup and use. Even setting up collision detection is relatively simple since you just have to add a listener to that particular object. It is quite fast to execute and as with any programming language, only poor coding can mess that up.
Using Box2DWeb can be just as easy as this
Nash David is passionate about technology and mobile devices. He closely follows the smartphone, and tablet platform market. He also leads editorial efforts for devworx. You may send him tweets @nashpd or email firstname.lastname@example.org
- No contests are currently running.