require("scripts/styles/style.lua");

MakeDisplayHierarchy{	
	
	BlgMovieClip{
		repeatCount = -1,
		autoPlay = false,
		transformMatrix = {x = -95, y = -177},
		BlgBitmap{
			name = "interior",
			image = "level/sandwich/textures/interior",
			center = {x = 0, y = 0},
			transformMatrix = {x = 30, y = 30},
			visible = false,
		},
		BlgBitmap{
			image = "level/sandwich/textures/blender_glass",
			center = {x = 0, y = 0},
			transformMatrix = {x = 10, y = 5},
			animation = {
				transformationPoint = {x = 0.5, y = 0.5},
				keyframes = {
					{
						index = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 7,
						x = 2.1000000000000227,
						y = -4.199999999999989,
						scaleX = 0.844,
						scaleY = 1.035,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 19,
						x = 0,
						y = 0,
						scaleX = 1,
						scaleY = 1,
					},
				},
			},
		},
		BlgBitmap{
			image = "level/sandwich/textures/blender_mid",
			center = {x = 0, y = 0},
			transformMatrix = {x = 53, y = 233},
			animation = {
				transformationPoint = {x = 0.5, y = 0.5},
				keyframes = {
					{
						index = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 2,
						x = 3,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 4,
						x = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 6,
						x = 3,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 8,
						x = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 10,
						x = 3,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 12,
						x = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 14,
						x = 3,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 16,
						x = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 19,
						x = 3,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
				},
			},
		},
		BlgBitmap{
			image = "level/sandwich/textures/blender_base",
			center = {x = 0, y = 0},
			transformMatrix = {x = 38, y = 261},
		},
		BlgBitmap{
			image = "level/sandwich/textures/blender_top",
			center = {x = 0, y = 0},
			transformMatrix = {x = 13},
			animation = {
				transformationPoint = {x = 0.5, y = 0.5},
				keyframes = {
					{
						index = 0,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 3,
						x = -0.6000000000000227,
						y = 6.399999999999977,
						scaleX = 1.1350737797956867,
						scaleY = 0.9416195856873822,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 7,
						x = 1.3999999999999773,
						y = -7.850000000000023,
						scaleX = 1.032917139614075,
						scaleY = 0.9990583804143125,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 10,
						y = -14.600000000000023,
						scaleX = 1.0022701475595914,
						tweens = {
							{
								type = "SimpleEase",
								target = TWEEN_ALL,
								ease = 0,
							},
						},
					},
					{
						index = 19,
						x = 0,
						y = 0,
						scaleX = 1,
						scaleY = 1,
					},
				},
			},
		},
	},
};
