上QQ阅读APP看书,第一时间看更新
- Update the
Initialize()
method to include the following:this.IsMouseVisible = true; graphics.PreferredBackBufferWidth = 800; graphics.PreferredBackBufferHeight = 600; graphics.ApplyChanges(); gameBoard = new GameBoard();
After making the mouse cursor visible, we set the size of the BackBuffer
to 800
by 600
pixels. On Windows, this will size the game window to 800
by 600
pixels as well.
The constructor for the GameBoard class calls the ClearBoard()
member, so each of the pieces on the gameBoard
instance will be set to Empty
.