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

EffectDefinition
{

	EffectComponent ParticleEffect "color_cloud_initial_sides_upper"
	{
		RepeatTime		0
		ParticleLifespan	[0.4,0.8]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"

		EmitterEvents
		{
			// Left
			SpawnParticles
			{
				count=10
				duration=0.3
				delay=0
				orientation=[-360,360]
				speed=[200, 320]
				rotationalSpeed=[-200,-240]
				direction=[240,250]
				spawnOffsetAbsX= -10
				spawnOffsetAbsY= -10
			}
			
			// Right
			SpawnParticles
			{
				count=10
				duration=0.3
				delay=0
				orientation=[-360,360]
				speed=[200, 320]
				rotationalSpeed=[200,240]
				direction=[290,300]
				spawnOffsetAbsX= 10
				spawnOffsetAbsY= -10
			}

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-80)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=200 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.5)
				age=1, scale=(1.5,1.5)


				
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_initial_sides_lower"
	{
		RepeatTime		0
		ParticleLifespan	[0.2,0.5]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=10
				duration=0.3
				delay=0
				orientation=[-360,360]
				speed=[400, 520]
				rotationalSpeed=[-200,-240]
				direction=180
				spawnOffsetAbsX=-10
				spawnOffsetAbsY=10
			}
			
			SpawnParticles
			{
				count=10
				duration=0.3
				delay=0
				orientation=[-360,360]
				speed=[400, 520]
				rotationalSpeed=[200,240]
				direction=0
				spawnOffsetAbsX=10
				spawnOffsetAbsY=10
			}

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,380)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=200 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.5)
				age=1, scale=(1.5,1.5)


				
			}
		}
	}

	EffectComponent ParticleEffect "color_cloud_initial_puff"
	{
		RepeatTime		0
		ParticleLifespan	[0.4,0.5]
		BlendMode		add
		Texture			"data/gfx/particles/smoke_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=4
				duration=0
				delay=0
				orientation=[0,0]
				speed=[20,44]
				rotationalSpeed=[40,80]
				direction=[265,275]
				spawnOffsetAbsX=[-2,2]
				spawnOffsetAbsY=[-2,2]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				
			}
			
			Alpha
			{
				age=0, alpha=150 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5,0.5)
				age=1, scale=(3.5,3.5)

				
			}
		}
	}


	EffectComponent ParticleEffect "color_cloud_blast_horizon"
	{
		RepeatTime		0
		ParticleLifespan	0.4
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,0]
				speed=[0,0]
				rotationalSpeed=[0,0]
				direction=[0,0]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=200 				
				age=0.8, alpha=150 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.5, 0.5)
				age=0.2, scale=(4.5, 4.5)
				age=1, scale=(0.2, 25.1)

				
			}
		}
	}

	
}