refactory demo for cocos2d-x 3.2