Learning xNa 3.0 translation serialization-Chapter 1

Source: Internet
Author: User
Tags visual studio 2008 professional

Translator: Lin Yu

Source: The binary life of wood

Please indicate the author and source for reprinting. Thank you!

 

Chapter 1

Computers are incredible machines. It is exciting and surprising to think about how modern computers start from 0 and 1 and then become the basic tool for our daily use. There is nothing better than a good game to use the power of computers and attract user interest. From the early pong to the latest works, video games have occupied the imagination of billions of people.

With Microsoft's xNa game development framework, writing exciting games has never been easier. XNa 3.0 gives independent developers an unprecedented opportunity to develop their own games for xbox360 and Zune. It has never been so easy to develop games for the next generation console and the latest mobile multimedia devices.

I'm sure you're ready to create the next great game, so let's get started. Chapter 4 will help you install everything you need so that you can go all the way.

 

System Requirements

This book uses xNa game studio 3.0 to expand Microsoft Visual Studio for xNa game development. XNa game studio uses xNa framework 3.0 to provide developers with an xNa game framework for developers to start development, customization, and expansion to create their own games.

XNa game studio 3.0 can be run in multiple versions of Visual Studio 2008. Before installing xNa game studio 3.0, you must install Visual Studio 2008 Standard Edition or Quick Start edition (C # language components required ).

Visual C #2008 Express can be installed inHttp://www.microsoft.com/express/vcsharp/Free. This is a good way to start learning xNa, if you do not have authorization for other versions.

In this book, I will use Visual Studio 2008 Professional Edition. The screens of different versions should be the same (at least similar), but you should be aware that there may be differences in examples of different versions of books.

XNa game studio 3.0

Http://www.microsoft.com/downloads/details.aspx? Familyid = df4af56a-58a7-474c-bfd0-7cf8ed3036a3 & displaylang = en & TMFree.

Other resources

In addition to this book, you should take a lookMicrosoft creator's Club OnlineWebsite (Http://creators.xna.comXNA creator's Club).TheThe website contains many tutorials, examplesCode, And other resources help you start using xNa.

If you are a student, you should check out dreamspark.(Https: // downloads.Channel8.msdn.com)DreamsparkIt is a Microsoft activity that allows students to use professional visual stduio and other design and development tools for free.

Install

Install xNa game studio 3.0 after you install Visual Studio of a certain version you mentioned earlier. The installation of xNa game studio is quite simple, but here I will take you through every step. On the welcome page (Figure 1-1), click Next.

After reading EULA(End User License Agreement)Check "I accept the terms in the licence agreement" to accept the agreement, as shown in figure 2.

Next step (Figure 1-3) ask if you want to allow game studio to communicate with xNa Games through the firewall on your computer. We recommend that you allow communication. If you need to deploy the xNa game project to xbox360, the first option is required, and the second option is required for online games. Enable both options and select next.

 If your computer has third-party firewall software, you may need to manually add rules for the xbox360 communication and xNa framework. For more details, seeHttp://msdn.microsoft.com/en-us/library/bb203892.Aspx.

Figure 1-1 installation welcome page

Figure 1-2 EULA

Figure 1-3 firewall settings

Install xNa game studio 3.0 after accepting firewall settingsProgramThe file will be copied to your computer and installed.

After the installation is complete, click Finish to prepare for the project. XNa game studio has been integrated into visual stuido. Therefore, start Visual Studio 2008.

Create your first xNa Application

Now that you have installed xNa game stduio 3.0, it is time to create your first xNa application. In Visual Studio, select File> New> project ). In the "project type" window on the left, select Visual C #-> xma game studio 3.0.

In the project template area of the window on the right, you can see many optional projects. You should create a Windows game (3.0) project named collision and select the Save directory of the project, click "OK", 1-4.

After the project is loaded, select debug> run from the menu ). The project starts compilation and runs. A page similar to Figure 1-5 is displayed.

Congratulations! You just created your first xNa game! There may be no exciting games you 've ever played before, but don't make a mistake. This 100% xNa 3.0 app -- and it happens more than you can see in your eyes. When no graphics, sound, or other cool content is used in the project, the program uses the xNa framework to plot, update, and manage resources, as this book will use. Later, we will discuss what happened behind the program.

Figure 1-4 create a project

Figure 1-5 run the collision Project

What did you just do?

Now you are ready to create your first game. But first, let's review what you have done in this chapter.

• You have installed xNa game studio 3.0 and configured your computer for xNa development.

• You have created and run your first xNa project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.