Пример #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.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     tileTexture = Content.Load <Texture2D>("Tile");
     pawnTexture = Content.Load <Texture2D>("Pawn");
     board.setTexture(tileTexture);
     Console.WriteLine("Tile " + board.tiles[5].position);
     for (int x = 0; x < 8; x++)
     {
         pawnWhite[x] = new Pawns(pawnTexture, board.tiles[x + 8], Pawns.PawnTypes.Pawn, Pawns.PawnColor.White);
         Console.WriteLine("created pawn on tile " + board.tiles[x + 8].position);
     }
     // TODO: use this.Content to load your game content here
 }