Initial solution of cocos2d-x