var loadingCinematic = { components: [
	{
		c: TransformComponent,
		d: {
			x: 300,
			y: 300,
			scaleX: 1,
			scaleY: 1,
			zIndex: 1
		}
	},
	{
		c: PixelTextComponent,
		d: {
			text: "$loading",
			align: TextAlign.right,
			spacing: -3,
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontGreasyStroke",
				scale: 1,
				tint: 0xe0b86c
			}
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 10,
			component: "PixelTextComponent",
			field: "alpha",
			values: [0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
]};

//INTRO TO JAIL
var introPolaroidBase = { components: [
	{
		c: TransformComponent,
		d: {
			zIndex: 24,
			scaleX: 1.89,
			scaleY: 1.89,
			y: -15,
		}
	},
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_map",
			name: "polaroid",
		//	defaultAnimationName: "shoddy",
		//	tint: 0xcfcd81,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 10,
			component: "TransformComponent",
			field: "simpleLocalScale",
			values: [1.89, 2],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
]};

var introPolaroid1Picture = { components: [
	{
		c: TransformComponent,
		d: {
			zIndex: 22,
			scaleX: 1 / 1.89,
			scaleY: 1 / 1.89,
		}
	},
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "polaroid",
			defaultAnimationName: "introFired",
		//	tint: 0xcfcd81,
		}
	},
]};

var introPolaroid2Picture = { extend: introPolaroid1Picture, components: [
	{ 
		c: SpriteComponent,
		d: { 
			defaultAnimationName: "introSelling",
		}
	},
]};

var introPolaroid3Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "introHoldup", }},
]};

var introPolaroid4Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "introShootout", }},
]};

var introPolaroid5Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "introRobbed", }},
]};

var introPolaroid6Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "introJail", }},
]};

var introPolaroidDialogBase = { components: [
	{
		c: TransformComponent,
		d: {
			x: 0,
			y: 122,
			scaleX: 1,
			scaleY: 1,
			zIndex: 25
		}
	},
	{
		c: PixelTextComponent,
		d: {
			text: "POLAROID DIALOG",
			alpha: 0,
			lineHeight: -40,
			spaceWidth: 8,
			align: TextAlign.center,
			verticalAlign: TextAlignVertical.center,
			spacing: -1,
			textWrapping: 180,
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontComic",
				scale: 2 / 5,
				tint: 0x181818,
			}
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 1,
			component: "PixelTextComponent",
			field: "alpha",
			values: [0.0, 0.01, 0.0, 0.01, 0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
			firstValueFromTarget: true,
		}
	}
]};

var introPolaroidDialog1 = { extend: introPolaroidDialogBase, components: [
	{c: PixelTextComponent,d: {text: "$introJail1Dialog",}},
]};
var introPolaroidDialog2 = { extend: introPolaroidDialogBase, components: [
	{c: PixelTextComponent,d: {text: "$introJail2Dialog",}},
]};
var introPolaroidDialog3 = { extend: introPolaroidDialogBase, components: [
	{c: PixelTextComponent,d: {text: "$introJail3Dialog",}},
]};
var introPolaroidDialog4 = { extend: introPolaroidDialogBase, components: [
	{c: PixelTextComponent,d: {text: "$introJail4Dialog",}},
]};
var introPolaroidDialog5 = { extend: introPolaroidDialogBase, components: [
	{c: PixelTextComponent,d: {text: "$introJail5Dialog",}},
]};

var introPolaroid1 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
		}
	},
], children: [
	introPolaroid1Picture,
	introPolaroidDialog1,
]};

var introPolaroid2 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
		}
	},
], children: [
	introPolaroid2Picture,
	introPolaroidDialog2,
]};

var introPolaroid3 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: -0.05,
		}
	},
], children: [
	introPolaroid3Picture,
	introPolaroidDialog3,
]};

var introPolaroid4 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: -0.1,
		}
	},
], children: [
	introPolaroid4Picture,
	introPolaroidDialog4,
]};

var introPolaroid5 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.05,
		}
	},
], children: [
	introPolaroid5Picture,
	introPolaroidDialog5,
]};

var introPolaroid6 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.12,
		}
	},
], children: [
	introPolaroid6Picture,
]};

var introTextBase = { components: [
	{
		c: TransformComponent,
		d: {
			zIndex: 35,
			y: 355,
		}
	},
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail1",
			lineHeight: -40,
			spaceWidth: 10,
	//		lineHeight: 20,
			align: TextAlign.center,
			verticalAlign: TextAlignVertical.center,
			spacing: -1,
			textWrapping: 900,
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontComic",
				scale: 3 / 4,
				tint: 0xe2b47f,
			}
		}
	},
]};

var introText1A = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail1",
			alpha: 0,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 1,
			component: "PixelTextComponent",
			field: "alpha",
			values: [1.0, 0.99, 1.0, 0.99, 1.0, 0.99, 1.0, 0.99, 0.0, 0.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
			firstValueFromTarget: true,
		}
	}
]};

var introText1B = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail1B",
			alpha: 0,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 1,
			component: "PixelTextComponent",
			field: "alpha",
			values: [0.0, 0.01, 0.0, 0.01, 0.0, 0.01, 0.0, 0.01, 0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
			firstValueFromTarget: true,
		}
	}
]};

var introText2A = { extend: introText1A, components: [
	{c: PixelTextComponent,d: {text: "$introJail2",}},
]};

var introText2B = { extend: introText1B, components: [
	{c: PixelTextComponent,d: {text: "$introJail2B",}},
]};

var introText2 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail2",
		}
	},
]};

var introText3 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail3",
		}
	},
]};

var introText4 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail4",
		}
	},
]};

var introText5A = { extend: introText1A, components: [
	{c: PixelTextComponent,d: {text: "$introJail5",}},
]};

var introText5B = { extend: introText1B, components: [
	{c: PixelTextComponent,d: {text: "$introJail5B",}},
]};

var introText5 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail5",
		}
	},
]};

var introText6 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$introJail6",
		}
	},
]};

var introBlackFade = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x000000,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 2,
			component: "SpriteComponent",
			field: "alpha",
			values: [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 40,
			zIndex: 40
		}
	},
]};

var introBlackFadeShort = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x000000,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 2,
			component: "SpriteComponent",
			field: "alpha",
			values: [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 40,
			zIndex: 40
		}
	},
]};

var introBlackFadeVeryShort = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x000000,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 2,
			component: "SpriteComponent",
			field: "alpha",
			values: [1.0, 0.0, 0.0, 0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 40,
			zIndex: 40
		}
	},
]};

var introBlackFadeMedium = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x000000,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 2,
			component: "SpriteComponent",
			field: "alpha",
			values: [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 40,
			zIndex: 40
		}
	},
]};

var introBlackFadeLong = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x000000,
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 2,
			component: "SpriteComponent",
			field: "alpha",
			values: [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 40,
			zIndex: 40
		}
	},
]};

var introBlackFadeEnd = { extend: introBlackFade, components: [
	{
		c: TweenerComponent,
		d: {
			values: [1.0, 0.0],
		}
	}
]};

var introBlackFill = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x171717,
		}
	},
	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 40,
			zIndex: 21,
		}
	},
]};

var blackBar = { components: [
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "ui_intro",
			name: "black",
			defaultAnimationName: "default",
			tint: 0x000000,
		}
	},

	{
		c: TransformComponent,
		d: {
			scaleX: 40,
			scaleY: 2,
			zIndex: 25
		}
	},
]};

var blackBarTop = { extend: blackBar, components: [
	{
		c: TransformComponent,
		d: {
			y: -555,
		}
	},
], children: [
	blackBar,
]};

var blackBarBottom = { extend: blackBar, components: [
	{
		c: TransformComponent,
		d: {
			y: 555,
		}
	},
], children: [
	blackBar,
]};

var vhsStaticIntro = { components: [
	{
		c: TransformComponent,
		d: {
			zIndex: 22,
			scaleX: 5,
			scaleY: 5,
		}
	},
	{
		c: SpriteComponent,
		d: {
			layer: LayerDefinitions.LAYER_UI,
			sheet: "fxVHS",
			name: "vhsStatic",
			defaultAnimationName: "default",
			loop: true,
			fps: 10000,
			alpha: 0.5,
			loop: true,
			// REQUIRED FEATURE PLOX 
			// useUnadjustedFrameTime: true,
		}
	},
]};

var introJailBase = { components: [
	{
		c: TransformComponent,
		d: {
		}
	},
], children: [
	blackBarTop,
	blackBarBottom,
	introBlackFill,
	vhsStaticIntro,
	introBlackFade,
]};

var introJailBaseVeryShort = { components: [
	{
		c: TransformComponent,
		d: {
		}
	},
], children: [
	blackBarTop,
	blackBarBottom,
	introBlackFill,
	vhsStaticIntro,
	introBlackFadeVeryShort,
]};

var introJailBaseShort = { components: [
	{
		c: TransformComponent,
		d: {
		}
	},
], children: [
	blackBarTop,
	blackBarBottom,
	introBlackFill,
	vhsStaticIntro,
	introBlackFadeShort,
]};

var introJailBaseMedium = { components: [
	{
		c: TransformComponent,
		d: {
		}
	},
], children: [
	blackBarTop,
	blackBarBottom,
	introBlackFill,
	vhsStaticIntro,
	introBlackFadeMedium,
]};

var introJailBaseLong = { components: [
	{
		c: TransformComponent,
		d: {
		}
	},
], children: [
	blackBarTop,
	blackBarBottom,
	introBlackFill,
	vhsStaticIntro,
	introBlackFadeLong,
]};

var preIntroJail1 = { extend: introJailBaseVeryShort, components: [
	{
		c: TransformComponent,
		d: {
			zIndex: 35,
			y: 0,
		}
	},
	{
		c: PixelTextComponent,
		d: {
			text: "$preIntro1",
			lineHeight: -40,
			spaceWidth: 10,
	//		lineHeight: 20,
			align: TextAlign.center,
			verticalAlign: TextAlignVertical.center,
			spacing: -1,
			textWrapping: 900,
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontComic",
				scale: 3 / 4,
				tint: 0xe2b47f,
			}
		}
	},
]};

var preIntroJail2 = { extend: preIntroJail1, components: [
	{c: PixelTextComponent,d: {text: "$preIntro2",}},
]};

var introJail1 = { extend: introJailBaseMedium, components: [
], children: [
	introPolaroid1,
	introText1A,
	introText1B,
]};

var introJail2 = { extend: introJailBaseMedium, components: [
], children: [
	introPolaroid2,
	introText2A,
	introText2B,
]};

var introJail3 = { extend: introJailBaseShort, components: [
], children: [
	introPolaroid3,
	introText3,
]};

var introJail4 = { extend: introJailBaseShort, components: [
], children: [
	introPolaroid4,
	introText4,
]};

var introJail5 = { extend: introJailBaseMedium, components: [
], children: [
	introPolaroid5,
	introText5A,
	introText5B,
]};

var introJail6 = { extend: introJailBase, components: [
], children: [
	introPolaroid6,
	introText6,
]};

var introJailEnd = { components: [
], children: [
	introBlackFadeEnd
]};

var introJailCenteredBase = { components: [
	// PUT CENTERING COMPONENT HERE
	{
		c: TransformComponent,
		d: {
			x: 720,
			y: 450,
		}
	},
	/*
	{
		c: TweenerComponent,
		d: {
			duration: 10,
			component: "PixelTextComponent",
			field: "alpha",
			values: [0.0, 1.0],
			easing: EasingFunctions.easeInOut,
			useUnadjustedFrameTime: true,
		}
	}
	*/
]};

var preIntroJailCentered1 = { extend: introJailCenteredBase, components: [
], children: [
	preIntroJail1,
]};

var preIntroJailCentered2 = { extend: introJailCenteredBase, components: [
], children: [
	preIntroJail2,
]};

var introJailCentered1 = { extend: introJailCenteredBase, components: [
], children: [
	introJail1,
]};

var introJailCentered2 = { extend: introJailCenteredBase, components: [
], children: [
	introJail2,
]};

var introJailCentered3 = { extend: introJailCenteredBase, components: [
], children: [
	introJail3,
]};

var introJailCentered4 = { extend: introJailCenteredBase, components: [
], children: [
	introJail4,
]};

var introJailCentered5 = { extend: introJailCenteredBase, components: [
], children: [
	introJail5,
]};

var introJailCentered6 = { extend: introJailCenteredBase, components: [
], children: [
	introJail6,
]};

var introJailCenteredEnd = { extend: introJailCenteredBase, components: [
], children: [
	introJailEnd,
]};

//OUTRO FROM KNOX

var outroPolaroid1Picture = { extend: introPolaroid1Picture, components: [
	{ 
		c: SpriteComponent,
		d: { 
			defaultAnimationName: "outroHideout",
		}
	},
]};

var outroPolaroid2Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "outroNixontelly",}},
]};

var outroPolaroid3Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "outroGoingOutWithGold",}},
]};

var outroPolaroid4Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "outroMeetingNixon",}},
]};

var outroPolaroid5Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "outroGivingKeys",}},
]};

var outroPolaroid6Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "outroSayNixon",}},
]};

var outroPolaroid7Picture = { extend: introPolaroid1Picture, components: [
	{ c: SpriteComponent, d: { defaultAnimationName: "outroCrook",}},
]};

var outroPolaroid1 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
		}
	},
], children: [
	outroPolaroid1Picture,
]};

var outroPolaroid2 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
		}
	},
], children: [
	outroPolaroid2Picture,
]};

var outroPolaroid3 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
			x: 300,
		}
	},
], children: [
	outroPolaroid3Picture,
]};

var outroPolaroid4 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
			x: 300,
		}
	},
], children: [
	outroPolaroid4Picture,
]};

var outroPolaroid5 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
			x: 300,
		}
	},
], children: [
	outroPolaroid5Picture,
]};

var outroPolaroid6 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
			x: 300,
		}
	},
], children: [
	outroPolaroid6Picture,
]};

var outroPolaroid7 = { extend: introPolaroidBase, components: [
	{
		c: TransformComponent,
		d: {
//			rotation: 0.1,
			x: 300,
		}
	},
], children: [
	outroPolaroid7Picture,
]};

var outroText1 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$outroKnox1",
		}
	},
]};

var outroText2 = { extend: introTextBase, components: [
	{
		c: PixelTextComponent,
		d: {
			text: "$outroKnox2",
			textWrapping: 1000,
		}
	},
]};

var dialogueTextBase = { components: [
	{
		c: TransformComponent,
		d: {
			zIndex: 35,
		}
	},
	{
		c: PixelTextComponent,
		d: {
			text: "$outroKnox3A",
			lineHeight: -40,
			spaceWidth: 10,
			align: TextAlign.center,
			verticalAlign: TextAlignVertical.center,
			spacing: -1,
			textWrapping: 450,
			alpha: 0.01,
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontComic",
				scale: 2 / 4,
				tint: 0xe2b47f,
			}
		}
	},
	{
		c: TweenerComponent,
		d: {
			duration: 4,
			component: "PixelTextComponent",
			field: "alpha",
			values: [0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
			easing: EasingFunctions.linear,
			useUnadjustedFrameTime: true,
			_getFirstValueFromTarget: true,
		}
	}
]};

var dialogueTextLeft = { extend: dialogueTextBase, components: [
	{
		c: TransformComponent,
		d: {
			x: -400,
		}
	},
]};

var dialogueTextMiddle = { extend: dialogueTextBase, components: [
	{
		c: TransformComponent,
		d: {
			x: -300,
		}
	},
]};

var dialogueTextMiddleNixon = { extend: dialogueTextBase, components: [
	{
		c: TransformComponent,
		d: {
			x: -300,
		}
	},
	{
		c: PixelTextComponent,
		d: {
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontComic",
				scale: 2 / 4,
				tint: 0x868683,
			}
		}
	},
]};

var dialogueTextRight = { extend: dialogueTextBase, components: [
	{
		c: TransformComponent,
		d: {
			x: -200,
		}
	},
]};

var dialogueTextRightNixon = { extend: dialogueTextBase, components: [
	{
		c: TransformComponent,
		d: {
			x: -200,
		}
	},
	{
		c: PixelTextComponent,
		d: {
			fontDefinition: {
				layer: LayerDefinitions.LAYER_UI,
				sheet: "ui_fontComic",
				scale: 2 / 4,
				tint: 0x868683,
			}
		}
	},
]};

var dialogue3A = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: -200,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3A", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue3B = { extend: dialogueTextRight, components: [
	{ c: TransformComponent,d: { y: -130,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3B", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue3C = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: -60,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3C", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue3D = { extend: dialogueTextRight, components: [
	{ c: TransformComponent,d: { y: 10,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3D", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue3E = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: 80,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3E", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue3F = { extend: dialogueTextRight, components: [
	{ c: TransformComponent,d: { y: 150,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3F", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue3G = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: 220,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox3G", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue4A = { extend: dialogueTextRightNixon, components: [
	{ c: TransformComponent,d: { y: -200,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox4A", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue4B = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: -130,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox4B", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue4C = { extend: dialogueTextRightNixon, components: [
	{ c: TransformComponent,d: { y: -60,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox4C", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue4D = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: 10,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox4D", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue4E = { extend: dialogueTextRightNixon, components: [
	{ c: TransformComponent,d: { y: 80,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox4E", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue5A = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: -200,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox5A", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue5B = { extend: dialogueTextRightNixon, components: [
	{ c: TransformComponent,d: { y: -130,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox5B", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue5C = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: -60,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox5C", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue5D = { extend: dialogueTextRightNixon, components: [
	{ c: TransformComponent,d: { y: 10,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox5D", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue5E = { extend: dialogueTextLeft, components: [
	{ c: TransformComponent,d: { y: 80,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox5E", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue5F = { extend: dialogueTextRightNixon, components: [
	{ c: TransformComponent,d: { y: 150,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox5F", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue6A = { extend: dialogueTextMiddle, components: [
	{ c: TransformComponent,d: { y: 0,}},
	{ c: PixelTextComponent,d: { text: "$outroKnox6A", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var dialogue6B = { extend: dialogueTextMiddleNixon, components: [
	{ c: TransformComponent,d: { y: 0, simpleLocalScale: 2, }},
	{ c: PixelTextComponent,d: { text: "$outroKnox6B", alpha: 0.01, }},
	{ c: TweenerComponent,d: { values: [0.01, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],}}
]};

var outroKnox1 = { extend: introJailBase, components: [
], children: [
	outroPolaroid1,
	outroText1,
]};

var outroKnox2 = { extend: introJailBase, components: [
], children: [
	outroPolaroid2,
	outroText2,
]};

var outroKnox3 = { extend: introJailBaseLong, components: [
], children: [
	outroPolaroid3,
//	introTextBase,
	dialogue3A,
	dialogue3B,
	dialogue3C,
	dialogue3D,
	dialogue3E,
//	dialogue3F,
//	dialogue3G,
]};

var x1b = { components: [
		{
		c: TransformComponent,
		d: {
			x:400,
			y:400,
		}
	},
], children: [
	outroKnox3,
//	introTextBase,
]};

var x1 = { components: [
], children: [
	x1b,
//	introTextBase,
]};

var outroKnox4 = { extend: introJailBaseLong, components: [
], children: [
	outroPolaroid4,
	dialogue4A,
	dialogue4B,
	dialogue4C,
	dialogue4D,
	dialogue4E,
//	introTextBase,
]};

var outroKnox5 = { extend: introJailBaseLong, components: [
], children: [
	outroPolaroid5,
	dialogue5A,
	dialogue5B,
	dialogue5C,
	dialogue5D,
	dialogue5E,
	dialogue5F,
//	introTextBase,
]};

var outroKnox6 = { extend: introJailBase, components: [
], children: [
	outroPolaroid6,
	dialogue6A,
//	introTextBase,
]};

var outroKnox7 = { extend: introJailBase, components: [
], children: [
	outroPolaroid7,
	dialogue6B,
//	introTextBase,
]};

var outroKnoxCentered1 = { extend: introJailCenteredBase, components: [
], children: [
//5s
	outroKnox1,
]};

var outroKnoxCentered2 = { extend: introJailCenteredBase, components: [
], children: [
	outroKnox2,
]};

var outroKnoxCentered3 = { extend: introJailCenteredBase, components: [
], children: [
//15s
	outroKnox3,
]};

var outroKnoxCentered4 = { extend: introJailCenteredBase, components: [
], children: [
	outroKnox4,
]};

var outroKnoxCentered5 = { extend: introJailCenteredBase, components: [
], children: [
	outroKnox5,
]};

var outroKnoxCentered6 = { extend: introJailCenteredBase, components: [
], children: [
	outroKnox6,
]};

var audioFinalScore = { components: [
	{
		c: AudioSourceComponent,
		d: {
			autoPlay: "musicFinalScore",
		}
	},
	{
		c: TransformComponent,
	},
]};

var audioFinalScoreSpawner = { components: [
	{
		c: TransformComponent,
	},
	{
		c: SpawnerComponent,
		d: {
			entityDefinitions: ["audioFinalScore"],
			//spawnOnFirstFrame: false,
			//maxInWorld: 5,
			total: 1,
		}
	},
]};

var outroKnoxCentered7 = { extend: introJailCenteredBase, components: [
], children: [
	outroKnox7,
	audioFinalScoreSpawner,
]};