Adding physics world to my game

The only thing you need to do is in your scene init method. Where it says,

if (!Scene::init()){
    return false;
}

to this,

if (!Scene::initWithPhysics()){
    return false;
}

Everything else is same as in HelloWorld Example.