PTC={dust={}}--Particle systems c=gc.newCanvas(6,6)gc.setCanvas(c) gc.clear(1,1,1) PTC.dust[0]=gc.newParticleSystem(c,1000) PTC.dust[0]:setParticleLifetime(.2,.3) PTC.dust[0]:setEmissionRate(0) PTC.dust[0]:setLinearAcceleration(-1500,-200,1500,200) PTC.dust[0]:setColors(1,1,1,.5,1,1,1,0) c:release() --Dust particles PTC.attack={} PTC.attack[1]=gc.newParticleSystem(gc.newImage("/image/attack/1.png"),200) PTC.attack[1]:setParticleLifetime(.25) PTC.attack[1]:setEmissionRate(0) PTC.attack[1]:setSpin(10) PTC.attack[1]:setColors(1,1,1,.7,1,1,1,0) PTC.attack[2]=gc.newParticleSystem(gc.newImage("/image/attack/2.png"),200) PTC.attack[2]:setParticleLifetime(.3) PTC.attack[2]:setEmissionRate(0) PTC.attack[2]:setSpin(8) PTC.attack[2]:setColors(1,1,1,.7,1,1,1,0) PTC.attack[3]=gc.newParticleSystem(gc.newImage("/image/attack/3.png"),200) PTC.attack[3]:setParticleLifetime(.4) PTC.attack[3]:setEmissionRate(0) PTC.attack[3]:setSpin(6) PTC.attack[3]:setColors(1,1,1,.7,1,1,1,0) --Attack particles gc.setCanvas() c=nil