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

EffectDefinition
{

	EffectComponent ParticleEffect "color_cloud_base"
	{
		RepeatTime		0.03
		ParticleLifespan	[0.5,0.55]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[40,80]
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-100)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=%tint
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=255 				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.15,0.15)
				age=1, scale=(0.5,0.5)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				age=.4, moveWithEmitter=1
				age=.8, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "gyroscope thingy"
	{
		RepeatTime		0.1
		ParticleLifespan	0.7
		BlendMode		alpha
		Texture			"data/gfx/particles/offset_circle_8.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,0]
				speed=0
				rotationalSpeed=450
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[180,180]
				speed=0
				rotationalSpeed=-450
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}

			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,0]
				speed=0
				rotationalSpeed=-450
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[180,180]
				speed=0
				rotationalSpeed=450
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}


			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.2, alpha=255 				
				age=0.6, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.1,0.1)
				age=1, scale=(0.6,0.6)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1				
			}
		}
	}
	
	EffectComponent ParticleEffect "spinning stars"
	{
		RepeatTime		0.2
		ParticleLifespan	0.5
		BlendMode		alpha
		Texture			"data/gfx/particles/sparkle/star_01.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,0]
				speed=0
				rotationalSpeed=400
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[180,180]
				speed=0
				rotationalSpeed=-400
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=150				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.25,0.25)
				age=1, scale=(0.6,0.6)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				//age=.4, moveWithEmitter=1
				//age=.8, moveWithEmitter=0
			}
		}
	}

	EffectComponent ParticleEffect "halo_shine"
	{
		RepeatTime		1
		ParticleLifespan	1.2
		BlendMode		add
		Texture			"data/gfx/particles/blur_ring_32.png"
		FollowEmitter		true

		EmitterEvents
		{
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=[0,0]
				speed=0
				rotationalSpeed=400
				direction=[0,360]
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=[0,0]
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.1, alpha=80				
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.6,0.6)
				age=0.5, scale=(0.75,0.75)
				age=1, scale=(0.6,0.6)

				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
				//age=.4, moveWithEmitter=1
				//age=.8, moveWithEmitter=0
			}
		}
	}

}