
EffectDefinition
{

	
	EffectComponent ParticleEffect "falling sparks"
	{
		RepeatTime		0
		ParticleLifespan	0.8
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_8.png"
		FollowEmitter		true

		EmitterEvents
		{

			// Left

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=89.5
				spawnOffsetAbsX=-25
				spawnOffsetAbsY=-73
			}

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=85
				spawnOffsetAbsX=-50
				spawnOffsetAbsY=-73
			}

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=80
				spawnOffsetAbsX=-75
				spawnOffsetAbsY=-73
			}

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=75
				spawnOffsetAbsX=-100
				spawnOffsetAbsY=-73
			}

			// Right

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=90.5
				spawnOffsetAbsX=25
				spawnOffsetAbsY=-73
			}

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=95
				spawnOffsetAbsX=50
				spawnOffsetAbsY=-73
			}

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=100
				spawnOffsetAbsX=75
				spawnOffsetAbsY=-73
			}

			SpawnParticles
			{
				count=40
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=105
				spawnOffsetAbsX=100
				spawnOffsetAbsY=-73
			}
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 150, 20)				
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.1, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1.4, 1.4)
				age=1, scale=(0.8, 0.8)
				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}
	
	EffectComponent ParticleEffect "falling sparks"
	{
		RepeatTime		0
		ParticleLifespan	0.8
		BlendMode		add
		AnimSequence		"sparkle_dust"
		FollowEmitter		true

		EmitterEvents
		{

			// Left

			SpawnParticles
			{
				count=10
				duration=3
				orientation=[0,360]
				speed=145
				rotationalSpeed=150
				direction=90
				spawnOffsetAbsX=0
				spawnOffsetAbsY=-73
			}
		
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 150, 20)				
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.2, alpha=255
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(4.4, 4.4)
				age=1, scale=(2.8, 2.8)
				
			}
			MoveWithEmitter
			{
				age=0, moveWithEmitter=1
			}
		}
	}
	
		
}