首页 > 代码库 > cocos3 粒子系统

cocos3 粒子系统

    Size s = Director::getInstance()->getVisibleSize();    Vec2 origin = Director::getInstance()->getVisibleOrigin();            ParticleSnow *snow = ParticleSnow::create();    snow->setPosition(Point(s.width/2,s.height));    snow->setTextureWithRect(Director::getInstance()->getTextureCache()->addImage("snow.png"),Rect(0,0,64,64));    addChild(snow);

 

cocos3 粒子系统