protected override void LoadContent() { ressource.loadcontent(Content); spriteBatch = new SpriteBatch(GraphicsDevice); gameover = new GameOverScreen(this, spriteBatch, ressource.ecriture, ressource.gameover); Components.Add(gameover); gameover.hide(); edm = new EDM(this, spriteBatch); Components.Add(edm); edm.hide(); pause = new menudepause(this, spriteBatch, ressource.ecriture, ressource.pixel); Components.Add(pause); pause.hide(); menu = new menu(this, spriteBatch, Content.Load<SpriteFont>("SpriteFont"), ressource.templar); Components.Add(menu); menu.hide(); menudujeu = new menudujeu(this, spriteBatch, Content.Load<SpriteFont>("spriteFont"), ressource.th); Components.Add(menudujeu); menudujeu.hide(); option = new option(this, spriteBatch, Content.Load<SpriteFont>("spriteFont"), ressource.option); Components.Add(option); option.hide(); main = new gamemain(this, spriteBatch, activeScreen); Components.Add(main); main.hide(); activeScreen = menu; activeScreen.Show(); MediaPlayer.Play(ressource.menu); MediaPlayer.IsRepeating = true; MediaPlayer.Volume = 0; SoundEffect.MasterVolume = 0.05f; ecran = false; }