会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
silent-bobo
你不会是因为你没有努力
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
19
20
21
22
23
24
25
26
27
28
下一页
2015年6月6日
添加动画(两种)
摘要: 添加动画(两种) ///////// 添加帧动画(每一副图加载) /////////// // 添加一个精灵用于执行帧动画 Sprite *sprite = Sprite::create("grossini_dance_01.png"); sprite->setPosition(Vec2(visib...
阅读全文
posted @ 2015-06-06 07:26 silent-bobo
阅读(303)
评论(0)
推荐(0)
2015年6月5日
Follow 在地图中使地图和人物一起运动
摘要: 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
阅读(297)
评论(0)
推荐(0)
动作加速度Speed
摘要: 动作加速度Speed 1 ////////////////// 动作加速度Speed /////////////// 2 3 Sprite* sprite = Sprite::create("button.png"); 4 sprite->setPosition(Ve...
阅读全文
posted @ 2015-06-05 21:29 silent-bobo
阅读(331)
评论(0)
推荐(0)
动作回调函数 (CallFunc,CallFuncN,CCCallFuncND)
摘要: 动作回调函数 (例子) 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
阅读(1367)
评论(0)
推荐(0)
精灵沿着正方形路线运动暂停2秒后然后再将自己放大4倍
摘要: 精灵沿着正方形路线运动暂停2秒后然后再将自己放大4倍 1 ////////////// CardinalSpline 样条曲线 /////////////// 2 3 Sprite* sprite = Sprite::create("button.png");...
阅读全文
posted @ 2015-06-05 20:17 silent-bobo
阅读(227)
评论(0)
推荐(0)
CardinalSpline样条曲线(沿着正方形路线走)
摘要: CardinalSpline样条曲线(沿着正方形路线走) 1 ////////////// CardinalSpline 样条曲线 /////////////// 2 3 Sprite* sprite = Sprite::create("button.png"); 4...
阅读全文
posted @ 2015-06-05 20:01 silent-bobo
阅读(1721)
评论(0)
推荐(0)
cocos2dx 3.2 Scale9Sprite点九图
摘要: cocos2dx 3.2 Scale9Sprite点九图本文部分转载至 cocos2dx 3.x Scale9Sprite的认识 1. Scale9Sprite 认识Scale9Sprite 是一张可拉伸的精灵。只要给他设置一下大小,它就能自动拉伸。2.Scale9Sprite的使用 1 #inc...
阅读全文
posted @ 2015-06-05 15:48 silent-bobo
阅读(1158)
评论(0)
推荐(0)
2015年5月29日
Label(标签)
摘要: Label(标签)Cocos2d-x中提供了Label(标签)对象来创建TTF、BMFont和SystemFont文本。Label BMFont(BMFont标签)BMFont是使用位图字体的标签类型。位图字体是由点或像素矩阵所组成,这些点和像素代表了字符图形的外形和大小。位图字体的使用很方便也很容...
阅读全文
posted @ 2015-05-29 08:34 silent-bobo
阅读(795)
评论(0)
推荐(0)
2015年5月26日
使用cocos制作一个简易的小闹钟
摘要: 使用cocos制作一个简易的小闹钟本文转载至 学习使用Cocos制作《闹钟》使用的引擎版本是cocos2.1具体开发过程指导(1)Cocos Studio部分1.打开Cocos工具,新建一个项目:2.设置好相关的配置,点击完成,从而发布到Cocos Studio中:3.Cocos Studio ID...
阅读全文
posted @ 2015-05-26 16:58 silent-bobo
阅读(1714)
评论(0)
推荐(0)
2015年5月25日
cocos2d-x-3.2 cpp-empty-test代码注释
摘要: cocos2d-x-3.2 cpp-empty-test代码注释AppDelegate.cpp 1 #include "AppDelegate.h" 2 3 #include 4 #include 5 6 #include "HelloWorldScene.h" 7 #incl...
阅读全文
posted @ 2015-05-25 12:34 silent-bobo
阅读(317)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
28
下一页
公告