摘要: Follow 在地图中使地图和人物一起运动 1 bool HelloWorld::init() 2 { 3 ////////////////////////////// 4 // 1. super init first 5 if ( !Layer::init() ) 6 ... 阅读全文
posted @ 2015-06-05 21:59 silent-bobo 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 动作加速度Speed 1 ////////////////// 动作加速度Speed /////////////// 2 3 Sprite* sprite = Sprite::create("button.png"); 4 sprite->setPosition(Ve... 阅读全文
posted @ 2015-06-05 21:29 silent-bobo 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 动作回调函数 (例子) 1 bool HelloWorld::init() 2 { 3 ////////////////////////////// 4 // 1. super init first 5 if ( !Layer::init() ) 6 { 7 ... 阅读全文
posted @ 2015-06-05 21:21 silent-bobo 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 精灵沿着正方形路线运动暂停2秒后然后再将自己放大4倍 1 ////////////// CardinalSpline 样条曲线 /////////////// 2 3 Sprite* sprite = Sprite::create("button.png");... 阅读全文
posted @ 2015-06-05 20:17 silent-bobo 阅读(212) 评论(0) 推荐(0) 编辑
摘要: CardinalSpline样条曲线(沿着正方形路线走) 1 ////////////// CardinalSpline 样条曲线 /////////////// 2 3 Sprite* sprite = Sprite::create("button.png"); 4... 阅读全文
posted @ 2015-06-05 20:01 silent-bobo 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: cocos2dx 3.2 Scale9Sprite点九图本文部分转载至 cocos2dx 3.x Scale9Sprite的认识 1. Scale9Sprite 认识Scale9Sprite 是一张可拉伸的精灵。只要给他设置一下大小,它就能自动拉伸。2.Scale9Sprite的使用 1 #inc... 阅读全文
posted @ 2015-06-05 15:48 silent-bobo 阅读(1125) 评论(0) 推荐(0) 编辑