自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (5)
  • 收藏
  • 关注

原创 CCSpriteFrameCache解析

代码:/** @class SpriteFrameCache * @brief Singleton that handles the loading of the sprite frames. It saves in a cache the sprite frames. @since v0.9 @js cc.spriteFrameCache */ // 精灵帧缓存区 // 加载精

2015-09-20 21:36:12 1603

原创 CCNodeGird解析

代码:/** * @brief Base class for Grid Node. *///网格节点的基类class CC_DLL NodeGrid : public Node{public: /** Create a Grid Node. * * @return An autorelease Grid Node. */ // 创建一个网格

2015-09-20 21:35:07 955

原创 CCSpriteFrame解析

代码:/** @class SpriteFrame * @brief A SpriteFrame has: - texture: A Texture2D that will be used by the Sprite - rectangle: A rectangle of the texture精灵帧纹理:精灵使用的2D纹理矩形:纹理的矩形 You can modi

2015-09-20 21:33:31 1327

原创 CCRenderTexture解析

代码:/** * @brief RenderTexture is a generic rendering target. To render things into it, * simply construct a render target, call begin on it, call visit on any cocos * scenes or objects to render

2015-09-20 21:32:24 540

原创 CCRenderTexture解析

代码:/****************************************************************************Copyright (c) 2009 Jason BoothCopyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2013-2014 Chukong Technologie

2015-09-17 23:32:30 877

原创 CCScene解析

代码:/****************************************************************************Copyright (c) 2008-2010 Ricardo QuesadaCopyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2011 Zynga Inc.Copy

2015-09-17 23:24:06 587

原创 CCSprite解析

代码:/****************************************************************************Copyright (c) 2008-2010 Ricardo QuesadaCopyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2011 Zynga Inc.Copy

2015-09-17 23:19:14 1247

原创 CCNode解析

代码:/** @class Node* @brief Node is the base element of the Scene Graph. Elements of the Scene Graph must be Node objects or subclasses of it. The most common Node objects are: Scene, Layer, Sprite

2015-09-10 01:15:53 1660

原创 CCMotionStreak解析

代码:/** @class MotionStreak. * @brief Creates a trailing path. */ // 移动纹理class CC_DLL MotionStreak : public Node, public TextureProtocol{public: /** Creates and initializes a motion streak

2015-09-07 22:31:01 604

原创 CCMenuItem解析

代码:/** @brief MenuItem base class. * 菜单项目基类 * Subclass MenuItem (or any subclass) to create your custom MenuItem objects. */class CC_DLL MenuItem : public Node{public: /** Creates a Menu

2015-09-07 22:20:33 415

原创 CCMenu解析

代码:/** @brief A Menu for touch handling.* * Features and Limitation:* - You can add MenuItem objects in runtime using addChild.* - But the only accepted children are MenuItem objects.*/// 处

2015-09-07 21:59:10 300

原创 CCLight解析

代码:enum class LightType// 光线类型{ DIRECTIONAL = 0, POINT = 1, SPOT = 2, AMBIENT = 3,};enum class LightFlag//光线标识{ LIGHT0 = 1, LIGHT1 = 1 << 1, LIGHT2 = 1 << 2, LIG

2015-09-07 21:45:40 761

原创 GoogleTest的使用01

1.下载源码:https://github.com/google/googletest点击右下角的DownloadZIP,下载后解压如下:2.编译GoogleTest是支持windows平台的,就是需要编译下,我用的是最新版的GoogleTest,用visual studio 2013编译。打开E:\googletest-master\googletes

2015-09-07 21:26:57 588

原创 CCLayer解析

代码:// // Layer///** @class Layer * @brief Layer is a subclass of Node that implements the TouchEventsDelegate protocol.Layer是Node的一个子类实现了TouchEventsDelegate协议All features from Node are valid

2015-09-07 00:58:33 856

原创 Python学习01

从“HelloWorld”开始:打开IDLE,输入:print("HelloWorld")相对于其他编程语言来说,python的helloworld要简单的多,一行代码就够了,几乎不会出错,就算出错了,也很容易差错。1.print:输出一行字符串,3.x以后的版本print输出必须添加'()',参数可以是字符串,也可以是数。这里对字符串的限制也没那么多,用单引号和双引号都是OK的。

2015-09-06 00:17:07 273

原创 CCLabelBMFont解析

CCLabelBMFont代码:/** @brief LabelBMFont is a subclass of SpriteBatchNode.LabelBMFont是SpriteBatchNode的子类Features:- Treats each character like a Sprite. This means that each individual charact

2015-09-06 00:14:16 639

原创 CCLabelTTF解析

代码:/** @brief LabelTTF is a subclass of TextureNode that knows how to render text labels *LabelTTF是一个知道如何绘制文本标签纹理节点的子类 * All features from TextureNode are valid in LabelTTF *所有纹理节点的特性在LabelTTF中都是

2015-09-06 00:07:07 1124

原创 CCLabelAtlas,CCLabelTextFormatter解析

代码:/** * @class LabelAtlas * @brief LabelAtlas is a subclass of AtlasNode. *LabelAtlas是一个AtlasNode的子类 * It can be as a replacement of Label since it is MUCH faster. * 他可以代替Label,因为他更快 * Label

2015-09-05 23:54:38 854

原创 CCLabel解析

代码:/** * @addtogroup _2d * @{ *//** * @brief Possible GlyphCollection used by Label. * * Specify a collections of characters to be load when Label created. * Consider using DYNAMIC. */enu

2015-09-05 23:46:36 2402

原创 CCFontAtlas,CCGrid,CCGLBufferedNode,CCGrabber解析

CCFontAtlas:代码:struct FontLetterDefinition //字体字母定义{ unsigned short letteCharUTF16;//utf-16编码 float U; float V; float width;//宽 float height;//高 float offsetX;//水平偏移量

2015-09-02 00:35:23 1324

原创 CCFontAtlasCache,CCFontCharMap,CCFontFNT,CCFontFreeType解析

CCFontAtlasCache:代码:class FontAtlas;// 字体图集缓存class CC_DLL FontAtlasCache{ public:// 得到字体图集 static FontAtlas * getFontAtlasTTF(const TTFConfig & config); static FontAtlas * getFon

2015-09-02 00:23:53 1475

原创 Natification:Cocos中的观察者模式

cocos中的观察者:NotificationCenter:通知中心NotificationObserver:通知的观察者代码:class CC_DLL __NotificationCenter : public Ref{ friend class ScriptHandlerMgr;public: /// 构造函数 __NotificationCenter()

2015-09-01 23:56:39 662

lua实现的一个2048小程序

使用lua实现的一个2048小程序,实现了2048的基本功能。

2016-01-06

android程序间数据的共享(ContentProvider和ContentResolver的使用)

安卓程序间数据共享的实现,包含两个程序,共享资源的程序和读取资源的程序,共享资源的程序包含了SQLite数据库的使用。

2015-12-24

安卓音效文件加载系统

实现安卓音效资源的加载,卸载,播放。 这里将其集成在一个单例对象中,能够更方便的控制资源的加载。

2015-11-25

华容道的Cocos2D-3.4实现

华容道的cocos实现,用cocos2dx-3.4开发,设计了关卡数据和角色数据,可以自己写关卡,碰撞检测排布都已OK。

2015-04-14

c++tutorial

c++入门教程,纯英文教程。介绍c++的基础知识,让你更快入门。

2014-09-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除