Variables
{
	%tint = (0,255,0)
}

EffectDefinition
{
	EffectComponent ParticleEffect "smoke"
	{
		RepeatTime		0
		ParticleLifespan	[0.4, 0.6]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_02.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=5
				duration=0
				delay=0.1
				orientation=[0,360]
				speed=[10, 20]
				rotationalSpeed=0
				direction=[0, 360]
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.05, alpha=250 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.1,0.1)
				age=1, scale=(2.0,2.0)

				
			}
		}
	}
	
	EffectComponent ParticleEffect "rings"
	{
		RepeatTime		0
		ParticleLifespan	1
		BlendMode		add
		Texture			"data/gfx/particles/blur_ring_32.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[-360,360]
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=250 
				age=0.7, alpha=150 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(6.0,6.0)
				age=0.3, scale=(0.0,0.0)
				age=0.4, scale=(1.0,1.0)
				age=1, scale=(1.5,1.5)

				
			}
		}
	}

	EffectComponent ParticleEffect "sparkles"
	{
		RepeatTime		0
		ParticleLifespan	1
		BlendMode		add
		AnimSequence		"sparkle_dust"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.1
				orientation=[0,360]
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=0
				spawnOffsetAbsY=0
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=%tint				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=250 
				age=0.7, alpha=150 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(4.0,4.0)
				age=1, scale=(4.5,4.5)				
				
				
			}
		}
	}

	EffectComponent ParticleEffect "running sparkles"
	{
		RepeatTime		0
		ParticleLifespan	0.7
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			// Left Top
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.1
				orientation=45
				speed=150
				rotationalSpeed=-5
				direction=180
				spawnOffsetAbsX=-15
				spawnOffsetAbsY=-13
			}

			// Right Top
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.1
				orientation=45
				speed=150
				rotationalSpeed=5
				direction=0
				spawnOffsetAbsX=15
				spawnOffsetAbsY=-13
			}

			// Left Bottom
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.1
				orientation=45
				speed=150
				rotationalSpeed=-5
				direction=180
				spawnOffsetAbsX=-15
				spawnOffsetAbsY=13
			}

			// Right Bottom
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.1
				orientation=45
				speed=150
				rotationalSpeed=5
				direction=0
				spawnOffsetAbsX=15
				spawnOffsetAbsY=13
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.05, alpha=150 
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.3,0.3)
				age=0.3, scale=(0.8,0.8)
				age=1, scale=(0.3,0.3)

				
			}
		}
	}

	
}