1.
SelectorProtocol 修改为:CCObject
2.
CCTouchDispatcher::sharedDispatcher()
修改为:
CCDirector::sharedDirector()->getTouchDispatcher()
3.
error C2039: 'view' : is not a member of 'cocos2d::CCTouch'
分析:源码中的CCPoint location = touch->locationInView(touch->view());这一句过时了。修改为:
CCPoint location = touch->getLocationInView();
4. CGFloat => float
SelectorProtocol 修改为:CCObject
2.
CCTouchDispatcher::sharedDispatcher()
修改为:
CCDirector::sharedDirector()->getTouchDispatcher()
3.
error C2039: 'view' : is not a member of 'cocos2d::CCTouch'
分析:源码中的CCPoint location = touch->locationInView(touch->view());这一句过时了。修改为:
CCPoint location = touch->getLocationInView();
4. CGFloat => float