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

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.

主站蜘蛛池模板: 哈尔滨市| 建湖县| 迁西县| 兴业县| 诸暨市| 丰台区| 玉门市| 松桃| 黔江区| 正阳县| 铁岭县| 本溪| 咸丰县| 密云县| 依兰县| 越西县| 上栗县| 青河县| 清丰县| 和政县| 龙江县| 蒙阴县| 阜平县| 民权县| 延长县| 静海县| 十堰市| 安丘市| 泸定县| 大埔县| 昭平县| 云梦县| 宜昌市| 宁远县| 来凤县| 浏阳市| 乐安县| 永宁县| 黄骅市| 临夏市| 茶陵县|