Quick-cocos2d-x3.3 Study (十九)--------- 粒子特效

  添加粒子特效

 

1     -- 添加粒子特效
2     local emitter = cc.ParticleSystemQuad:create( "image/particles/dirt.plist" )
3     emitter:setPosition( display.cx, display.top )
4     self:addChild( emitter )
5 
6     local emitter2 = cc.ParticleSystemQuad:create( "image/particles/stars.plist" )
7     emitter2:setPosition( display.cx, display.top )
8     self:addChild( emitter2 )

 

在这里我们添加了两个粒子特效

 

效果图:

 

posted @ 2015-09-22 00:33  silent-bobo  阅读(410)  评论(0编辑  收藏  举报