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

MakeState{
	type = "StateCredits",
	
	credits = {
		"<i>Executive Producer</i><br>"..
		"<font size='30'>Alfredo Chaves</font><br><br>"..
		"<i>Producer</i><br>"..
		"<font size='30'>Traie Payne</font>",
		
		"<i>Game Design</i><br>"..
		"<font size='30'>Sebastián Hernández</font>",
		
		"<i>Lead Programmer</i><br>"..
		"<font size='30'>Santiago Burbano</font>",
		
		"<i>Programming</i><br>"..
		"<font size='30'>Sebastián Bermeo</font><br>"..
		"<font size='30'>Pedro Mancheno</font><br>"..
		"<font size='30'>Juan Carlos Pazmiño</font>",

		"<i>Technical Programming-Art</i><br>"..
		"<font size='30'>Fabián Smith</font>",

		"<i>Art Director</i><br>"..
		"<font size='30'>Wilo Ayllon</font>",

		"<i>Art</i><br>"..
		"<font size='30'>David Cárdenas</font><br>"..
		"<font size='30'>Santiago Valdivieso</font>",

		"<i>Animation</i><br>"..
		"<font size='30'>David Cárdenas</font><br>"..
		"<font size='30'>Juan Carlos Flores</font><br>"..
		"<font size='30'>Daniel Pazmiño</font>",

		"<i>Music and Sound Effects</i><br>"..
		"<font size='30'>Mauricio Maldonado</font>",

		"<i>Quality Assurance</i><br>"..
		"<font size='30'>Gonzalo Calahorrano</font>",

		"<i>Special Thanks</i><br>"..
		"<font size='26'>Jon Atkinson</font><br>"..
		"<font size='26'>Pedro Bolaños</font><br>"..
		"<font size='26'>Anahi Cárdenas</font><br>"..
		"<font size='26'>Johana Coba</font><br>"..
		"<font size='26'>Azucena Davila</font><br>"..
		"<font size='26'>Amelia Lagla</font><br>"..
		"<font size='26'>Ivan Mancheno</font><br>"..
		"<font size='26'>Amón-Ra</font><br>"..
		"<font size='26'>Alberto Schiannini</font><br>"..
		"<font size='26'>Jeromie Wiliams</font>",

		"<font size='30'>This game was developed</font><br><br>"..
		"<font size='30'>using Playground SDK</font><br><br>"..
		"<font size='30'>and incorporates portions</font><br><br>"..
		"<font size='30'>of Playground SDK</font><br><br>"..
		"<font size='30'>� 2009 PlayFirst, Inc.</font><br><br>",
		
		"<font size='30'>2009, Blue Lizard Games Inc.</font>",
	},
	
	BlgBitmap{
		image = "common/backgrounds/alpha_black",
		name = "mainmenuBG",
		center = {x = 0, y = 0},
	},
		
	BlgMovieClip{
		transformMatrix = {x = 150, y = 142},
		
		SetStyle(WindowBGStyle),
		BlgBitmap {
			image="common/backgrounds/box_mainmenu",
			center = {x = 0, y = 0},
			transformMatrix = {x = 157, y = 32},
		},
		
--~ 		SetStyle(WindowBGStyle),
--~ 		BlgMovieClip {
--~ 			name = "back",
--~ 			
--~ 			BlgBitmap{
--~ 				image = "common/backgrounds/bg_options",
--~ 				name = "optionsDialog",
--~ 				center = {x = 0, y = 0},
--~ 				transformMatrix = {x = 110, y = 0},
--~ 			},
--~ 		},
--~ 		
		SetStyle(WindowLogoStyle),
		BlgMovieClip{
			SetStyle(LogoCircleStyle),
			repeatCount = -1,
			BlgBitmap{
				image = "common/backgrounds/logo_bg",
				name = "logo",
				center = {x = 0, y = 0},
				transformMatrix = {x = 19, y = 112},
			},
			SetStyle(nil),
			BlgBitmap{
				image = "common/backgrounds/logo_menu",
				name = "logo2",
				center = {x = 80, y = 32},
				playAnim = "DoAnim",
			},
		},
		
		SetStyle(nil),
		BlgMovieClip{
			autoplay = false,
			visible = false,
			
			commands = {
				[240] = function()
						NextCredit();
					end,
			},
			
			BlgText {
				name = "creditText",
				label = "",
				w = 313,
				h = 320,
				flags = kHAlignCenter + kVAlignCenter,
				transformMatrix = {x = 239, y = 41},
				font = {
					"arial.mvec",
					22,
					DefaultColor,
				},
				animation = {
					transformationPoint = {x = 0.5, y = 0.5},
					keyframes = {
						{
							index = 0,
							alpha = 0.0,
							tweens = {
								{
									type = "SimpleEase",
									target = TWEEN_ALL,
									ease = 0,
								},
							},
						},
						{
							index = 30,
							alpha = 1.0,
						},
						{
							index = 210,
							alpha = 1.0,
							tweens = {
								{
									type = "SimpleEase",
									target = TWEEN_ALL,
									ease = 0,
								},
							},
						},
						{
							index = 240,
							alpha = 0,
						},
					},
				},
			},
		},

		SetStyle(Button1Style),
		BlgButton{
			name = "backBtn",
			transformMatrix = {x = 430, y = 328},
			label = "back",
--~ 			font = {
--~ 				standardFont,
--~ 				16,
--~ 				Color(255, 255, 255),
--~ 			},
			upState = {
					bitmap = "common/buttons/btn_default",
			},
			overState = {
				bitmap = "common/buttons/btn_rollover",
			},
			downState = {
				bitmap = "common/buttons/btn_pushed",
				sound = kDefaultButtonSound,
			},

			command =
				function()
					PopState();
				end
		},
	},
}
