Example #1
0
 protected override void UnloadContent()
 {
     decors = null;
     fantome = null;
     back_ground = null;
     music = null;
 }
Example #2
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     fantome = new Fantome(Content);
     decors = new Decors(Content);
     back_ground = new Back_Ground(Content);
     startMenu_text = Content.Load<Texture2D>("Menu/Menu");
     playButton_text = Content.Load<Texture2D>("Menu/Bouton_Play");
     optionsButton_text = Content.Load<Texture2D>("Menu/Bouton_Option");
     exitButton_text = Content.Load<Texture2D>("Menu/Bouton_Exit");
     music = Content.Load<Song>("SoundFX/Ambiance");
     MediaPlayer.Play(music);                              // Musique de fond, dès que le jeu est lancé, a changer => créer une classe?
     MediaPlayer.IsRepeating = true;
 }