官术网_书友最值得收藏!

Time for action – creating an XNA project

To create an XNA project, perform the following steps:

  1. In the Visual Studio window, open the File menu and select New Project....
  2. Under Project Type, make sure C# is selected as the language and that the XNA Game Studio 4.0 category is selected.
  3. Under Templates, select Windows Game (4.0).
  4. Name the project Speller (this will automatically update the Solution Name).
  5. Click on OK.

The Speller game's Game1.cs file, when opened in Visual Studio, would look like the following screenshot:

Time for action – creating an XNA project

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.

主站蜘蛛池模板: 庄浪县| 宣威市| 张北县| 林芝县| 松原市| 来安县| 桑植县| 凤城市| 抚顺市| 怀宁县| 永丰县| 桑日县| 汉中市| 青阳县| 来凤县| 凤山县| 石屏县| 泽库县| 永昌县| 鞍山市| 全南县| 东台市| 崇州市| 通州市| 靖州| 大城县| 延长县| 舟山市| 左权县| 阿荣旗| 绥棱县| 稻城县| 平利县| 黎平县| 达日县| 广河县| 满城县| 玉门市| 自贡市| 克拉玛依市| 河源市|