first commit base on cocos2d-iphone v3.x