leafsoar cocos2d-x code