标签:
添加粒子特效
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 )
在这里我们添加了两个粒子特效
效果图:
Quick-cocos2d-x3.3 Study (十九)--------- 粒子特效
标签:
原文地址:http://www.cnblogs.com/dudu580231/p/4827769.html