【Cocos得知】技术要点通常的积累

1、粒子特效

CCParticleSystem*sp = CCParticleSnow::create();

sp->setTexture(CCTextureCache::sharedTextureCache()->addImage("f.png"));

this->addChild(sp);

2、Plist文件

CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("all.plist"); 

cannon = CCSprite::createWithSpriteFrameName(cannonPath); 

版权声明:本文博主原创文章。博客,未经同意不得转载。

posted @ 2015-09-15 09:48  phlsheji  阅读(139)  评论(0编辑  收藏  举报