会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
newlist
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2013年6月7日
自定义粒子
摘要: //自定义粒子 CCParticleSystem* myParticle = CCParticleSystemQuad::create("Flower.plist"); addChild(myParticle);
阅读全文
posted @ 2013-06-07 17:17 一枚程序
阅读(272)
评论(0)
推荐(0)
对比kCCPositionTypeFree和kCCPositionTypeRelative两种粒子移动类型
摘要: CCParticleSystem* particleSystemFree = CCParticleSun::create(); //设置贴图 particleSystemFree->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png")); //设置自动释放 particleSystemFree->setAutoRemoveOnFinish(true); //设置类型移动类型kCCPositionTypeFree-----随着layer的移...
阅读全文
posted @ 2013-06-07 17:09 一枚程序
阅读(1865)
评论(0)
推荐(0)
cocos2d-x 11中粒子特效
摘要: 1 //爆炸粒子效果 2 CCParticleSystem* particleSystem = CCParticleExplosion::create(); 3 particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("stars.png")); 4 this->addChild(particleSystem); 5 6 //火焰粒子效果 7 CCParticleSystem* particleSystem = CCPa...
阅读全文
posted @ 2013-06-07 16:50 一枚程序
阅读(2872)
评论(0)
推荐(0)
C++ Base64算法
摘要: 1 #ifndef BASE_DATA 2 #include 3 4 class BaseData 5 { 6 public: 7 BaseData(void); 8 ~BaseData(void); 9 10 std::string saveData(char const* bytes_to_encode,unsigned int in_len);11 std::string parseData(std::string const& encoded_string);12 13 };14 15 #endif 1 #include "BaseData.h...
阅读全文
posted @ 2013-06-07 16:22 一枚程序
阅读(3111)
评论(0)
推荐(0)