前端之家收集整理的这篇文章主要介绍了
粒子系统,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
说明
引擎版本:cocos2d-x 3.4 编译器:visual stu
dio 2013 UI编辑器:Cocos Stu
dio v1.6.0.0
ParticleSystem(继承于Node; cocos/2d模块下)
...
ParticleSystemQuad(继承于ParticleSystem)
auto fire = ParticleSystemQuad::create("particle.plist");fire->setPosition(Vec2(200, ));thisaddChild();
引擎提供了几种粒子特效,均继承于ParticleSystemQuad:
fire2 ParticleSun();fire2240100);
粒子特效类@H_502_123@
| 特效图@H_502_123@
|
ParticleFire@H_502_123@
|
@H_502_123@
|
ParticleFireworks@H_502_123@
| ParticleSun@H_502_123@
|
@H_502_123@
|
...@H_502_123@
|