XNA 4.0 Game Development by Example Beginner's Guide(Visual Basic Edition)
上QQ阅读APP看书,第一时间看更新

Time for action – setting up the Flood Control project

  1. Open Visual Studio Express Edition (if it is already open, select Close Solution from the File menu so that you are starting with an empty slate).
  2. In the Visual Studio window, open the File menu and select New Project....
  3. Under Project Type, make sure XNA Game Studio 4.0 is selected.
  4. Under Templates, select Windows Game (4.0).
  5. Name the project Flood Control.
  6. Click on OK.
  7. Right-click on Flood ControlContent (Content) in the Solution Explorer window and select Add | New Folder. Name the folder Textures.
  8. Add another folder under Flood ControlContent (Content) and name the folder Fonts.
  9. Download the 2403_02_GRAPHICPACK.zip file from the book's companion website, and extract the files to a temporary folder.
  10. Back in Visual Studio, right-click on Textures in the Content project and click on Add | Existing Item. Browse to the folder where you extracted the 2403_02_GRAPHICPACK files and highlight all of them. Click on Add to add them to your project.

What just happened?

You have now set up a workspace for building Flood Control and created a couple of folders for organizing game content. You have also imported the sample graphics for the Flood Control game into the project.