Game Creation with XNA/Programming/Visual Studio

From Wikibooks, open books for an open world
Jump to: navigation, search

Visual Studio , created and providing by Microsoft, is an IDE for developers who want to evolve different applications based on Windows and the .NET platforms. It supports developers/programmer with a widespread accumulation of development programmes for generating different kinds of applications e.g. Windows applications, ASP.NET applications or Webservices. Professional programmer as well as free coder like to use Visual Studio for developing because the IDE supports many different programming languages: Visual Basic, C, C++, C++/CLI, C# und F#.

We are going to use Visual Studio, during our exercise course, to create a small 3D game. To develop those games we apply Visual Studio including the XNA- framework. An instruction on how to install Visual Studio including XNA is declared on WikiBook: Setup.

Fields of Applications[edit]

Visual Studio offers the possibility to develop different applications
Application Description
Console Application Program to use as a command-line appliance
Windows forms application Used to build a graphical user interface
Windows services Progam that works back-cloth as a self executable statement
ASP.NET applications + web services Web applications based on the Microsoft .NET Framework
Windows Mobile applications Used to build appliances fo mobile devices with the .NET Compact Framework
MFC/ATL/Win32 applications Applications for Windows
Visual Studio add-ins Programms that are used within Visual Studio to extend the functionallities


Visual Studio supports the developer with helpfull features which are useful in every development step.

The Code Editor[edit]

Visual Studio allocates a useful code editor which supports the user during writing the source code by highlighting the syntax and suggesting code complements. The code editor tries to complete methods and functions. It is also usefull when the developer wants to have quick access to his defined variables e.g. by entering the first letter, the code editor proposes all variables beginning with it.


Visual Studio offers different visual designer which help the coder during developing their applications:

Web designer/development
Visual Studio offers another editor for creating and designing web pages. The Web designer supports the user during the development of an ASP.NET application.
Windows Forms Designer
This designer can be used to add control devices to a form and code the specific functions behind it.
WPF Designer
The WPF (Windows Presentation Foundation) Designer also behaves like the Forms Designer but is used to build WPF control devices and applications.
Class designer
The Class designer is a tool that makes it possible to model a class diagram of the developed application. The Class Designer models the connection and structure of it. It is not only used for classes but also for structures, delegates and interfaces.
Mapping designer
This designer mappes the classes and the database schemas that seal the data.


Visual Studio comes along with its own debbuger. The debugger supports by securing that the application operates in a logical way and as you want it to operate. It makes it possible to stop on different code positions to check the building.


The developer using Visual Studio has the chance to expand the functions of the standard Visual Studio.

Browser and Explorer[edit]

Object Browser
The Object Browser makes it possible to appraise the available symbols for use in Visual Studio. The Browser uses three panes: the Objects pane, the Members Pane and the Description pane.
Open Tabs Browser
The Open Tabs Browser displays als open tabs and switches between them.
Properties Editor
Used to see all available properties for all objects and other items. Furthermore it is used to edit them.
Solution Explorer
The Solution Explorer is used for the arrangement of item management tasks in a project/solution. It is possible to handle with items outside a project.
Data Explorer
The Data Explorer is used to administrate databases. The administration provides the creation and creation and modification of database tables.
Team Explorer
The Team Explorer accesses the Team Foundation Server and the revision control.
Server Explorer
The Server Explorer establish the connection to the server. It offers the task to edit the ressources.
Text Generation Framework
The Text Generation Framework, also called t4, is a code generator which uses textfiles from templates.

Version history[edit]

Product .NET Framework
Release date
Visual Studio N/A Spring 1995
Visual Studio 97 N/A 1997
Visual Studio 6.0 N/A 1998-06
Visual Studio .NET (2002) 1.0 2002-02-13
Visual Studio .NET 2003 1.1 2003-04-24
Visual Studio 2005 2.0 2005-11-07
Visual Studio 2008 3.5 2007-11-19
Visual Studio 2010 /Ultimate 2010 4.0 2010-04-12




Wikipedia Microsoft Visual Studio

External links[edit]

Visual Studio Website
Visual Studio Developers Center on MSDN