EffectDefinition
{
	EffectComponent ParticleEffect "sparkles"
	{
		RepeatTime		1
		ParticleLifespan	2
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			// Top left quad
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=[0,400]
				spawnOffsetAbsY=[0,300]

			}

			// Top right quad
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.5
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=[400,800]
				spawnOffsetAbsY=[0,300]
			}

			// bottom left quad
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.9
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=[0,400]
				spawnOffsetAbsY=[300,600]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,-0.5)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.5, alpha=30
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(1.0,1.0)		
				age=0.5, scale=(1.2,3.2)		
				age=1.0, scale=(1.0,1.0)				
			}
		}
	}

	EffectComponent ParticleEffect "sparkles"
	{
		RepeatTime		0.6
		ParticleLifespan	2
		BlendMode		add
		Texture			"data/gfx/particles/sparkle/star_01.png"

		EmitterEvents
		{
			// Top left quad
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=[0,400]
				spawnOffsetAbsY=[0,300]

			}

			// Top right quad
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.5
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=[400,800]
				spawnOffsetAbsY=[0,300]
			}

			// bottom left quad
			SpawnParticles
			{
				count=1
				duration=0
				delay=0.9
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=[0,400]
				spawnOffsetAbsY=[300,600]
			}
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,-0.5)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 255, 255)		
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.5, alpha=20
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(0.3,0.3)		
				age=0.5, scale=(0.6,1.2)		
				age=1.0, scale=(0.3,0.3)				
			}
		}
	}	
	
	EffectComponent ParticleEffect "sun"
	{
		RepeatTime		7
		ParticleLifespan	8
		BlendMode		add
		Texture			"data/gfx/particles/blurcircle_01.png"

		EmitterEvents
		{		
			SpawnParticles
			{
				count=1
				duration=0
				delay=0
				orientation=0
				speed=0
				rotationalSpeed=0
				direction=0
				spawnOffsetAbsX=200
				spawnOffsetAbsY=-200

			}			
			
			Dynamics
			{
				delay=0.0, absoluteAcceleration=(0,-0.5)
			}
			
		}
		
		ParticleEvents
		{
			RGB
			{
				age=0, rgb=(255, 245, 235)		
			}
			
			Alpha
			{
				age=0, alpha=0
				age=0.5, alpha=50
				age=1, alpha=0
				
			}
			
			Scale
			{
				age=0, scale=(30.3,30.3)		
				age=0.5, scale=(40.6,40.2)		
				age=1.0, scale=(30.3,30.3)				
			}
		}
	}
}