Physic


Create an infinite scrolling world with Starling and Nape

Many of you have probably used Box2D to make physic games, although for a few years I have been using Nape. Nape is much faster and optimized than Box2D, and finally has an API that makes sense. It is also updated frequently and the author, Luca Deltodesco, is a great guy. In this tutorial I want to show you how easy it is to create an infinite scrolling physic world using Nape and Starling, so you can not only leverage the speed of Stage3D, but also the amazing performance of this physic engine. This is what the final result will look like (click to play it): In this example the camera is fixed on the Player and the terrain is made of slices. You can change the width of the… [Read more »]

Nape Physic