cocos2d-x-3.0 alpha1与C++11练习三:飞镖忍者,如何移动精灵及(3)

来源:未知 责任编辑:责任编辑 发表时间:2014-01-06 18:19 点击:

p> 

p>原来的CC前缀基本都被移除,如CCScene变成Scene,CCLayerColor变成LayerColor,CCMutableArray变成了Array(CCMutableArray已移除)等

p>有些cc前缀改为了on,如ccTouchesEnded改为了onTouchesEnded。

p>原来的shared*单例方法多改为get*,如CCDirector::sharedDirector()改为Director::getInstance()

p>原来的spriteWith*,initWith*等静态方法,多修改为create。如CCMoveTo::actionWithDuration改为MoveTo::create,CCArray::array()改为Array::create()等。

p>原来的sets*方法改为set*,如如setIsVisible变成setVisible,setIsTouchEnabled变成等setTouchEnabled。

p>原来的ccTouchesEnded(cocos2d::CCSet* touches, cocos2d::CCEvent* event)变onTouchesEnded(const std::vector<cocos2d::Touch *> &touches, cocos2d::Event *event)

发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • cocos2d-x学习笔记(19)--label 、label atlas
  • cocos2d-x学习笔记(23)--地图的使用3--CCTMXLayer
  • Cocos2d-x学习(一):HelloWorld
  • cocos2dx在xcode下开发,编译到android上(2)
  • cocos2d 设置屏幕默认方向
  • cocos2d-x学习笔记(22)--地图的使用2(TMX) --Z-Order、AnchorPoi
  • Cocos2d-x 2.0 之 Actions “三板斧” 之一
  • cocos2d-x学习笔记(18)--游戏打包(windows平台)
  • cocos2d-x学习笔记(16)--spritesheet(精灵表单)
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1