
EffectDefinition
{

	
	EffectComponent ParticleEffect "rolling dust"
	{
		RepeatTime		0
		ParticleLifespan	[4.9, 6.6]
		BlendMode		alpha
		Texture			"data/gfx/particles/smoke_02.png"
		FollowEmitter		True

		EmitterEvents
		{
			// LEVEL 1/2 - LEFT
			SpawnParticles
			{
				count=50
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[-190,-300]
				direction=[0,360]
				spawnOffsetAbsX=[50,400]
				spawnOffsetAbsY=[362,451]
			}

			// LEVEL 1/2 - RIGHT
			SpawnParticles
			{
				count=50
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[190,300]
				direction=[0,360]
				spawnOffsetAbsX=[400,750]
				spawnOffsetAbsY=[362,451]
			}

			// LEVEL 3/4 - LEFT
			SpawnParticles
			{
				count=40
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[-190,-300]
				direction=[0,360]
				spawnOffsetAbsX=[100,400]
				spawnOffsetAbsY=[291,359]
			}

			// LEVEL 3/4 - RIGHT
			SpawnParticles
			{
				count=40
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[190,300]
				direction=[0,360]
				spawnOffsetAbsX=[400,700]
				spawnOffsetAbsY=[291,359]
			}

			// LEVEL 5/6 - LEFT
			SpawnParticles
			{
				count=30
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[-190,-300]
				direction=[0,360]
				spawnOffsetAbsX=[175,400]
				spawnOffsetAbsY=[223,291]
			}

			// LEVEL 5/6 - RIGHT
			SpawnParticles
			{
				count=30
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[190,300]
				direction=[0,360]
				spawnOffsetAbsX=[400,625]
				spawnOffsetAbsY=[223,291]
			}

			// LEVEL 7/8 - LEFT
			SpawnParticles
			{
				count=20
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[-190,-300]
				direction=[0,360]
				spawnOffsetAbsX=[220,400]
				spawnOffsetAbsY=[178,223]
			}

			// LEVEL 7/8 - RIGHT
			SpawnParticles
			{
				count=20
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[190,300]
				direction=[0,360]
				spawnOffsetAbsX=[400,580]
				spawnOffsetAbsY=[178,223]
			}

			// LEVEL 9/10 - LEFT
			SpawnParticles
			{
				count=10
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[-190,-300]
				direction=[0,360]
				spawnOffsetAbsX=[285,400]
				spawnOffsetAbsY=[133,178]
			}

			// LEVEL 9/10 - RIGHT
			SpawnParticles
			{
				count=10
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[190,300]
				direction=[0,360]
				spawnOffsetAbsX=[400,515]
				spawnOffsetAbsY=[133,178]
			}

			// LEVEL 11/12 - LEFT
			SpawnParticles
			{
				count=5
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[-190,-300]
				direction=[0,360]
				spawnOffsetAbsX=[365,400]
				spawnOffsetAbsY=[83,133]
			}

			// LEVEL 11/12 - RIGHT
			SpawnParticles
			{
				count=5
				duration=0.7
				orientation=[0,360]
				speed=[5,10]
				rotationalSpeed=[190,300]
				direction=[0,360]
				spawnOffsetAbsX=[400,435]
				spawnOffsetAbsY=[83,133]
			}
			
			Dynamics
			{
				delay=3.5, absoluteAcceleration=(0,-50)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(186,140,98)
				age=1, rgb=(255,240,199)
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.05, alpha=130
				age=0.6, alpha=110
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1,1)
				age=1, scale=(1.5,1.5)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1			
			}
		}
	}

	EffectComponent ParticleEffect "spitting wood pieces 1 big pieces"
	{
		RepeatTime		0
		ParticleLifespan	[4.9, 6.6]
		BlendMode		alpha
		Texture			"data/gfx/particles/wood/wood_01.png"
		FollowEmitter		True

		EmitterEvents
		{

			// LEFT

			SpawnParticles
			{
				count=3
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[-190,-400]
				direction=[190,260]
				spawnOffsetAbsX=[156,400]
				spawnOffsetAbsY=[362,451]
			}

			SpawnParticles
			{
				count=3
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[-190,-400]
				direction=[190,260]
				spawnOffsetAbsX=[288,400]
				spawnOffsetAbsY=[153,295]
			}

			// RIGHT

			SpawnParticles
			{
				count=3
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[190,400]
				direction=[280,350]
				spawnOffsetAbsX=[400,556]
				spawnOffsetAbsY=[362,451]
			}	

			SpawnParticles
			{
				count=3
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[190,400]
				direction=[280,350]
				spawnOffsetAbsX=[400,512]
				spawnOffsetAbsY=[153,295]
			}

			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,400)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.05, alpha=255
				age=0.6, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.6,0.6)
				age=1, scale=(1.0,1.0)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1			
			}
		}
	}
	

	EffectComponent ParticleEffect "spitting wood pieces 2 small pieces"
	{
		RepeatTime		0
		ParticleLifespan	[4.9, 6.6]
		BlendMode		alpha
		Texture			"data/gfx/particles/wood/wood_02.png"
		FollowEmitter		True

		EmitterEvents
		{

			// LEFT

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[-190,-400]
				direction=[190,260]
				spawnOffsetAbsX=[156,400]
				spawnOffsetAbsY=[362,451]
			}

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[-190,-400]
				direction=[190,260]
				spawnOffsetAbsX=[288,400]
				spawnOffsetAbsY=[153,295]
			}

			// RIGHT

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[190,400]
				direction=[280,350]
				spawnOffsetAbsX=[400,556]
				spawnOffsetAbsY=[362,451]
			}	

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[190,400]
				direction=[280,350]
				spawnOffsetAbsX=[400,512]
				spawnOffsetAbsY=[153,295]
			}

			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,400)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.05, alpha=255
				age=0.6, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.6,0.6)
				age=1, scale=(1.0,1.0)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1			
			}
		}
	}

	EffectComponent ParticleEffect "spitting rocks"
	{
		RepeatTime		0
		ParticleLifespan	[4.9, 6.6]
		BlendMode		alpha
		Texture			"data/gfx/particles/rocks/rock_01.png"
		FollowEmitter		True

		EmitterEvents
		{

			// LEFT

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[-190,-400]
				direction=[190,260]
				spawnOffsetAbsX=[156,400]
				spawnOffsetAbsY=[362,451]
			}

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[-190,-400]
				direction=[190,260]
				spawnOffsetAbsX=[288,400]
				spawnOffsetAbsY=[153,295]
			}

			// RIGHT

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[190,400]
				direction=[280,350]
				spawnOffsetAbsX=[400,556]
				spawnOffsetAbsY=[362,451]
			}	

			SpawnParticles
			{
				count=6
				duration=3.7
				orientation=[0,360]
				speed=[250,350]
				rotationalSpeed=[190,400]
				direction=[280,350]
				spawnOffsetAbsX=[400,512]
				spawnOffsetAbsY=[153,295]
			}

			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,400)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(186,140,98)
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.05, alpha=255
				age=0.6, alpha=200
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.2,0.2)
				age=1, scale=(0.6,0.6)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1			
			}
		}
	}

	EffectComponent ParticleEffect "pyramid shine overlay"
	{
		RepeatTime		0
		ParticleLifespan	3
		BlendMode		add
		Texture			"data/gfx/particles/pyramid_overlay.png"
		FollowEmitter		True

		EmitterEvents
		{

			SpawnParticles
			{
				count=1
				duration=0
				delay=4
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=400
				spawnOffsetAbsY=250
			}		
			
			Dynamics
			{
				delay=0, absoluteAcceleration=(0,0)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.5, alpha=70
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(6.25,6.25)
				age=0.5, scale=(6.5,6.5)
				age=1, scale=(6.25,6.25)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1			
			}
		}
	}

	EffectComponent ParticleEffect "pyramid shiney rising dots"
	{
		RepeatTime		0
		ParticleLifespan	3
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_8.png"
		FollowEmitter		True

		EmitterEvents
		{

			SpawnParticles
			{
				count=20
				duration=1
				delay=4
				orientation=0
				speed=[5, 10]
				rotationalSpeed=0
				direction=270
				spawnOffsetAbsX=[64, 708]
				spawnOffsetAbsY=[337, 418]
			}		
			
			Dynamics
			{
				delay=4, absoluteAcceleration=(0,-200)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)
			}
			
			Alpha
			{
				age=0, alpha=0				
				age=0.5, alpha=80
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1.0,1.0)				
				age=1, scale=(2.0,2.0)
				
			}

			MoveWithEmitter
			{
				age=0, moveWithEmitter=1			
			}
		}
	}	
}