- 博客(9)
- 收藏
- 关注
转载 Cocos2d-x利用CCSpriteBatchNode提高渲染效率
原文地址:http://www.cocos2dev.com/?p=331以前写过一个游戏中的天气系统,今天有人说我的天气系统有点卡,不是很好用。我看下了他的代码,发现他改了我的代码,把CCSpriteBatchNode删除了,直接用addChild,每个sprite都是重新读取的贴图。我想说,同学呀,你把暴风雪所有特效开启后,你有没有注意下你的游戏场景显示了1000...
2013-04-25 23:00:00
73
转载 精灵:CCSprite
virtual void setTexture (CCTexture2D *texture)//设置精灵的纹理virtual CCTexture2D * getTexture (void)//获取精灵的纹理bool initWithTexture (CCTexture2D *pTexture)//根据纹理初始化精灵bool initWithTextu...
2013-04-23 22:44:00
101
转载 Text Labels
Introductioncocos2d supports both TTF (True Type Fonts) labels, and texture atlas labels.Pros and Cons of TTF labels: ( CCLabelTTF )All the pros of TTF fonts: any size, kerning support,...
2013-04-22 15:12:00
155
转载 MenuItems
Menu vs. MenuItemsCCMenu is just a collection of CCmenuItems, and those menu items are what define the various buttons or labels you will have as part of your menu. Since the CCmenu contains al...
2013-04-22 15:06:00
120
转载 How to Save a Screenshot
1void SaveScreenshot() 2{ 3 CCSize size = CCDirector::sharedDirector()->getWinSize(); 4 CCRenderTexture* texture = CCRenderTexture::create((int)size.width, (int)size.height); ...
2013-04-22 14:37:00
158
转载 CCString
IntroductionCCString is inherited from the CCObject class. CCObject exist primarily as an automatic memory management object. CCString provided a series of interface such as create, convert etc...
2013-04-22 14:30:00
93
转载 CCArray
IntroductionCCArray is a fully supported class of cocos2d. It is used for optimization in your game. You can find the CCArray class files in the cocos2d/Support group in the project. It’s used ...
2013-04-22 14:08:00
63
转载 CCDirector类
CCDirector类对应cocos2d-x引擎里的导演,整个游戏里只有一个导演,游戏开始和结束时都需要调用CCDirector的方法完成游戏初始化或者销毁的工作。cocos2d-x引擎里面除了提供CCDirector,还提供了一个CCDisplayLinkDirector,CCDisplayLinkDirector是一个可以自动刷新的CCDirector.CCScene *...
2013-04-21 21:56:00
85
转载 cocos2d-x new start
2013 - 04 - 21转载于:https://www.cnblogs.com/Jzong/archive/2013/04/21/3034587.html
2013-04-21 21:48:00
42
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人