这里收集了一些:
http://www.cnblogs.com/TopWin/archive/2012/09/12/2682042.html
1.
SelectorProtocol 修改为:CCObject2.
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
5.LAYER_NODE_FUNC改名为:CREATE_FUNC
6.node()方法更名为create().
7.virtual void update(ccTime dt) 改为:virtual void update(float dt)
8.Sprite.spriteWithSpriteFrameName改名为:Sprite.createWithSpriteFrameName
9.CCLabelTTF::labelWithString改为CCLabelTTF::create
10.CCMenuItemLabel::itemWithLabel改名为CCMenuItemLabel::create
11.CCMenu::menuWithItems改名为CCMenu::create
12.CCSpriteBatchNode::batchNodeWithTexture(texture); 改为CCSpriteBatchNode::createWithTexture(texture);
13.CCArray::arrayWithCapacity改为CCArray::createWithCapacity
14.CCTouch.locationInView更名为CCTouch.getLocationInView