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

EffectDefinition
{

	EffectComponent ParticleEffect "puff of smoke"
	{
		RepeatTime		0
		ParticleLifespan	[0.7,0.95]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter		false

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

				
			}			
		}
	}

	EffectComponent ParticleEffect "gyroscope thingy"
	{
		RepeatTime		0
		ParticleLifespan	0.6
		BlendMode		alpha
		Texture			"data/gfx/particles/offset_circle_8.png"
		FollowEmitter		false

		EmitterEvents
		{
			SpawnParticles
			{
				count=5
				duration=0.2
				delay=0
				orientation=90
				speed=300
				rotationalSpeed=1500
				direction=-45
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}
			
			SpawnParticles
			{
				count=5
				duration=0.2
				delay=0
				orientation=90
				speed=300
				rotationalSpeed=-1500
				direction=225
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}

			SpawnParticles
			{
				count=5
				duration=0.2
				delay=0
				orientation=90
				speed=300
				rotationalSpeed=1500
				direction=-65
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}
			
			SpawnParticles
			{
				count=5
				duration=0.2
				delay=0
				orientation=90
				speed=300
				rotationalSpeed=-1500
				direction=245
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}			
			
			SpawnParticles
			{
				count=5
				duration=0.2
				delay=0
				orientation=90
				speed=300
				rotationalSpeed=1500
				direction=-25
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}
			
			SpawnParticles
			{
				count=5
				duration=0.2
				delay=0
				orientation=90
				speed=300
				rotationalSpeed=-1500
				direction=205
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,-300)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=0.4, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.05, alpha=255 				
				age=0.7, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.2,0.2)
				age=1, scale=(1.2,2.2)

				
			}			
		}
	}

	
	EffectComponent ParticleEffect "gyroscope part 2"
	{
		RepeatTime		0
		ParticleLifespan	0.9
		BlendMode		alpha
		Texture			"data/gfx/particles/offset_circle_8.png"
		FollowEmitter		false

		EmitterEvents
		{
			SpawnParticles
			{
				count=4
				duration=0.2
				delay=0
				orientation=0
				speed=300
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}	

			SpawnParticles
			{
				count=4
				duration=0.2
				delay=0
				orientation=180
				speed=300
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[0,0]
				spawnOffsetAbsY=0
			}	
		

			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
				age=0.4, rgb=(255, 255, 255)
				age=1, rgb=%tint
				
			}
			
			Alpha
			{
				age=0, alpha=0 				
				age=0.05, alpha=255 				
				age=0.7, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1.0,1.0)
				age=0.2, scale=(-1.2,1.2)
				age=0.4, scale=(1.4,1.4)
				age=0.6, scale=(-1.6,1.6)
				age=0.8, scale=(1.8,1.8)
				age=1, scale=(-2.0,2.0)

				
			}			
		}
	}
	

}