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

Time for action – creating the Cube Chaser project

  1. Open Visual Studio 2010 and select File | New | Project... from the menu bar.
  2. Open the Visual C# tree in the Installed Templates portion of the New Project window, and open the XNA Game Studio 4.0 tree under it.
  3. Select the Windows Game (4.0) project template from the central portion of the window.
  4. Under Name, enter Cube Chaser and click the Ok button.
  5. After Visual Studio has created the solution, right-click on the Game1.cs file in the Solution Explorer window and select Rename.
  6. Change the name of the file to CubeChaserGame.cs. When asked if you wish to update the references to the file, click Yes.

What just happened?

We now have the shell for our Cube Chaser game. We could have left our main game class as Game1 as we did for the Speller game, but giving the class a more descriptive name helps to keep our code as self-documenting as possible.

主站蜘蛛池模板: 怀柔区| 平陆县| 安岳县| 汉川市| 阿克苏市| 隆德县| 松滋市| 乐清市| 南京市| 建湖县| 清水县| 扶绥县| 河北区| 南阳市| 长治市| 延寿县| 文化| 边坝县| 正阳县| 独山县| 敦化市| 连城县| 新营市| 荥经县| 崇礼县| 田阳县| 新巴尔虎左旗| 萨迦县| 德保县| 威信县| 诸暨市| 中方县| 岐山县| 三河市| 涿州市| 图们市| 莱阳市| 资中县| 青神县| 子洲县| 麟游县|