Object
{
   Meshes   {   "BallBlue"             Health =  100,
                "BallGreen"            Health =  99,
                "BallRed"              Health =  98, 
                "BallYellow"           Health =  97, 
                "BallViolet"           Health =  96, 
                "BallWhite"            Health =  95,
                "BallCyan"             Health =  94,

                "BallLocomotive"       Health =  50,
                "BallLocomotiveAngry"  Health =  49,
                "BallLocomotiveDown"   Health =  48,
                "BallLocomotiveRun"    Health =  47,
                "BallLocomotiveLostStart" Health =  46,
                "BallLocomotiveLostMid" Health =  45,
                "BallLocomotiveLostEnd" Health =  44,

                "BallFireball"         Health =  30,
                "BallFireballFree"     Health =  29,

                "BallMulticolor"       Health =  20
            }
}


Meshes
{
   "BallBlue"            { TerrainBound = false }
   "BallGreen"           { TerrainBound = false }
   "BallRed"             { TerrainBound = false }
   "BallYellow"          { TerrainBound = false }
   "BallViolet"          { TerrainBound = false }
   "BallWhite"           { TerrainBound = false }
   "BallCyan"            { TerrainBound = false }

   "BallLocomotive"      { TerrainBound = false 
                           Emitters { "BallLocomotiveDustEmitter" } }
   
   "BallLocomotiveAngry" { TerrainBound = false 
                           Emitters { "BallLocomotiveDustEmitter" } }
   
   "BallLocomotiveDown"  { TerrainBound = false 
                           Emitters { "BallLocomotiveDownDustEmitter" } }

   "BallLocomotiveRun"   { TerrainBound = false 
						   Emitters { "BallLocomotiveRunDustEmitter" } }

   "BallLocomotiveLostStart"  { TerrainBound = false }

   "BallLocomotiveLostMid"  { TerrainBound = false 
			      Emitters { "BallLocomotiveLostMidDustEmitter" } }

   "BallLocomotiveLostEnd"  { TerrainBound = false Sound = "LocoRun"
			      Emitters { "BallLocomotiveLostEndDustEmitter" } }

   "BallFireball"        { TerrainBound = false 
                           Emitters { "BallFireballTrailEmitter" } }

   "BallFireballFree"    { TerrainBound = false
                           Emitters { "BallFireballFreeSoundEmitter", "BallFireballFreeTrailEmitter" } }

   "BallMulticolor"      { TerrainBound = false }
}



TextureAnimations
{ 
  "BallLocomotiveDust" { Texture = "TexturesA"  Frames { (377,186) x (23,23) } }

  "BallFireballFlame"  { Texture = "TexturesA"  Frames { (31,484) x (27,27) } }

  "BallShadow"         { Texture = "TexturesA"  Frames { (384,0) x (32,32) } }

  "BallLocoShadow"     { Texture = "TexturesA"  Frames { (418,0) x (30,30) } }


   "LocoExplosionBubble"    { Texture = "TexturesA"  Frames { (355,84) x (23,23) } }

   "LocoExplosionSlime1"    { Texture = "TexturesA"  Frames { (247,173) x (36,36) } }

   "LocoShockwave"    { Texture = "TexturesA"  Frames { (320,92) x (33,33) } }

   "LocoExplosionSlime"    { Texture = "TexturesA"  Frames { (370,1) x (11,11) } }

}



Particles 
{	
       
   "BallLocomotiveDustParticle"     { Type = "WorldAligned"
                                      SizeX = 1
                                      SizeY = 1
                                      Scale = Linear(0.25, 0.75)
			              SpeedY = Sequence (0.3,{0.7, 0.2, -0.1})
			              Alpha  = Linear (255,-255)
                                      TexAnimation = "BallLocomotiveDust"  }

 "BallLocomotiveDownDustParticle"   { Type = "WorldAligned"
                                      SizeX = 0.7
                                      SizeY = 0.7
                                      Scale = Linear(0.25, 0.75)
			              SpeedY = Sequence (0.3,{0.7, 0.2, -0.1})
			              Alpha  = Linear (255,-255)
                                      TexAnimation = "BallLocomotiveDust"  }



 "BallLocomotiveRunDustParticle"    { Type = "WorldAligned"
                                      SizeX = 2.3
                                      SizeY = 2.3
                                      Scale = Linear(0.2, 0.6)
			              SpeedY = Sequence (0.3,{0.7, 0.2, -0.1})
                                      SpeedZ = Random(-1,1)
			              Alpha  = Linear (150,-270)
                                      TexAnimation = "BallLocomotiveDust"}



  "BallLocomotiveEndDustParticle"     { Type = "WorldAligned"
                                      SizeX = 1.7
                                      SizeY = 1.7
                                      Scale = Linear(0.2, 0.8)
			              SpeedY = Sequence (0.3,{1, 0.3, 0.05})
			              Alpha  = Linear (180,-240)
                                      TexAnimation = "BallLocomotiveDust"  }




"BallFireballTrail" { 	Type = "CameraAligned"
                               		SizeX = 0.7
                              		SizeY = 0.7
                               		Scale = Linear(1, 1)
			      Roll = Random (-360, 360)
                               		SpeedX = Random (0.5,-0.5)
                               		SpeedY = Random  (0.6, 0.8)

                               		Alpha = Linear(250, -500)
                               		TexAnimation = "BallFireballFlame"   }
 

"BallFireballTrail2" { 	Type = "CameraAligned"
                               		SizeX = 0.7
                              		SizeY = 0.7
                               		Scale = Linear(1.3, -1.6)
			       		Roll = Random (-360, 360)
                               		SpeedX = Random (0.8,-0.8)
                               		SpeedY = Random (0.9, 1.1)

                               		Alpha = Linear(250, -600)
                               		TexAnimation = "BallFireballFlame"   }


   "BallFireballFreeSound" { Sound = "PowerUpFireballShot" }


   "BallShadow"                     { SizeX = 1.2
                                      SizeY = 1.2
                                      TexAnimation = "BallShadow"  }
   "BallLocoShadow"                     { SizeX = 1.8
                                          SizeY = 1.8
                                      TexAnimation = "BallLocoShadow"  }




"BallLocoPopBub1"       { Type = "CameraAligned"
				SizeX = 0.2
				SizeY= 0.2
				Scale = Sequence( 0.2, { 1, 0.8, 1, 0.6,0.8 ,0.4} )
                                Speed = Sequence (0.1, {10,1} )
			        SpeedDirOrientation = Random( 0,52)
				SpeedDirPitch = Random(40,45)
				Gravity = 4
				Alpha = Sequence (0.2, {255,200,255,150 ,230,100,-700} )
                                TexAnimation = "LocoExplosionBubble" }

 

  "BallLocoPopBub2"       { Type = "CameraAligned"
				SizeX = 0.28
				SizeY= 0.28
				Scale = Sequence( 0.2, {  0.8, 1, 0.6,0.8 ,0.4} )
                                Speed = Sequence (0.1, {10,1} )
			        SpeedDirOrientation = Random( 72,124)
				SpeedDirPitch = Random(40,45)
				Gravity = 4
				Alpha = Sequence (0.2, {200,255,150 ,230,100,-700} )
                                TexAnimation = "LocoExplosionBubble" }



  "BallLocoPopBub3"       { Type = "CameraAligned"
				SizeX = 0.28
				SizeY= 0.28
				Scale = Sequence( 0.2, { 1, 0.8, 1, 0.6,0.8 ,0.4} )
                                Speed = Sequence (0.1, {10,1} )
			        SpeedDirOrientation = Random( 144,196)
				SpeedDirPitch = Random(40,45)
				Gravity = 4
				Alpha = Sequence (0.2, {255,200,255,150 ,230,100,-700} )
                                TexAnimation = "LocoExplosionBubble" }

  
  

 "BallLocoPopBub4"       { Type = "CameraAligned"
				SizeX = 0.2
				SizeY= 0.2
				Scale = Sequence( 0.2, { 1, 0.8, 1, 0.6,0.8 ,0.4} )
                                Speed = Sequence (0.1, {11,1} )
			        SpeedDirOrientation = Random( 216,268)
				SpeedDirPitch = Random(40,45)
				Gravity = 4
				Alpha = Sequence (0.2, {255,200,255,150 ,230,100,-700} )
                                TexAnimation = "LocoExplosionBubble" }

 

  "BallLocoPopBub5"       { Type = "CameraAligned"
				SizeX = 0.28
				SizeY= 0.28
				Scale = Sequence( 0.2, { 0.8, 1, 0.6,0.8 ,0.4} )
                                Speed = Sequence (0.1, {10,1} )
			        SpeedDirOrientation = Random( 288,340)
				SpeedDirPitch = Random(40,45)
				Gravity = 4
				Alpha = Sequence (0.2, {200,255,150 ,230,100,-700} )
                                TexAnimation = "LocoExplosionBubble" }






 "BallLocoPopSlime1"	   { 	Type = "CameraAligned"
					SizeX = 0.3
					SizeY= 0.3
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 0,20)
					SpeedDirPitch = Random(55,60)
					Gravity = 14
					Alpha = Sequence (0.6, {255,255 ,-700} )
                                	TexAnimation = "LocoExplosionSlime"  }

 "BallLocoPopSlime2"       { 	Type = "CameraAligned"
					SizeX = 0.3
					SizeY= 0.3
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 60,80)
					SpeedDirPitch = Random(50,60)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-700} )
                                	TexAnimation = "LocoExplosionSlime"  }



 "BallLocoPopSlime3"      { 	Type = "CameraAligned"
					SizeX = 0.25
					SizeY= 0.25
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 120,140)
					SpeedDirPitch = Random(50,60)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-700} )
                                	TexAnimation = "LocoExplosionSlime"  }



 "BallLocoPopSlime4"  	    {	Type = "CameraAligned"
					SizeX = 0.2
					SizeY= 0.2
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 180,200)
					SpeedDirPitch = Random(50,60)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-800} )
                                	TexAnimation = "LocoExplosionSlime"  }


 "BallLocoPopSlime5"       { 	Type = "CameraAligned"
					SizeX = 0.25
					SizeY= 0.25
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 240,260)
					SpeedDirPitch = Random(50,60)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-700} )
                                	TexAnimation = "LocoExplosionSlime"   }



 "BallLocoPopSlime6"    { 	Type = "CameraAligned"
					SizeX = 0.2
					SizeY= 0.2
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 300,320)
					SpeedDirPitch = Random(45,55)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-750} )
                                	TexAnimation = "LocoExplosionSlime"   } 



 "BallLocoPopSlime7"    {	Type = "CameraAligned"
					SizeX = 0.25
					SizeY= 0.25
					
                                	Speed = 4
			        	SpeedDirOrientation = Random(45,65)
					SpeedDirPitch = Random(60,70)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-550} )
                                	TexAnimation = "LocoExplosionSlime"  }

 "BallLocoPopSlime8"    { 	Type = "CameraAligned"
					SizeX = 0.2
					SizeY= 0.2
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 135,155)
					SpeedDirPitch = Random(55,70)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-500} )
                                	TexAnimation = "LocoExplosionSlime"   }

 "BallLocoPopSlime9"    { 	Type = "CameraAligned"
					SizeX = 0.25
					SizeY= 0.25
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 225,245)
					SpeedDirPitch = Random(55,70)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-600} )
                                	TexAnimation = "LocoExplosionSlime"  }


 "BallLocoPopSlime10"  { 	Type = "CameraAligned"
					SizeX = 0.2
					SizeY= 0.2
					
                                	Speed = 4
			        	SpeedDirOrientation = Random( 315,335)
					SpeedDirPitch = Random(55,70)
					Gravity = 14
					Alpha =  Sequence (0.6, {255,255 ,-300} )
                               		TexAnimation = "LocoExplosionSlime"   }





   "LocoExplosionShockwave"  {    Type = "WorldAligned"
	                                SizeX = 0.9
					SizeY= 0.9
					Scale = Linear(0.2, 10)
					Pitch = 90
					Alpha = Linear(255, -900)
					TexAnimation = "LocoShockwave"   }

   "BallLocoPopSound" { Sound = "BallLocoPop" }

   "BallLocoAngrySound" { Sound = "BallLocoAngry" }

   "BallTrainRunSound" { Sound = "BallTrainRun" }

   "BallTrainRunEndSound" { Sound = "LostLifeHole" }


}



ExplosionsAndEmitters
{ 

"BallLocomotiveDustEmitter"    {     Count = 0
                                     Interval = 0.5
                                     Particles     { "BallLocomotiveDustParticle" StartPosition = (0.38, -0.343, 0.077),  
                                                     "BallLocomotiveDustParticle" StartPosition = (-0.38, -0.343,0.077) Delay = 0.15,  
                                                     "BallLocomotiveDustParticle" StartPosition = (-0.396, -0.343, -0.28),  
                                                     "BallLocomotiveDustParticle" StartPosition = (0.396, -0.343, -0.28) Delay = 0.15 } }

"BallLocomotiveDownDustEmitter"    { Count =0
                                     Interval = 0.04
                                     Particles     { "BallLocomotiveDownDustParticle" StartPosition = (0.4, -0.343, 0),
                                                     "BallLocomotiveDownDustParticle" StartPosition = (-0.4, -0.343, 0)} }

"BallLocomotiveRunDustEmitter"    { Count =0
                                     Interval = 0.03
                                     Particles     { "BallLocomotiveRunDustParticle" StartPosition = (0.2, -0.343, 0),
                                                     "BallLocomotiveRunDustParticle" StartPosition = (-0.2, -0.343, 0)  } }

"BallLocomotiveLostMidDustEmitter" {     Count = 0
                                     Interval = 0.24
                                     Particles     { "BallLocomotiveDustParticle" StartPosition = (-0.396, -0.343, -0.3) ,  
                                                     "BallLocomotiveDustParticle" StartPosition = (0.396, -0.343, -0.3) Delay = 0.12  } }


"BallLocomotiveLostEndDustEmitter" {     Count = 0
                                     Interval = 0.2
                                     Particles     { "BallLocomotiveEndDustParticle" StartPosition = (0.38, -0.343, 0.077),  
                                                     "BallLocomotiveEndDustParticle" StartPosition = (-0.38, -0.343,0.077) Delay = 0.15,  
                                                     "BallLocomotiveEndDustParticle" StartPosition = (-0.396, -0.343, -0.28),  
                                                     "BallLocomotiveEndDustParticle" StartPosition = (0.396, -0.343, -0.28) Delay = 0.15 } }


"BallFireballTrailEmitter"    { Count = 0 Interval = 0.02 Particles {  "BallFireballTrail" StartPosition = (0, 0.2, 0) }  }


"BallFireballFreeSoundEmitter"    { Particles {  "BallFireballFreeSound"  } }

"BallFireballFreeTrailEmitter"    { Count = 0 Interval = 0.01 Particles {  "BallFireballTrail2",
                                                                           "CannonBallExplosionSparksTrail"  }  }

"BallLocoPop"           { Count = 1
                          Particles {  "LocoExplosionShockwave" Delay = .06
					"BallLocoPopBub1"  	Delay = .08
				      	"BallLocoPopBub2"	Delay = .08
				      	"BallLocoPopBub3"	Delay = .06
					"BallLocoPopBub4"   Delay = .08
					"BallLocoPopBub5"   Delay = .08
				        "BallLocoPopSlime1" Delay = .06
					"BallLocoPopSlime2" Delay = .06
					"BallLocoPopSlime3" Delay = .06
					"BallLocoPopSlime4" Delay = .06
					"BallLocoPopSlime5" Delay = .06
					"BallLocoPopSlime6" Delay = .06
					"BallLocoPopSlime7" Delay = .06
					"BallLocoPopSlime8" Delay = .06
					"BallLocoPopSlime9" Delay = .06
					"BallLocoPopSlime10" Delay = .06
								} }

}