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

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.

主站蜘蛛池模板: 新丰县| 衡阳县| 阳高县| 黄浦区| 嵩明县| 林甸县| 鄂州市| 大悟县| 义马市| 丽江市| 西盟| 宁远县| 瓦房店市| 汶上县| 文成县| 新竹县| 郴州市| 娱乐| 三亚市| 花莲市| 正镶白旗| 南雄市| 灵台县| 潞西市| 嘉善县| 古丈县| 鱼台县| 磴口县| 澄城县| 崇明县| 乡宁县| 浪卡子县| 福泉市| 定南县| 柳林县| 南溪县| 大安市| 田阳县| 久治县| 乌恰县| 根河市|