/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { graphics.GraphicsDevice.Clear(Color.Honeydew); spriteBatch.Begin(); spriteBatch.Draw(wall, Vector2.Zero, Color.White); b1.Draw(spriteBatch, gameTime); b2.Draw(spriteBatch, gameTime); j1.Draw(spriteBatch, gameTime); j2.Draw(spriteBatch, gameTime); foreach (Brique brique in briques) { brique.Draw(spriteBatch, gameTime); } spriteBatch.DrawString(Globals.police, j1.NbPoints.ToString() + " | " + j2.NbPoints.ToString(), Vector2.UnitX, MyColors.bleuBalle); spriteBatch.End(); base.Draw(gameTime); }