Example #1
0
        /// <summary>
        /// LoadContent sert à créer toutes les cartes de jeu, et relie les fichiers avec leur textures
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            Tiles.Content = Content;
            map1.Generate(new int[,]{ // créé une map avec les tiles

                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,232,233,234,235,236,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,237,238,239,240,241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,242,243,244,245,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,247,248,249,250,251,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,252,253,254,255,256,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,257,258,259,260,261,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,262,263,267,265,266,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},

            }, 32);

            map2.Generate(new int[,]{// créé une map avec les tiles
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,232,233,234,235,236,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,237,238,239,240,241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,268,269,270,271,242,243,244,245,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,272,273,274,275,247,248,249,250,251,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,276,277,278,279,252,253,254,255,256,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,280,281,282,283,257,258,259,260,261,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,262,263,264,265,266,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
                {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            }, 32);

            map3.Generate(new int[,]{// créé une map avec les tiles
              {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,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2,2,2,2,2,2,2,2,73,74,94,40,41,42,43,44,40,41,42,43,44,40,41,42,136,137,138,139,140,43,44,40,41,42,43,44,40,41,42,43,44,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,75,76,95,45,46,47,48,49,45,46,47,48,49,45,46,47,141,142,143,144,145,48,49,45,46,47,48,49,45,46,47,48,49,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,77,78,96,50,51,52,53,54,50,51,52,53,54,50,51,52,146,147,148,149,150,53,54,50,51,52,53,54,50,51,52,53,54,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,73,74,94,40,41,42,43,44,40,41,42,43,44,40,41,42,136,137,138,139,140,43,44,40,41,42,43,44,40,41,42,43,44,40,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,75,76,95,45,46,47,48,49,45,46,47,48,49,45,46,47,141,142,143,144,145,48,49,45,46,47,48,49,45,46,47,48,49,45,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,77,78,96,50,51,52,53,54,50,51,52,53,54,50,51,52,146,147,148,149,150,53,54,50,51,52,53,54,50,51,52,53,54,50,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,284,285,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,286,287,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,117,118,119,115,116,117,118,119,151,152,153,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,151,152,153,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,161,162,115,116,117,118,119,133,61,62,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,122,123,124,120,121,122,123,124,154,155,156,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,154,155,156,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,163,164,165,120,121,122,123,124,134,63,64,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,127,128,129,125,126,127,128,129,157,158,159,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,157,158,159,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,166,167,168,125,126,127,128,129,135,65,66,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,118,119,151,152,153,0,0,0,0,0,0,0,0,0,160,161,162,115,133,61,62,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,123,124,154,155,156,0,0,0,0,0,0,0,0,0,163,164,165,134,120,63,64,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,128,129,157,158,159,0,0,0,0,0,0,0,0,0,166,167,168,125,135,65,66,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,179,180,40,41,42,43,44,40,41,42,43,44,40,41,42,43,44,40,41,42,43,44,40,41,169,170,171,0,0,0,0,0,0,0,0,0,178,179,180,40,41,42,43,44,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,181,182,183,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,172,173,174,0,0,0,0,0,0,0,0,0,181,182,183,45,46,47,48,49,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,185,186,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,175,176,177,0,0,0,0,0,0,0,0,0,184,185,186,50,51,52,53,54,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,286,287,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,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,286,287,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,117,118,119,115,116,133,61,62,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,122,123,124,120,121,134,63,64,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,135,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,125,126,65,66,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            }, 32);

            map5.Generate(new int[,]{// créé une map avec les tiles

            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,73,74,94,40,41,42,43,44,40,41,42,43,44,40,41,136,137,138,139,140,40,41,42,43,44,40,41,42,43,44,45,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,75,76,95,45,46,47,48,49,45,46,47,48,49,45,46,141,142,143,144,145,45,46,47,48,49,45,46,47,48,49,45,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,77,78,96,50,51,52,53,54,50,51,52,53,54,50,51,146,147,148,149,150,50,51,52,53,54,50,51,52,53,54,50,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,284,285,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,284,285,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,286,287,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,286,287,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,284,285,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,284,285,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,286,287,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,286,287,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,117,118,119,115,116,117,118,119,115,116,187,188,189,190,191,117,118,119,115,116,117,118,119,115,116,117,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,122,123,124,120,121,122,123,124,120,121,192,193,194,195,196,122,123,124,120,121,122,123,124,120,121,122,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,127,128,129,125,126,127,128,129,125,126,197,198,199,200,201,127,128,129,125,126,127,128,129,125,126,127,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
             }, 32);

            map4.Generate(new int[,]{// créé une map avec les tiles

            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,73,74,94,40,41,42,43,44,40,41,42,43,44,40,41,202,203,204,205,206,40,41,42,43,44,40,41,42,43,44,45,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,75,76,95,45,46,47,48,49,45,46,47,48,49,45,46,207,208,209,210,211,45,46,47,48,49,45,46,47,48,49,45,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,77,78,96,50,51,52,53,54,50,51,52,53,54,50,51,212,213,214,215,216,50,51,52,53,54,50,51,52,53,54,50,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,284,285,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,284,285,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,286,287,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,286,287,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,284,285,284,285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,284,285,284,285,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,286,287,286,287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286,287,286,287,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,117,118,119,115,116,117,118,119,115,116,217,218,219,220,221,117,118,119,115,116,117,118,119,115,116,117,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,122,123,124,120,121,122,123,124,120,121,222,223,224,225,226,122,123,124,120,121,122,123,124,120,121,122,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,127,128,129,125,126,127,128,129,125,126,227,228,229,230,231,127,128,129,125,126,127,128,129,125,126,127,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
             }, 32);

            map6.Generate(new int[,]{// créé une map avec les tiles

            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,73,74,94,40,41,42,43,44,40,41,42,43,44,40,41,42,43,40,41,42,43,44,40,41,42,43,44,40,41,42,43,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,75,76,95,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,77,78,96,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,284,285,0,0,0,0,284,285,0,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,286,287,0,0,0,0,286,287,0,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,117,118,119,115,116,117,118,119,115,116,187,188,189,190,191,117,118,119,115,116,117,118,119,115,116,117,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,122,123,124,120,121,122,123,124,120,121,192,193,194,195,196,122,123,124,120,121,122,123,124,120,121,122,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,127,128,129,125,126,127,128,129,125,126,197,198,199,200,201,127,128,129,125,126,127,128,129,125,126,127,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
             }, 32);

            map6.Generate(new int[,]{// créé une map avec les tiles

            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,73,74,94,40,41,42,43,44,40,41,42,43,44,40,41,42,43,40,41,42,43,44,40,41,42,43,44,40,41,42,43,97,55,56,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,75,76,95,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,48,49,45,46,47,98,57,58,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,77,78,96,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,53,54,50,51,52,99,59,60,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,0,0,0,0,0,0,0,0,0,0,284,285,0,288,289,290,0,284,285,0,0,0,0,0,0,0,0,0,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,0,0,0,0,0,0,0,0,0,0,286,287,0,291,292,293,0,286,287,0,0,0,0,0,0,0,0,0,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,0,0,0,0,0,0,0,0,0,0,0,0,0,294,295,296,0,0,0,0,0,0,0,0,0,0,0,0,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,79,80,81,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,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,82,83,84,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,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,85,86,87,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,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,88,89,90,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,109,110,111,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,91,92,93,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,112,113,114,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,130,131,132,115,116,117,118,119,115,116,117,118,119,115,116,187,188,189,190,191,117,118,119,115,116,117,118,119,115,116,117,100,101,102,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,67,68,69,120,121,122,123,124,120,121,122,123,124,120,121,192,193,194,195,196,122,123,124,120,121,122,123,124,120,121,122,103,104,105,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,70,71,72,125,126,127,128,129,125,126,127,128,129,125,126,197,198,199,200,201,127,128,129,125,126,127,128,129,125,126,127,106,107,108,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
            {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,},
             }, 32);

            _bossSound = Content.Load<SoundEffect>("bossSound");
            _bossBattle = Content.Load<Song>("BossBattle");
            _font = Content.Load<SpriteFont>("mapolice");
            fullheartTexture = Content.Load<Texture2D>("FULLcoeur");
            emptyheartTexture = Content.Load<Texture2D>("VIDEcoeur");
            _gameoverScreen = Content.Load<Texture2D>("GameOver");
            heroTexture = Content.Load<Texture2D>("spritepixel");
            background = Content.Load<Texture2D>("Chambre BG");
            clownTexture = Content.Load<Texture2D>("clown");
            bossTexture = Content.Load<Texture2D>("Boss");
            singeTexture = Content.Load<Texture2D>("monkey");
            _EsterStudioVide = Content.Load<Texture2D>("EsterStudioVide");
            _loadingScreen1 = Content.Load<Texture2D>("EsterStudio");
            _uhriStart = Content.Load<Texture2D>("Uhri");
            _backgroundCave = Content.Load<Texture2D>("BackgroundCave1");
            _backgroundCave2 = Content.Load<Texture2D>("BackgroundCave2");
            _backgroundCave3 = Content.Load<Texture2D>("BackgroundCave3");
            _backgroundCave4 = Content.Load<Texture2D>("BackgroundCave4");
            _finish = Content.Load<Texture2D>("finish");
            _pause = Content.Load<Texture2D>("Pause");
            _fondRoom = Content.Load<Texture2D>("FondRoom");
            _thunderWhite = Content.Load<Texture2D>("thunderScreen");
            _thunderBlack = Content.Load<Texture2D>("thunderScreen2");
            hero = new Hero(heroTexture, 10, new Vector2(0, 41));
            clown = new Clown(clownTexture, 5, new Vector2(0, 41));
            boss = new Boss(bossTexture, new Vector2(824, 320));
            singe = new Monkey(singeTexture, 4, new Vector2(0, 0));
            hero.position = new Vector2(723, 540);
            clown.position = new Vector2(750, 400);
            singe.position = new Vector2(1026, 400);
            _thunderSound = Content.Load<SoundEffect>("thundercrash");
            _exhaustedSound = Content.Load<SoundEffect>("exhausted");
            _esterVoice = Content.Load<SoundEffect>("ester");
            _bulletSound = Content.Load<SoundEffect>("bulletSon");
            _hurtSound = Content.Load<SoundEffect>("hurt");
            _gameoverSound = Content.Load<SoundEffect>("gameoverSound");
            _pauseSound = Content.Load<SoundEffect>("spause");
            _attackSound = Content.Load<SoundEffect>("attack");
            _startSound = Content.Load<SoundEffect>("PressStart");
            _syojapallotSound = Content.Load<SoundEffect>("syojapallot");
            _narriSound = Content.Load<SoundEffect>("narri");
            _doorSound = Content.Load<SoundEffect>("door");
            _gameoverSong = Content.Load<Song>("gameoverSong");
            _chambreSong = Content.Load<Song>("Chambre");
            _caveSong = Content.Load<Song>("Cave");
            _donjonSong = Content.Load<Song>("Donjon");
            vie = new Life(fullheartTexture, emptyheartTexture, 3, 0);
        }
Example #2
0
        /// <summary>
        /// Actualise toutes les informations en temps, gère les passage des différents gamestates (c'est à dire les différentes salles), 
        /// initialise toutes les fonctions relatives au héro et aux ennemis
        /// </summary>
        /// <param name="gameTime">temps de jeu</param>
        protected override void Update(GameTime gameTime)
        {
            _keyboardState = Keyboard.GetState();
            _mouseState = Mouse.GetState();

            // Allows the game to exit
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
                this.Exit();

            switch (CurrentGameState)
            {
                case GameState.pre_etat:
                    {
                        if (gameTime.TotalGameTime.TotalSeconds >= 1)
                        {
                            _esterVoice.Play(volumeSoundEffect, 0.0f, 0.0f);
                            CurrentGameState = GameState.ester_Studio;
                        }
                    }
                    break;

                case GameState.ester_Studio: // affiche un écran gris
                    {
                        camera.Update(gameTime, hero);

                        if (gameTime.TotalGameTime.TotalSeconds >= 5)
                        {
                            timeMenu = 0f;
                            CurrentGameState = GameState.loadingScreen;
                        }
                        if (_keyboardState.IsKeyDown(Keys.Escape))
                        { this.Exit(); }
                    }
                    break;

                case GameState.loadingScreen: // affiche l'écran de démarrage
                    {

                        hero.Update(gameTime);

                        hero.position.X = 723;
                        hero.position.Y = 540;
                        camera.Update(gameTime, hero);

                        vie = new Life(fullheartTexture, emptyheartTexture, buff.LIFEFULL, 0);
                        timeMenu += (float)gameTime.ElapsedGameTime.TotalSeconds;
                        Muted();

                        if (_keyboardState.IsKeyDown(Keys.F1))
                        {
                            if (this.graphics.IsFullScreen == true)
                            {
                                this.graphics.IsFullScreen = false;
                                this.graphics.ApplyChanges();
                            }
                            else this.graphics.IsFullScreen = true;
                            this.graphics.ApplyChanges();
                        }

                        if (Keyboard.GetState().GetPressedKeys().Length > 0 && _keyboardState.IsKeyUp(Keys.Escape) && _keyboardState.IsKeyUp(Keys.F1)
                            && isReady == false && timeMenu > 0.1f && Keyboard.GetState().IsKeyUp(Keys.M))
                        {

                            _startSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            timeMenu = 0.1f;
                            isReady = true;
                        }

                        if (timeMenu >= 2.0f && isReady)
                        {
                            if (isFirst == false)
                            {
                                MediaPlayer.Play(_chambreSong);
                                CurrentGameState = GameState.chambre;
                                messages.Add(new DisplayMessage("Il y a l'air d'avoir quelque chose de bizarre sous le lit, pousse le en appuyant sur B !",
              TimeSpan.FromSeconds(3.0), new Vector2(325, 630), Color.White));
                                isReady = false;
                                timeMenu = 0f;
                            }
                            if (isFirst == true)
                            {
                                MediaPlayer.Play(_chambreSong);
                                CurrentGameState = GameState.chambre2;
                                isReady = false;
                                timeMenu = 0f;
                            }
                        }
                        if (_keyboardState.IsKeyDown(Keys.Escape))
                        {
                            this.Exit();
                            MediaPlayer.Stop();
                        }
                        pastKey = Keyboard.GetState();
                    }
                    break;

                case GameState.chambre:  // affiche la chambre
                    {
                        UpdateMessages(gameTime);
                        camera.Update(gameTime, hero);
                        EndHurt(gameTime);
                        hero.HandleInput();
                        hero.Update(gameTime);
                        keyHero();
                        Exhausted();
                        foreach (CollisionTiles tile in map1.CollisionTiles)
                            hero.Collision(tile.Rectangle, map1.Width, map1.Heigth);
                        if ((hero.position.X > 325 && hero.position.X < 485) && (hero.position.Y > 388 && hero.position.Y < 430))
                            isNextToBed = true;

                        if (_keyboardState.IsKeyDown(Keys.B) && isNextToBed)
                        {
                            timeTransition = 0f;
                            _thunderSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            CurrentGameState = GameState.transitionchambre;
                            isNextToBed = false;
                            for (int i = 0; i < messages.Count; i++)
                                messages.RemoveAt(i);
                        }
                        GameOver();

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }
                        pastKey = Keyboard.GetState();
                        UpdateBullets();
                        base.Update(gameTime);
                    }
                    break;

                case GameState.transitionchambre:
                    {
                        timeTransition += (float)gameTime.ElapsedGameTime.TotalSeconds;
                        if (timeTransition >= 0.5f)
                            CurrentGameState = GameState.chambre2;
                    }
                    break;

                case GameState.chambre2: // chambre actualisé, le lit est bougé et un trou apparaît
                    {
                        isFirst = true;
                        camera.Update(gameTime, hero);
                        hero.HandleInput();
                        hero.Update(gameTime);
                        EndHurt(gameTime);
                        keyHero();
                        GameOver();
                        Exhausted();
                        foreach (CollisionTiles tile in map2.CollisionTiles)
                            hero.Collision(tile.Rectangle, map2.Width, map2.Heigth);
                        Rectangle Rect = new Rectangle(325, 224, 160, 160);
                        if (hero.hit.Intersects(Rect))
                        {
                            _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            MediaPlayer.Play(_caveSong);
                            CurrentGameState = GameState.cave;
                            hero.position.X = 1230;
                            hero.position.Y = 512;
                        }

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }
                        pastKey = Keyboard.GetState();
                        UpdateBullets();

                        base.Update(gameTime);
                    }
                    break;

                case GameState.cave: // gère la caven créé les collisions de la cave
                    {

                        camera.Update(gameTime, hero);
                        hero.HandleInput();
                        hero.Update(gameTime);
                        EndHurt(gameTime);
                        keyHero();
                        GameOver();
                        Exhausted();
                        Rectangle Rect = new Rectangle(1200, 320, 96, 128);
                        if (hero.hit.Intersects(Rect))
                        {
                            _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            MediaPlayer.Play(_chambreSong);
                            CurrentGameState = GameState.chambre2;
                            hero.position.X = 723;
                            hero.position.Y = 540;
                        }

                        Rectangle Rect2 = new Rectangle(2752, 384, 96, 128);
                        if (hero.hit.Intersects(Rect2))
                        {
                            _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            if (isClean == false)
                            { _syojapallotSound.Play(volumeSoundEffect, 0.0f, 0.0f); }

                            MediaPlayer.Play(_donjonSong);
                            CurrentGameState = GameState.Room1;
                            hero.position.X = 1023;
                            hero.position.Y = 960;
                        }
                        foreach (CollisionTiles tile in map3.CollisionTiles)
                            hero.Colision2(tile.Rectangle, map3.Width, map3.Heigth);

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }
                        pastKey = Keyboard.GetState();
                        UpdateBullets();
                    }
                    break;

                case GameState.Room1: // gère la première salle avec l'apparition du clown et initialise ses fonctions, créé les collisions de la salle
                    {
                        camera.Update(gameTime, hero);
                        hero.HandleInput();
                        hero.Update(gameTime);
                        clown.Update(gameTime, hero);

                        rangedAttackClown();

                        if (hero.hit.Intersects(clown.hit) && hero.isHurt == false && clown.Health > 0)
                            GetHurt();

                        if (hero.hit.Intersects(clown.Hitbox) && hero.isAttacking && clown.clownHurt == false)
                        {
                            timeenemyHurt = 0f;
                            clown.clownHurt = true;
                            clown.Health -= buff.POWERATTACK;
                            if (clown.Health <= 0)
                                isClean = true;
                        }

                        if (clown.clownHurt)
                            timeenemyHurt += (float)gameTime.ElapsedGameTime.TotalSeconds;

                        if (clown.clownHurt && timeenemyHurt > 1.0f)
                            clown.clownHurt = false;

                        if (isClean == true)
                        {

                            Rectangle Rect3 = new Rectangle(1023, 1056, 96, 128);
                            if (hero.hit.Intersects(Rect3))
                            {
                                _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                MediaPlayer.Play(_caveSong);
                                CurrentGameState = GameState.cave;
                                hero.position.X = 2800;
                                hero.position.Y = 300;
                            }

                            Rectangle Rect4 = new Rectangle(1023, 320, 96, 128);
                            if (hero.hit.Intersects(Rect4))
                            {
                                _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                if (isClean1 == false)
                                    _narriSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                CurrentGameState = GameState.Room2;
                                hero.position.X = 1056;
                                hero.position.Y = 960;
                            }
                        }
                        EndHurt(gameTime);
                        keyHero();
                        GameOver();
                        Exhausted();
                        foreach (CollisionTiles tile in map4.CollisionTiles)
                            hero.Colision2(tile.Rectangle, map4.Width, map4.Heigth);
                        foreach (CollisionTiles tile in map4.CollisionTiles)
                            clown.Collision(tile.Rectangle, map4.Width, map4.Heigth);

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }
                        pastKey = Keyboard.GetState();
                        UpdateBullets();
                    }
                    break;

                case GameState.Room2:// gère la deuxième salle avec l'apparition du singe et initialise ses fonctions, créé les collisions de la salle
                    {
                        camera.Update(gameTime, hero);
                        hero.HandleInput();
                        hero.Update(gameTime);
                        singe.Update(gameTime, hero);
                        rangedAttackSinge();
                        rangedAttackHero();

                        if (hero.hit.Intersects(singe.hit) && hero.isHurt == false && singe.Health > 0)
                            GetHurt();

                        if (hero.Hitbox.Intersects(singe.Hitbox) && hero.isAttacking == true && singe.singeHurt == false)
                        {
                            timeenemyHurt = 0f;
                            singe.singeHurt = true;
                            singe.Health -= buff.POWERATTACK;
                            if (singe.Health <= 0)
                                isClean1 = true;
                        }

                        if (singe.singeHurt)
                            timeenemyHurt += (float)gameTime.ElapsedGameTime.TotalSeconds;

                        if (singe.singeHurt && timeenemyHurt > 1.0f)
                            singe.singeHurt = false;

                        EndHurt(gameTime);
                        keyHero();
                        GameOver();
                        Exhausted();
                        foreach (CollisionTiles tile in map4.CollisionTiles)
                            hero.Colision2(tile.Rectangle, map4.Width, map4.Heigth);

                        foreach (CollisionTiles tile in map4.CollisionTiles)
                            singe.Collision(tile.Rectangle, map4.Width, map4.Heigth);

                        if (isClean1 == true)
                        {
                            Rectangle Rect3 = new Rectangle(1023, 1056, 96, 128);
                            if (hero.hit.Intersects(Rect3))
                            {
                                _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                CurrentGameState = GameState.Room1;
                                hero.position.X = 1056;
                                hero.position.Y = 632;
                            }

                            Rectangle Rect4 = new Rectangle(1023, 320, 96, 128);
                            if (hero.hit.Intersects(Rect4))
                            {
                                _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                CurrentGameState = GameState.Room3;
                                messages.Add(new DisplayMessage("Tiens tiens comme on se retrouve !",
                                TimeSpan.FromSeconds(3.0), new Vector2(950, 960), Color.White));
                                _bossSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                MediaPlayer.Play(_bossBattle);
                                hero.position.X = 1056;
                                hero.position.Y = 960;
                            }
                        }

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }

                        pastKey = Keyboard.GetState();
                        UpdateBullets();
                        if (isClean1 == false)
                        {
                            UpdateBullets_monkey();
                            Shoot_monkey(gameTime);
                        }
                        base.Update(gameTime);
                    }
                    break;

                case GameState.Room3:// gère la troisème salle avec l'apparition du boss et initialise ses fonctions, créé les collisions de la salle
                    {
                        camera.Update(gameTime, hero);
                        hero.HandleInput();
                        hero.Update(gameTime);
                        boss.Update(gameTime, hero);

                        rangedAttackBoss();
                        if (hero.hit.Intersects(boss.hitTete) && hero.isHurt == false && hero.isAttacking == false && boss.Health > 0)
                            GetHurt();

                        if (hero.hit.Intersects(boss.hitMain1) && hero.isHurt == false && boss.Health > 0)
                            GetHurt();

                        if (hero.hit.Intersects(boss.hitMain2) && hero.isHurt == false && boss.Health > 0)
                            GetHurt();

                        if (hero.hit.Intersects(boss.hitTete) && hero.isAttacking == true && boss.BossHurt == false)
                        {
                            timeenemyHurt = 0f;
                            boss.BossHurt = true;
                            boss.Health -= buff.POWERATTACK;
                            if (boss.Health <= 0)
                                isClean2 = true;
                        }

                        if (isClean2 == true)
                        {
                            Rectangle Rect3 = new Rectangle(1023, 1056, 96, 128);
                            if (hero.hit.Intersects(Rect3))
                            {
                                _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                MediaPlayer.Play(_donjonSong);
                                CurrentGameState = GameState.Room2;
                                hero.position.X = 1056;
                                hero.position.Y = 632;
                                for (int i = 0; i < messages.Count; i++)
                                    messages.RemoveAt(i);
                            }

                            Rectangle Rect4 = new Rectangle(1023, 320, 96, 128);
                            if (hero.hit.Intersects(Rect4))
                            {
                                _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                                CurrentGameState = GameState.Room4;
                                hero.position.X = 1056;
                                hero.position.Y = 960;
                                for (int i = 0; i < messages.Count; i++)
                                    messages.RemoveAt(i);
                            }
                        }

                        if (boss.BossHurt)
                            timeenemyHurt += (float)gameTime.ElapsedGameTime.TotalSeconds;

                        if (boss.BossHurt && timeenemyHurt > 2.0f)
                            boss.BossHurt = false;

                        EndHurt(gameTime);
                        keyHero();
                        GameOver();
                        Exhausted();

                        foreach (CollisionTiles tile in map4.CollisionTiles)
                            hero.Colision2(tile.Rectangle, map4.Width, map4.Heigth);

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }
                        pastKey = Keyboard.GetState();
                        UpdateBullets();
                        base.Update(gameTime);
                    }
                    break;

                case GameState.Room4:// gère la quatrième (et dernière) salle avec l'apparition du coffre, créé les collisions de la salle
                    {

                        camera.Update(gameTime, hero);
                        hero.HandleInput();
                        hero.Update(gameTime);

                        Rectangle Rect3 = new Rectangle(1023, 1056, 96, 128);
                        if (hero.hit.Intersects(Rect3))
                        {
                            _doorSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            hero.position.X = 1056;
                            hero.position.Y = 632;
                            CurrentGameState = GameState.Room3;
                        }

                        Rectangle Rect4 = new Rectangle(1023, 400, 128, 128);
                        if (hero.hit.Intersects(Rect4))
                        {
                            timeTransition2 = 0f;
                            CurrentGameState = GameState.finish;
                        }

                        EndHurt(gameTime);
                        keyHero();
                        GameOver();
                        Exhausted();

                        foreach (CollisionTiles tile in map4.CollisionTiles)
                            hero.Colision2(tile.Rectangle, map4.Width, map4.Heigth);

                        if (Keyboard.GetState().IsKeyDown(Keys.P) && pastKey.IsKeyUp(Keys.P))
                        {
                            _pauseSound.Play(volumeSoundEffect, 0.0f, 0.0f);
                            OldGameState = CurrentGameState;
                            CurrentGameState = GameState.pause;
                        }
                        pastKey = Keyboard.GetState();
                        UpdateBullets();
                        base.Update(gameTime);
                    }
                    break;

                case GameState.finish: //affiche l'écran de fin de jeu
                    {
                        camera.Update(gameTime, hero);
                        timeTransition2 += (float)gameTime.ElapsedGameTime.TotalSeconds;
                        if (timeTransition2 >= 0.5f)
                        {
                            if (Keyboard.GetState().GetPressedKeys().Length > 0)
                            {
                                this.Exit();
                                MediaPlayer.Stop();
                            }
                        }
                    }
                    break;

                case GameState.gameover: // affiche l'écran de game over
                    {
                        for (int i = 0; i < messages.Count; i++)
                            messages.RemoveAt(i);
                        camera.Update(gameTime, hero);
                        timeGO += (float)gameTime.ElapsedGameTime.TotalSeconds;
                        if (Keyboard.GetState().GetPressedKeys().Length > 0 && timeGO >= 1.0f)
                        {
                            timeGO = 0f;
                            CurrentGameState = GameState.loadingScreen;
                        }
                    }
                    break;

                case GameState.pause:// affiche l'écran de pause
                    {
                        camera.Update(gameTime, hero);
                        Muted();
                        if (Keyboard.GetState().IsKeyDown(Keys.Enter) && pastKey.IsKeyUp(Keys.Enter))
                            CurrentGameState = OldGameState;

                        if (Keyboard.GetState().IsKeyDown(Keys.Escape) && pastKey.IsKeyUp(Keys.Escape))
                        {
                            this.Exit();
                            MediaPlayer.Stop();
                        }
                        pastKey = Keyboard.GetState();

                        if (_keyboardState.IsKeyDown(Keys.F1))
                        {
                            if (this.graphics.IsFullScreen == true)
                            {
                                this.graphics.IsFullScreen = false;
                                this.graphics.ApplyChanges();
                            }
                            else this.graphics.IsFullScreen = true;
                            this.graphics.ApplyChanges();
                        }
                    }
                    break;
            }

            base.Update(gameTime);
        }