protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); #region Gestionnaire gestionnaire_son.LoadContent(Content); carte.LoadContent(Content); environnement.LoadContent(Content); #endregion #region Interface lancement.LoadContent(Content); menu.LoadContent(Content); jauge.LoadContent(Content, "Jauge//barredevie", "Jauge//santepleine", "Jauge//manapleine"); barreAction.LoadContent(Content); #endregion ecran_chargement.LoadContent(Content); joueur.LoadContent(Content); camera.LoadContent(Content); joueur.inventaire.LoadContent(Content, Window); gestion_transition.LoadContent(Content); histoire.LoadContent(Content); intro.LoadContent(Content); message = new Message(Window.ClientBounds.Width, Window.ClientBounds.Height); message.LoadContent(Content); w = GraphicsDevice.PresentationParameters.BackBufferWidth; h = GraphicsDevice.PresentationParameters.BackBufferHeight; bruitages.LoadContent(Content); //copy into a texture screenshot = new RenderTarget2D(GraphicsDevice, w, h, false, GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.None); }
public Menu(GameWindow window) { hauteur = window.ClientBounds.Height; largeur = window.ClientBounds.Width; #region Booleen clavier clavierhaut = false; clavierbas = false; clavierentrer = false; changement = false; flechegauche = false; flechedroite = false; #endregion choix = 1; numerocarte = 0; rectselecteur = new Rectangle(10, 60, 40, 30); langue = Langue.Francais; mode = Mode.Menu; sound = Son.On; pauseactive = false; carte_hauteur = 5; carte_largeur = 5; clavierType = ClavierType.AZERTY; message = new Message(largeur, hauteur); }