示例#1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 #region Chargement contenu, déchargement
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     background  = Content.Load <Texture2D>("back");
     vaisseau.LoadContent(Content, "vaisseau");
     laser.LoadContent(Content, "laser1");
     laser2.LoadContent(Content, "laser1");
     laser3.LoadContent(Content, "laser1");
     laser4.LoadContent(Content, "laser1");
     vie.LoadContent(Content, "heart");
     Scored  = Content.Load <SpriteFont>("Score");
     fenetre = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
     // TODO: use this.Content to load your game content here
 }