newlist

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年6月7日

摘要: //自定义粒子 CCParticleSystem* myParticle = CCParticleSystemQuad::create("Flower.plist"); addChild(myParticle); 阅读全文
posted @ 2013-06-07 17:17 一枚程序 阅读(272) 评论(0) 推荐(0)

摘要: 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)

摘要: 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)

摘要: 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)