refact framework based on Cocos2d-x 3.0 beta2