zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

技术 要点 积累 Cocos 通常
2023-09-14 09:08:07 时间

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); 

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