{
	"label": "Mage",
	"author": "Michael A. Hedderich",
	"scale" : 447,
	"graphicElements": [
		{
			"id" : "RelativePositionElement",
			"x" : "f: 10 * -sin(mvmtDirAngl * 0.01745+1.571) | 0",
			"y" : "f: 10 * cos(mvmtDirAngl * 0.01745+1.571) | 0",
			"graphic" : {
				"states":["WALK"],
				"id": "ParticleEmitter",
				"emittingFrequency" : 20,
				"particleLifeTime" : 200,
				"particle" : {
					"id" : "InterpolatingKeyframeElement",
					"startRandom" : 1,
					"graphic": {
						"id": "RandomTextureElement",
						"textures" : [
							"graphics/particles/dustParticle0.png",
							"graphics/particles/dustParticle1.png"
						]
					},
					"frameTime": 200,
					"keyframes":[
						{"scale" : 2,"y":-200},{"scale" : 0.0,"y":-36}
					]
				}
			}
		},		
		{
			"id" : "InterpolatingKeyframeElement",
			"states" : ["WALK"],
			"startRandom" : 1,
			"frameTime" : 5,
			"keyframes" : [{"x":0,"y":0, "rotation":4},{"x":0,"y":15, "rotation":-5},{"x":0,"y":2, "rotation":4},{"x":0,"y":17, "rotation":-3},{"x":0,"y":-2, "rotation":4},{"x":0,"y":-2, "rotation":-3}],
			"graphic":
			{
				"id" : "DrawableContainer",
				"graphic" : [
					{
						"id": "ConditionalDrawable",
						"condition": "mvmtDirAngl < 0 | true",
						"graphic": {
							"id": "DrawableContainer",
							"graphic": [
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_body.png",
									"colorable": 1
								},
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_colored.png",
									"colorable": 0
								},
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_hat.png",
									"colorable": 1
								},
								{
									"id": "InterpolatingKeyframeElement",
									"frameTime": 40,
									"keyframes": [
										{ "x": -10,"y": -8 }, 
										{ "x": -10,"y": -18 }
									],
									"graphic":{
							
										"id": "TextureElement",
										"path": "graphics/mage/mage_wand.png"

									}
								}				
							]
						}
					},
					{
						"id": "ConditionalDrawable",
						"condition": "mvmtDirAngl > 0 | false",
						"graphic": {
							"id": "DrawableContainer",
							"graphic": [
								{
									"id": "InterpolatingKeyframeElement",
									"frameTime": 40,
									"keyframes": [
										{ "x": -10,"y": -5 }, 
										{ "x": -10,"y": -15 }
									],
									"graphic":{
							
										"id": "TextureElement",
										"path": "graphics/mage/mage_back_wand.png"

									}
								},
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_back_colored.png",
									"colorable": 0
								},
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_back_body.png",
									"colorable": 1
								},
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_back_hair.png",
									"colorable": 0
								},
								{
									"id": "TextureElement",
									"path": "graphics/mage/mage_back_hat.png",
									"colorable": 1
								}				
							]
						}
					}
				]
			}
		},
		{
			"id" : "DrawableContainer",
			"states" : ["NOSTATE"],
			"graphic" : [
				{
					"id": "ConditionalDrawable",
					"condition": "mvmtDirAngl < 0 | true",
					"graphic": {
						"id": "DrawableContainer",
						"graphic": [
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_body.png",
								"colorable": 1
							},
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_colored.png",
								"colorable": 0
							},
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_hat.png",
								"colorable": 1
							},
							{
								"id": "InterpolatingKeyframeElement",
								"frameTime": 40,
								"keyframes": [
									{ "x": -10,"y": -8 }, 
									{ "x": -10,"y": -18 }
								],
								"graphic":{
						
									"id": "TextureElement",
									"path": "graphics/mage/mage_wand.png"

								}
							}				
						]
					}
				},
				{
					"id": "ConditionalDrawable",
					"condition": "mvmtDirAngl > 0 | false",
					"graphic": {
						"id": "DrawableContainer",
						"graphic": [
							{
								"id": "InterpolatingKeyframeElement",
								"frameTime": 40,
								"keyframes": [
									{ "x": -10,"y": -5 }, 
									{ "x": -10,"y": -15 }
								],
								"graphic":{
						
									"id": "TextureElement",
									"path": "graphics/mage/mage_back_wand.png"

								}
							},
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_back_colored.png",
								"colorable": 0
							},
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_back_body.png",
								"colorable": 1
							},
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_back_hair.png",
								"colorable": 0
							},
							{
								"id": "TextureElement",
								"path": "graphics/mage/mage_back_hat.png",
								"colorable": 1
							}				
						]
					}
				}
			]
		}
	]
}

