a sample code using cocos2d-x and box2d