------------------------------------------------Variables------------------------------------------------

require( "package/leveldesign/ld_variables_define.lua" );
DebugOut( "create objects displayed in the shop (file : package/leveldesign/ld_shop.lua)" );

------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------
----------------------------Shop Background------------------------------------
-- layer attribute specifies the position of an image compared with the others
-------------------------------------------------------------------------------

ShopObject
{
	name  = "SD_shop_background",
	Image
	{
		file = "backgrounds/shop/shop_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/shop_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/shop_start",
		minimum_percent = 0,
	},

	positionX = 0,
	positionY = 0,
	has_fx = false,
	layer = 6,
}

ShopObject
{
	name  = "SD_shop_background_left",
	Image
	{
		file = "backgrounds/shop/shop_end_left",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/shop_middle_left",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/shop_start_left",
		minimum_percent = 0,
	},
	positionX = -596,
	positionY = 0,
	has_fx = false,
	layer = 6,
}

ShopObject
{
	name  = "SD_shop_background_right",
	Image
	{
		file = "backgrounds/shop/shop_end_right",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/shop_middle_right",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/shop_start_right",
		minimum_percent = 0,
	},
	positionX = 596,
	positionY = 0,
	has_fx = false,
	layer = 6,
}
-------------------------------------------------------------------------------
------------------------------ ShopObjects ------------------------------------
-------------------------------------------------------------------------------
ShopObject
{
	name  = "SD_boule",
	Image
	{
		file = "backgrounds/shop/boule_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/boule_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/boule_01_start",
		minimum_percent = 0,
	},
	
	Position
	{
		positionX = - 459,
		positionY = 165,
		minimum_percent = G_percentage_shop_end,
	},
	Position
	{
		positionX = 285,
		positionY = 338,
		minimum_percent = G_percentage_shop_middle,
	},
	Position
	{
		positionX = -100,
		positionY = 257,
		minimum_percent = 0,
	},
	visible = false,
    layer = 7,
}

ShopObject
{
	name  = "SD_lampion",
	Image
	{
		file = "backgrounds/shop/lampion_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/lampion_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/lampion_01_start",
		minimum_percent = 0,
	},
	positionX = -229,
	positionY = -284,
	visible = false,
    layer = 7,
}

ShopObject
{
	name  = "SD_mapmonde",
	Image
	{
		file = "backgrounds/shop/mapemonde_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/mapemonde_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/mapemonde_01_start",
		minimum_percent = 0,
	},
	
	Position
	{
		positionX = 410,
		positionY = 176,
		minimum_percent = G_percentage_shop_end,
	},
	Position
	{
		positionX = 421,
		positionY = 187,
		minimum_percent = G_percentage_shop_middle,
	},
	Position
	{
		positionX = 29,
		positionY = 157,
		minimum_percent = 0,
	},

	visible = false,
    layer = 7,
}

ShopObject
{
	name  = "SD_masque",
	Image
	{
		file = "backgrounds/shop/masque_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/masque_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/masque_01_start",
		minimum_percent = 0,
	},
	
	Position
	{
		positionX = 233,
		positionY = 247,
		minimum_percent = G_percentage_shop_end,
	},
	Position
	{
		positionX = 291,
		positionY = 194,
		minimum_percent = 0,
	},
	
	visible = false,
    layer = 7,
}

ShopObject
{
	name  = "SD_fleur1",
	Image
	{
		file = "backgrounds/shop/arbre1_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/arbre1_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/arbre1_01_start",
		minimum_percent = 0,
	},
	positionX = -385,
	positionY = 25,
	visible = false,
    layer = 7,
}

ShopObject
{
	name  = "SD_fleur2",
	Image
	{
		file = "backgrounds/shop/arbre2_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/arbre2_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/arbre2_01_start",
		minimum_percent = 0,
	},
	positionX =  56,
	positionY = -47,
	visible = false,
	layer = 7,
}

ShopObject
{
	name  = "SD_fleur3",
	Image
	{
		file = "backgrounds/shop/arbre3_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/arbre3_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/arbre3_01_start",
		minimum_percent = 0,
	},
	
	Position
	{
		positionX = -342,
		positionY = 281,
		minimum_percent = G_percentage_shop_end,
	},
	Position
	{
		positionX = 226,
		positionY = 191,
		minimum_percent = 0,
	},

	visible = false,
	layer = 7,
}

ShopObject
{
	name  = "SD_livre",
	Image
	{
		file = "backgrounds/shop/livres_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/livres_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/livres_01_start",
		minimum_percent = 0,
	},
	positionX = -32,
	positionY = -187,
	visible = false,
	layer = 7,
}

ShopObject
{
	name  = "SD_mirroir",
	Image
	{
		file = "backgrounds/shop/miroir_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/miroir_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/miroir_01_start",
		minimum_percent = 0,
	},
	
	Position
	{
		positionX = 304,
		positionY = 16,
		minimum_percent = G_percentage_shop_end,
	},
	Position
	{
		positionX = 236,
		positionY = -38,
		minimum_percent = 0,
	},
	
	visible = false,
	layer = 7,
}

ShopObject
{
	name  = "SD_instrument",
	Image
	{
		file = "backgrounds/shop/violon_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/violon_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/violon_01_start",
		minimum_percent = 0,
	},
	
	Position
	{
		positionX = -87,
		positionY = 245,
		minimum_percent = G_percentage_shop_middle,
	},
	Position
	{
		positionX = 356,
		positionY = 103,
		minimum_percent = 0,
	},

	visible = false,
	layer = 7,
}

ShopObject
{
	name  = "SD_confiture",
	Image
	{
		file = "backgrounds/shop/pots_03_end",
		minimum_percent = G_percentage_shop_end,
	},
	Image
	{
		file = "backgrounds/shop/pots_02_middle",
		minimum_percent = G_percentage_shop_middle,
	},
	Image
	{
		file = "backgrounds/shop/pots_01_start",
		minimum_percent = 0,
	},
	positionX = -60,
	positionY = -112,
	visible = false,
	layer = 7,
}

