Beispiel #1
0
        public override void Initialize()
        {
            int hauteurBouton = RectangleDialogue.Height / (NB_ZONES_DIALOGUE + 1);

            Vector2 PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                                 RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 3) * hauteurBouton);
            BtnDémarrer = new BoutonDeCommande(Game, "Démarrer", NomPoliceDeCaractère, "BoutonNormal", "BoutonEnfoncé", PositionBouton, false, GérerPause);

            PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                                 RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 2) * hauteurBouton);
            BtnPause = new BoutonDeCommande(Game, "Pause", NomPoliceDeCaractère, "BoutonNormal", "BoutonEnfoncé", PositionBouton, true, GérerPause);

            PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                     RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 1) * hauteurBouton);
            BtnInstructions = new BoutonDeCommande(Game, "Instructions", NomPoliceDeCaractère, "BoutonNormal", "BoutonEnfoncé", PositionBouton, true, GérerPause);

            PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                                 RectangleDialogue.Y + NB_ZONES_DIALOGUE * hauteurBouton);
            BtnQuitter = new BoutonDeCommande(Game, "Quitter", NomPoliceDeCaractère, "BoutonNormal", "BoutonEnfoncé", PositionBouton, true, Quitter);

            Game.Components.Add(BtnDémarrer);
            Game.Components.Add(BtnPause);
            Game.Components.Add(BtnInstructions);
            Game.Components.Add(BtnQuitter);
            base.Initialize();
        }
Beispiel #2
0
        public override void Initialize()
        {
            int hauteurBouton = RectangleDestination.Height / (NB_ZONES_DIALOGUE + 1);

            Police = Game.Content.Load <SpriteFont>("Fonts/" + "Arial20");

            Vector2 DimensionBouton = Police.MeasureString("Jouer");
            Vector2 PositionBouton  = new Vector2(RectangleDestination.X + RectangleDestination.Width / 2f, (NB_ZONES_DIALOGUE - 2) * hauteurBouton);

            BtnJouer           = new BoutonDeCommande(Game, "Jouer", "Arial20", "BoutonRouge", "BoutonBleu", PositionBouton, true, Jouer, INTERVALLE_MAJ_STANDARD);
            BtnJouer.DrawOrder = (int)OrdreDraw.AVANT_PLAN;

            DimensionBouton         = Police.MeasureString("Inventaire");
            PositionBouton          = new Vector2(RectangleDestination.X + RectangleDestination.Width / 2f, (NB_ZONES_DIALOGUE - 1) * hauteurBouton);
            BtnInventaire           = new BoutonDeCommande(Game, "Inventaire", "Arial20", "BoutonRouge", "BoutonBleu", PositionBouton, true, Inventaire, INTERVALLE_MAJ_STANDARD);
            BtnInventaire.DrawOrder = (int)OrdreDraw.AVANT_PLAN;

            DimensionBouton      = Police.MeasureString("Quitter");
            PositionBouton       = new Vector2(DimensionBouton.X / 2, Game.Window.ClientBounds.Height - DimensionBouton.Y / 2);
            BtnQuitter           = new BoutonDeCommande(Game, "Quitter", "Arial20", "BoutonRouge", "BoutonBleu", PositionBouton, true, Quitter, INTERVALLE_MAJ_STANDARD);
            BtnQuitter.DrawOrder = (int)OrdreDraw.AVANT_PLAN;

            Game.Components.Add(BtnJouer);
            Game.Components.Add(BtnInventaire);
            Game.Components.Add(BtnQuitter);
        }
 void InitialiserMenu()
 {
     TexteTitre = "Le Bière Pong";
     EnleverBoutonsExistants();
     BoutonJouer = new BoutonDeCommande(Game, "Jouer", "Arial20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, BoutonsJouer);
     ListeBoutonsCommandeMenu.Add(BoutonJouer);
     AjouterNouveauxBoutons();
 }
Beispiel #4
0
 public override void Initialize()
 {
     ArrêterJeu();
     ListeGameComponentsTanksDétruits = new List<GameComponent>();
     ImageArrièrePlan = new ArrièrePlan(Game, "Background Transparent 60");
     ReprendreJeu = new BoutonDeCommande(Game, "Reprendre le jeu", "Arial20", "BoutonNormal", "BoutonEnfoncé", new Vector2(3 * Game.Window.ClientBounds.Width / 8f, 6 * Game.Window.ClientBounds.Height / 10f), true, new FonctionÉvénemtielle(Play));
     BtnRetourMenuPrincipal = new BoutonDeCommande(Game, " X ", "Arial20", "BoutonRougeX", "BoutonBleuX", new Vector2(15f * (Game.Window.ClientBounds.Width / 16f), Game.Window.ClientBounds.Height / 10f), true, new FonctionÉvénemtielle(RetournerMenuPrincipal));
     Game.Components.Add(ImageArrièrePlan);
     Game.Components.Add(ReprendreJeu);
     Game.Components.Add(BtnRetourMenuPrincipal);
     base.Initialize();
 }
 void BoutonsSolo()
 {
     TexteTitre = "Solo";
     EnleverBoutonsExistants();
     BoutonBack = new BoutonDeCommande(Game, "Back", "Arial20", "BoutonBackBleu", "BoutonBackBleuPale", PositionBack, true, BoutonsJouer);
     BoutonHistoire = new BoutonDeCommande(Game, "Histoire", "Arial20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, null);//fct événementielle -> Partir histoire
     BoutonPratique = new BoutonDeCommande(Game, "Pratique", "Arial20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionCentre.X, PositionCentre.Y+MARGE_BOUTONS), true, null);//fct événementielle -> Partir pratique
     ListeBoutonsCommandeMenu.Add(BoutonBack);
     ListeBoutonsCommandeMenu.Add(BoutonHistoire);
     ListeBoutonsCommandeMenu.Add(BoutonPratique);
     AjouterNouveauxBoutons();
 }
 void BoutonsJouer()
 {
     TexteTitre = "Jouer";
     EnleverBoutonsExistants();
     BoutonBack = new BoutonDeCommande(Game, "Back", "Arial20", "BoutonBackBleu", "BoutonBackBleuPale", PositionBack, true, InitialiserMenu);
     BoutonSolo = new BoutonDeCommande(Game, "Solo", "Arial20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, BoutonsSolo);
     BoutonMultijoueur = new BoutonDeCommande(Game, "Multijoueur", "Arial20", "BoutonBleu", "BoutonBleuPale",
                                              new Vector2(PositionCentre.X, PositionCentre.Y + MARGE_BOUTONS), true, BoutonsMultijoueur);
     ListeBoutonsCommandeMenu.Add(BoutonBack);
     ListeBoutonsCommandeMenu.Add(BoutonSolo);
     ListeBoutonsCommandeMenu.Add(BoutonMultijoueur);
     AjouterNouveauxBoutons();
 }
Beispiel #7
0
 public override void Initialize()
 {
     // Boutons de changement de texture
     NomTexture = "Veteran Tiger Body";
     BoutonsTextureAjoutés = false;
     MenuEffacé = false;
     MenuExiste = false;
     BtnTextureBody = new BoutonDeCommande(Game, "  O  ", "Arial20", "Tank_Body_nocolor", "BtnTextureSelect", new Vector2(Game.Window.ClientBounds.Width / 8, 2.5f * Game.Window.ClientBounds.Height / 6f), true, new FonctionÉvénemtielle(ChangeToBody));
     BtnTextureForest = new BoutonDeCommande(Game, "  O  ", "Arial20", "Tank_Body_Forest", "BtnTextureSelect", new Vector2(Game.Window.ClientBounds.Width / 8, 3f * Game.Window.ClientBounds.Height / 6f), true, new FonctionÉvénemtielle(ChangeToForest));
     BtnTextureDesert = new BoutonDeCommande(Game, "  O  ", "Arial20", "Tank_Body_Desert", "BtnTextureSelect", new Vector2(Game.Window.ClientBounds.Width / 8, 3.5f * Game.Window.ClientBounds.Height / 6f), true, new FonctionÉvénemtielle(ChangeToDesert));
     BtnTextureSnow = new BoutonDeCommande(Game, "  O  ", "Arial20", "Tank_Body_Snow", "BtnTextureSelect", new Vector2(Game.Window.ClientBounds.Width / 8, 4f * Game.Window.ClientBounds.Height / 6f), true, new FonctionÉvénemtielle(ChangeToSnow));
     CaméraMenu = new CaméraFixe(Game, new Vector3(0, 0, 300), Vector3.Zero, Vector3.Up);
     base.Initialize();
 }
Beispiel #8
0
        public override void Initialize()
        {
            List <string> noms = new List <string>();

            noms.Add("choix1");
            noms.Add("choix2");
            noms.Add("choix3");
            noms.Add("choix4");
            LecteurPseudonyme = new EntréeDeTexte(Game, new Vector2(3 * Game.Window.ClientBounds.Width / 4, Game.Window.ClientBounds.Height / 4), "Arial20", 10);
            ChoixVoiture      = new DéfileurSprite(Game, noms, new Rectangle(0, Game.Window.ClientBounds.Height / 3, Game.Window.ClientBounds.Width, 2 * Game.Window.ClientBounds.Height / 3), 0.001f);
            BtnDémarrer       = new BoutonDeCommande(Game, "Démarrer", "Arial", "BoutonVert", "BoutonNoir", new Vector2(2 * Game.Window.ClientBounds.Width / 3, 8 * Game.Window.ClientBounds.Height / 9), false, Démarrer, 0.01f);
            BtnValider        = new BoutonDeCommande(Game, "Valider", "Arial", "BoutonVert", "BoutonNoir", new Vector2(Game.Window.ClientBounds.Width / 3, 8 * Game.Window.ClientBounds.Height / 9), true, Valider, 0.01f);
            base.Initialize();
            Composantes.Add(new ArrièrePlan(Game, "MenuOption"));
            Composantes.Add(new Titre(Game, "Pseudonyme: ", "Arial", new Vector2(Game.Window.ClientBounds.Width / 4, Game.Window.ClientBounds.Height / 4), "Blanc", false, Color.White));
            Composantes.Add(LecteurPseudonyme);
            Composantes.Add(ChoixVoiture);
            Composantes.Add(BtnDémarrer);
            Composantes.Add(BtnValider);

            Activer();
        }
        public override void Initialize()
        {
            LeJeu = new Jeu(Game);
            int hauteurBouton = RectangleDialogue.Height / (NB_ZONES_DIALOGUE + 1);

            Vector2 PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                                 RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 2) * hauteurBouton);

            BtnDémarrer = new BoutonDeCommande(Game, "Démarrer", "", "BoutonRouge", "BoutonBleu", PositionBouton, true, true, GérerPause);

            PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                         RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 1) * hauteurBouton);
            //BtnPause = new BoutonDeCommande(Game, "Pause", "", "BoutonRouge", "BoutonBleu", PositionBouton, true, GérerPause);

            //PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
            //                                     RectangleDialogue.Y + NB_ZONES_DIALOGUE * hauteurBouton);
            BtnQuitter = new BoutonDeCommande(Game, "Quitter", "", "BoutonRouge", "BoutonBleu", PositionBouton, true, true, Quitter);

            Game.Components.Add(BtnDémarrer);
            //Game.Components.Add(BtnPause);
            Game.Components.Add(BtnQuitter);
            base.Initialize();
        }
        public override void Initialize()
        {
            int hauteurBouton = RectangleDialogue.Height / (NB_ZONES_DIALOGUE + 1);


            Vector2 PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                                 RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 2) * hauteurBouton);

            BtnMode = new BoutonDeCommande(Game, "Mode God", "", "BoutonRouge", "BoutonBleu", PositionBouton, true, EstActif, GérerModeCaméra);

            PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                         RectangleDialogue.Y + (NB_ZONES_DIALOGUE - 1) * hauteurBouton);
            BtnPause = new BoutonDeCommande(Game, "Pause", "", "BoutonRouge", "BoutonBleu", PositionBouton, true, EstActif, GérerPause);

            PositionBouton = new Vector2(RectangleDialogue.X + RectangleDialogue.Width / 2f,
                                         RectangleDialogue.Y + NB_ZONES_DIALOGUE * hauteurBouton);
            BtnExit = new BoutonDeCommande(Game, "Quitter", "", "BoutonRouge", "BoutonBleu", PositionBouton, true, EstActif, Quitter);

            Game.Components.Add(BtnMode);
            Game.Components.Add(BtnPause);
            Game.Components.Add(BtnExit);
            base.Initialize();
        }
 void BoutonsLAN()
 {
     TexteTitre = "LAN";
     EnleverBoutonsExistants();
     BoutonBack = new BoutonDeCommande(Game, "Back", "Arial20", "BoutonBackBleu", "BoutonBackBleuPale", PositionBack, true, BoutonsMultijoueur);
     BoutonHéberger = new BoutonDeCommande(Game, "Héberger", "Arial20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, null);//fct événementielle -> Partir host
     BoutonRejoindre = new BoutonDeCommande(Game, "Rejoindre", "Arial20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionCentre.X, PositionCentre.Y + MARGE_BOUTONS), true, BoutonsLAN);//fct événementielle -> Partir join
     ListeBoutonsCommandeMenu.Add(BoutonBack);
     ListeBoutonsCommandeMenu.Add(BoutonHéberger);
     ListeBoutonsCommandeMenu.Add(BoutonRejoindre);
     AjouterNouveauxBoutons();
 }
Beispiel #12
0
        public void MettreEnPause()
        {
            foreach (IActivable composant in Game.Components.Where(composant => composant is IActivable))
            {
                composant.ModifierActivation();
            }

            Vector2 Position1 = new Vector2(Game.Window.ClientBounds.Width / 2, Game.Window.ClientBounds.Height / 2 - 30);
            Vector2 Position2 = new Vector2(Game.Window.ClientBounds.Width / 2, Game.Window.ClientBounds.Height / 2 + 30);
            Vector2 Position3 = new Vector2(Game.Window.ClientBounds.Width / 2, Game.Window.ClientBounds.Height / 2 + 60);
            planPause = new RectangleColoré(Game);
            BoutonRésumer = new BoutonDeCommande(Game, "Résumer", "Impact20", "BoutonBleu", "BoutonBleuPale", Position1, true, MettreEnPlay);
            BoutonQuitter = new BoutonDeCommande(Game, "Quitter", "Impact20", "BoutonBleu", "BoutonBleuPale", Position2, true, Game.Exit);

            Game.Components.Add(planPause);
            Game.Components.Add(BoutonRésumer);
            Game.Components.Add(BoutonQuitter);
        }
Beispiel #13
0
 void BoutonsMultijoueur()
 {
     TexteTitre = "MULTIJOUEUR";
     EnleverBoutonsExistants();
     BoutonBack = new BoutonDeCommande(Game, "Back", "Impact20", "BoutonBackBleu", "BoutonBackBleuPale", PositionBack, true, BoutonsJouer);
     Bouton1v1Local = new BoutonDeCommande(Game, "Local", "Impact20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, PartirMode1v1Local);//fct événementielle -> Partir 1v1 local
     Bouton1v1LAN = new BoutonDeCommande(Game, "LAN", "Impact20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionCentre.X, PositionCentre.Y + MARGE_BOUTONS), true, BoutonsLAN);
     ListeBoutonsCommandeMenu.Add(BoutonBack);
     ListeBoutonsCommandeMenu.Add(Bouton1v1Local);
     ListeBoutonsCommandeMenu.Add(Bouton1v1LAN);
     AjouterNouveauxBoutons();
 }
        void MenuSélectionEnvironnement()
        {
            BoutonGarage = new BoutonDeCommande(Game, "Garage", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(15 * Game.Window.ClientBounds.Width / 100, 100), true, InitialiserGarage);
            BoutonSalleManger = new BoutonDeCommande(Game, "Salle à manger", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(50 * Game.Window.ClientBounds.Width / 100, 100), true, InitialiserSalle);
            BoutonSousSol = new BoutonDeCommande(Game, "Sous-sol", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(85 * Game.Window.ClientBounds.Width / 100, 100), true, InitialiserSousSol);

            Game.Components.Add(BoutonGarage);
            Game.Components.Add(BoutonSalleManger);
            Game.Components.Add(BoutonSousSol);
        }
Beispiel #15
0
 void ÉcrireOptions()
 {
     BtnTextureTank = new BoutonDeCommande(Game, "Choix de la texture", "Arial20", "BoutonNormal", "BoutonEnfoncé",
                             new Vector2(Game.Window.ClientBounds.Width / 4, Game.Window.ClientBounds.Height / 4),
                             true, new FonctionÉvénemtielle(IllustrerTank));
     Game.Components.Add(BtnTextureTank);
 }
Beispiel #16
0
        public void InitialiserBoutons()
        {
            PositionBoutonLancer = new Vector2(Game.Window.ClientBounds.Width - 60, Game.Window.ClientBounds.Height - 40);
            PositionBoutonPause = new Vector2(Game.Window.ClientBounds.Width - 60, 40);
            BoutonLancer = new BoutonDeCommande(Game, "Lancer", "Impact20", "BoutonBleu", "BoutonBleuPale", PositionBoutonLancer, true, ActionLancer);
            BoutonLancer.EstActif = true;

            if (Game.Components.Where(client => client is NetworkClient).Count() == 1)
            {
                NetworkClient Client = Game.Components.ToList().Find(item => item is NetworkClient) as NetworkClient;
                if (Client != null && !Client.EstMaster)
                {
                    BoutonLancer.EstActif = false;
                }
            }
            EstTourJoueurPrincipal = BoutonLancer.EstActif;
            BoutonPause = new BoutonDeCommande(Game, "Pause", "Impact20", "BoutonBleu", "BoutonBleuPale", PositionBoutonPause, true, MettreEnPause);

            Game.Components.Add(BoutonLancer);
            Game.Components.Add(BoutonPause);
        }
Beispiel #17
0
 public void BoutonsLAN()
 {
     TexteTitre = "LAN";
     EnleverBoutonsExistants();
     BoutonBack = new BoutonDeCommande(Game, "Back", "Impact20", "BoutonBackBleu", "BoutonBackBleuPale", PositionBack, true, BoutonsMultijoueur);
     BoutonHéberger = new BoutonDeCommande(Game, "Héberger", "Impact20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, HébergerMode1v1LAN);//fct événementielle -> Partir host
     BoutonRejoindre = new BoutonDeCommande(Game, "Rejoindre", "Impact20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionCentre.X, PositionCentre.Y + MARGE_BOUTONS), true, RejoindreMode1v1LAN);//fct événementielle -> Partir join
     BoutonAfficherConsole = new BoutonDeCommande(Game, "Afficher Console", "Impact20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionBack.X, PositionCentre.Y + MARGE_BOUTONS), true, AfficherConsole);
     BoutonEnleverConsole = new BoutonDeCommande(Game, "Enlever Console", "Impact20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionBack.X, PositionCentre.Y + 2*MARGE_BOUTONS), true, ConsoleWindow.HideConsoleWindow);
     BoutonEffacerConsole = new BoutonDeCommande(Game, "Effacer Console", "Impact20", "BoutonBleu", "BoutonBleuPale",
                                           new Vector2(PositionBack.X, PositionCentre.Y + 3 * MARGE_BOUTONS), true, EffacerConsole);
     ListeBoutonsCommandeMenu.Add(BoutonBack);
     ListeBoutonsCommandeMenu.Add(BoutonHéberger);
     ListeBoutonsCommandeMenu.Add(BoutonRejoindre);
     ListeBoutonsCommandeMenu.Add(BoutonAfficherConsole);
     ListeBoutonsCommandeMenu.Add(BoutonEnleverConsole);
     ListeBoutonsCommandeMenu.Add(BoutonEffacerConsole);
     AjouterNouveauxBoutons();
 }
        void MenuSélectionPersonnage()
        {
            RectangleFondÉcran = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height + 15);
            RectangleGarage = new Rectangle(Game.Window.ClientBounds.Width / 7, 150, Game.Window.ClientBounds.Width / 5, 233);
            RectangleSalleManger = new Rectangle(3 * Game.Window.ClientBounds.Width / 7, 150, Game.Window.ClientBounds.Width / 5, 233);
            RectangleSousSol = new Rectangle(5 * Game.Window.ClientBounds.Width / 7, 150, Game.Window.ClientBounds.Width / 5, 233);
            BoutonJouer = new BoutonDeCommande(Game, "Jouer", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(100, 100), false, ActiverPartieMaster);
            BoutonGarage = new BoutonDeCommande(Game, "Garage", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(17 * Game.Window.ClientBounds.Width / 70, 100), true, InitialiserGarage);
            BoutonSalleManger = new BoutonDeCommande(Game, "Salle à manger", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(37 * Game.Window.ClientBounds.Width / 70, 100), true, InitialiserSalleManger);
            BoutonSousSol = new BoutonDeCommande(Game, "Sous-sol", "Impact20", "BoutonBleu", "BoutonBleuPale", new Vector2(57 * Game.Window.ClientBounds.Width / 70, 100), true, InitialiserSousSol);

            MenuActif = true;
            Game.Components.Add(BoutonJouer);
            Game.Components.Add(BoutonGarage);
            Game.Components.Add(BoutonSalleManger);
            Game.Components.Add(BoutonSousSol);
        }
Beispiel #19
0
 void InitialiserMenu()
 {
     MediaPlayer.IsRepeating = true;
     MediaPlayer.Play(ChansonMenu);
     TexteTitre = "LE BIERE PONG";
     EnleverBoutonsExistants();
     BoutonJouer = new BoutonDeCommande(Game, "Jouer", "Impact20", "BoutonBleu", "BoutonBleuPale", PositionCentre, true, BoutonsJouer);
     ListeBoutonsCommandeMenu.Add(BoutonJouer);
     AjouterNouveauxBoutons();
 }
Beispiel #20
0
 public void InitializeComponents()
 {
     RessourcesManager<SpriteFont> GestionFont = Services.GetService(typeof(RessourcesManager<SpriteFont>)) as RessourcesManager<SpriteFont>;
     SpriteFont Font = GestionFont.Find("Arial20");
     DimensionTitre = Font.MeasureString(TITRE);
     Titre = new TexteCentré(this, TITRE, "Arial20", new Rectangle(Window.ClientBounds.Width / 2 - 2 * (int)DimensionTitre.X,
                                                           Window.ClientBounds.Height / 5,
                                                           4 * (int)DimensionTitre.X,
                                                           4 * (int)DimensionTitre.Y),
                                                           Color.Black, 0.1f);
     
     ImageArrièrePlan = new ArrièrePlan(this, "Background Tank");
     BtnJouer = new BoutonDeCommande(this, "Jouer", "Arial20", "BoutonNormal", "BoutonNormal", new Vector2(Window.ClientBounds.Width / 2, 4 * Window.ClientBounds.Height / 5f), true, new FonctionÉvénemtielle(DémarrerJeu));
     BtnInstructions = new BoutonDeCommande(this, "Instructions", "Arial20", "BoutonNormal", "BoutonEnfoncé", new Vector2(Window.ClientBounds.Width / 2 - (Window.ClientBounds.Width / 4), 4 * Window.ClientBounds.Height / 5f), true, new FonctionÉvénemtielle(AfficherInstructions));
     BtnOptions = new BoutonDeCommande(this, "Options", "Arial20", "BoutonNormal", "BoutonEnfoncé", new Vector2(Window.ClientBounds.Width / 2 + (Window.ClientBounds.Width / 4), 4 * Window.ClientBounds.Height / 5f), true, new FonctionÉvénemtielle(AfficherOptions));
     BtnQuitter = new BoutonDeCommande(this, "Quitter", "Arial20", "BoutonNormal", "BoutonEnfoncé", new Vector2(5 * Window.ClientBounds.Width / 6, Window.ClientBounds.Height / 5f), true, new FonctionÉvénemtielle(QuitterJeu));
     BtnFermerFenêtre = new BoutonDeCommande(this, " X ", "Arial20", "BoutonRougeX", "BoutonBleuX", new Vector2(9 * Window.ClientBounds.Width / 10, Window.ClientBounds.Height / 5), true, new FonctionÉvénemtielle(Retour));
 }