LAYER_CREATE_FUNC and SCENE_CREATE_FUNC can be replace by one macro CREATE_FUNC
http://www.cocos2d-x.org/issues/1442
老函数找不到了,要换成CREATE_FUNC
此外setDisplayFPS换成 setDisplayStats
itemFromNormalImage 换成 create
view 换成 getLocationInView
getIsVisible 换成 isVisible
太多了写不完……
又发现cocos2d-x 2.0.4不能编译IOS4.3版本,只能编译IOS4.1版本,否则程序一闪而过。MAC OS X 10.6.6
另外打包的时候,注意选4.1的RELEASE版本,用ARM7不要用ARM6
cocos2d-1.0.1-x-0.13.0-beta 升级到 cocos2d-2.1rc0-x-2.1.3
CCSprite::spriteWithFile 换成 CCSprite::create
CCLabelAtlas::labelWithString 换成 CCLabelAtlas::create
setIsVisible 换成 setVisible
CCTextAlignmentLeft kCCTextAlignmentLeft
CCMenuItemSprite::itemFromNormalSprite 换成 CCMenuItemSprite::create
setIsTouchEnabled setTouchEnabled
locationInView getLocationInView
previousLocationInView getPreviousLocationInView
//CCTouchDispatcher::sharedDispatcher()->addTargetedDelegate(this, 0, true);
CCDirector::sharedDirector()->getTouchDispatcher()->addTargetedDelegate(this, 0, true);// 2013-5-17 下午11:04:54
CCMenu::menuWithItem
CCRect::CCRectIntersectsRect(a,b) a.intersectsRect(b)
CCRect::CCRectGetMaxY(a) a.getMaxY()
CCTextFieldTTF::textFieldWithPlaceHolder CCTextFieldTTF::create
CCRect::CCRectContainsPoint(a) a.containsPoint
boundingBoxInPixels boundingBox
initFromNormalSprite initWithNormalSprite