- XNA 4 3D Game Development by Example:Beginner's Guide
- Kurt Jaegers
- 162字
- 2021-08-05 18:55:28
Time for action – creating the Cube Chaser project
- Open Visual Studio 2010 and select File | New | Project... from the menu bar.
- 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.
- Select the Windows Game (4.0) project template from the central portion of the window.
- Under Name, enter
Cube Chaser
and click the Ok button. - After Visual Studio has created the solution, right-click on the
Game1.cs
file in the Solution Explorer window and select Rename. - 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.
推薦閱讀
- 數據庫技術與應用教程(Access)
- Microsoft SQL Server企業級平臺管理實踐
- 信息系統與數據科學
- Architects of Intelligence
- 企業大數據系統構建實戰:技術、架構、實施與應用
- 深入淺出數字孿生
- 大數據時代下的智能轉型進程精選(套裝共10冊)
- 大話Oracle Grid:云時代的RAC
- Spark大數據編程實用教程
- 智能數據時代:企業大數據戰略與實戰
- Flutter Projects
- Instant Autodesk AutoCAD 2014 Customization with .NET
- SAS金融數據挖掘與建模:系統方法與案例解析
- R Object-oriented Programming
- 商業智能工具應用與數據可視化