上QQ阅读APP看书,第一时间看更新
Time for action – creating an XNA project
To create an XNA project, perform the following steps:
- In the Visual Studio window, open the File menu and select New Project....
- Under Project Type, make sure C# is selected as the language and that the XNA Game Studio 4.0 category is selected.
- Under Templates, select Windows Game (4.0).
- Name the project
Speller
(this will automatically update the Solution Name). - Click on OK.
The Speller game's Game1.cs
file, when opened in Visual Studio, would look like the following screenshot:
What just happened?
We now have the skeleton of a project upon which we can build the Speller game. Each of the major XNA methods is declared, usually with no additional code except the execution of the method's base. We will examine each area of the XNA game template as we create the pieces necessary for Speller.