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 )
在这里我们添加了两个粒子特效
效果图: