Microsoft xna framework do i need it12/4/2023 If you look at this line of code, you’ll see that it is referencing a game pad. If (GamePad.GetState(PlayerIndex.One).Buttons.Back = ButtonState.Pressed) There are two lines of code in the default project that are worth pointing out: Additionally, with a game project you’ll want to make do a lot of your logic in the Update method and then let the Draw method update your display. For a game, you’ll want to follow standard project practices. Of course, the key is to create a program that does something. You’d end up with a game program that does nothing other than setting the background to CornflowerBlue. At this point, you could compile and run the program. Clicking Ok will create the project and open up the editor with the Game1.cs file displayed. I’ll rename the project to PictureMover and choose to create the solution in its own directory. In Figure 3, the defaulted name of WindowsGame3 is used. In addition to selecting the right template, you’ll want to give your project a name. You should make sure you select the right template. This will setup the project for a Windows game. If you are running XNA Game Studio 4.0, you’ll also have options for targeting the Windows Phone. Selecting an XNA Project Type in Microsoft Visual StudioĪs you can see in Figure 3, there are several types of projects you can create. This should present you with Templates similar to what are shown in Figure 3.įigure 3. If XNA Game Studio 3.1 isn’t the default selection, then select it from the Project Types. This will display the New Projects dialog. With Visual Studio (or Visual C#) started, you can start your first game project by selecting File –>New –> Project. Of course, when you start Visual Studio, it will look like what you have likely seen before. You can select Visual Studio from the menu option in order to start Visual Studio with the XNA Game Studio available. Once you’ve installed XNA Game Studio, you’ll find that XNA Game Studio 3.1 has been added to your Windows Start Menu. After all, the club is going to require you to spend some money. Of course, you can choose to wait to join until you’ve learned a little more on the XNA Framework. You will, however, need it if you plan to create games for the Xbox 360. It is important to know that you don’t need a membership in the XNA Creators Club in order to create PC or Zune games. With a membership, you’ll be able to create, share, review, and work with Xbox 360 games. In order to be able to use your games on your Xbox 360, you’ll need to join the XNA Creator’s Club. Once the installation is completed, you’ll be prompted to go the XNA Creators Club online. If you are planning to only build for the Zune or for a local PC, then you shouldn’t need to enable these rules, otherwise, enable what is appropriate. Once you have you’ll then need to address some settings related to your computer’s firewall settings so as to be able to communicate with either an Xbox 360 or to allow communication with network games built on the XNA Framework. You’ll then need to agree to the licensing agreement. Once you’ve downloaded the XNA Game Studio 3.1, you can run the program to start the installation Wizard as show in Figure 1.Ĭlick Next to begin the process. Even if you want to target the Windows Phone Series, you can use what you learn with XNA Game Studio 3.1 and apply it to XNA Game Studio 4.0. As such, I’ll recommend downloading it unless you are specifically targeting the Windows Phone. While 4.0 Is now available as an early release, 3.1 is the current, fully released product. This product is freely available for download:ĭownload XNA Game Studio 4.0 (Windows Phone developer CTP) here. Once you have Visual C# Express edition, or a copy of Microsoft Visual Studio, you can then download and install XNA Game Studio. XNA Game Studio will work with the Express Edition of Visual C# that you can download from the Microsoft site at no charge. If you don’t already have Visual Studio 2008, don’t fret. In a couple of future articles, I’ll cover a few basics to get you started in creating your first XNA applications. In this article, I’ll talk briefly about installing XNA Game Studio and compiling the default project. By installing XNA Game Studio on top of Microsoft Visual Studio 2008, you end up not only with the tools you need, but also the XNA Framework containing the routines you need to start building games. The newest version of XNA Game Studio also targets the Window Phone Series. Microsoft has provided the XNA Game Studio for developing games and other programs targeting not only the PC, but also the Xbox 360 and Zune devices.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |