cocos2d-x3.0和2.0之间的区别
发布时间:2020-12-14 16:59:50 所属栏目:百科 来源:网络整理
导读:区别1.去CC 区别2.cc***结构体改变 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2.0 ccp(x,y) ccpAdd(p1,p2) ccpSub ccpMult ccpLength(p) ccpDot(p1,p2); ccc3() ccc4() ccWHITE CCPointZero CCSizeZero 3.0 Point(x,y) p1+p2
区别1.去CC区别2.cc***结构体改变
区别3.shared***改变(单例机制使用语法)
|
CCSize winSize = CCDirector::sharedDirector()->getWinSize();
SpriteFrameCache::sharedSpriteFrameCache()
AnimationCache::sharedAnimationCache()
NotificationCenter::sharedNotificationCenter()
…
3.0
Size size = Director::getInstance()->getWinSize();
SpriteFrameCache::getInstance()
AnimationCache::getInstance()
NotificationCenter::getInstance()
…
|
区别4.POD类别
CCSize
CCRect
3.0
Vec2
Size
Rect