示例#1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     texture     = Content.Load <Texture2D>("Cell");
     spriteBatch = new SpriteBatch(GraphicsDevice);
     grid        = Grille.Parse(Content.Load <Texture2D>("map1"));
     cam         = new Camera(grid);
     mouse       = new MouseHandler();
     changed     = new List <Cell>();
     // TODO: use this.Content to load your game content here
 }