XNA Introductory Tutorial (i)

Source: Internet
Author: User
Tags silverlight

Written in front:

The former saw the cow on the cnblogs with SILVERLIGHT/WPF to write the game, not by whim also try to write a.

As we all know, although from silverlight2 start MS provides isolated storage support, but for the game this big thing, 1M space is obviously not enough. As a then, the game in Silverlight, other than that, the scheduling of its resources is heavily dependent on the server and network.

Second, WPF, because its rendering itself based on DirectX, than the Win32 era of WinForm more suitable for the transformation and refresh in form, but after all, not the game framework, its essence is the lack of interface message loop source support. Although this is a lot simpler for Windows apps, I'm not sure about the game yet.

Accidentally, found in Ms's XNA, a game development framework for dotnet enthusiasts.

What is XNA:

The XNA framework is built on the. NET Framework 2.0, plus a few class libraries focused on game development to maximize the code reuse on a specified platform. The XNA Framework runs on a version of the Common Language execution layer (Common Language Runtime), which is run specifically for managed games. This executive layer supports Windows XP, Windows Vista, and Xbox 360. Since the game is developed on the executive floor, the game can run on all platforms that support the XNA Framework as long as little or no change is required. All current games on the XNA Framework must be developed using the C #和XNA Game Studio Express IDE.

The XNA Framework packs all the low-level technologies used for game programming, so that game developers can focus on game content development without having to worry about the game porting to different platforms, as long as the game is developed on the XNA platform, all hardware can run as long as the support XNA. The XNA Framework also has built-in tools, such as XACT, to help with game content development. These tools can also help develop visual and auditory effects and a very high level of model making.

The XNA Framework supports both 2D and 3D game development, as well as the Xbox 360 Controller and vibration effects. The Xbox Live Store can upgrade developers ' XNA Game Studio Express so that the games they develop can be used on Xbox 360.

Because XNA is based on. NET 2.0, its development efficiency is much faster than C + + direct invocation of the DirectX API, which is a good thing for amateur game developers like me.

XNA Related:

The highest version of XNA is now upgraded to 3.1 and has added support for video and needs to be installed in VS2008 or its express version. (at least in theory, my local vs2008+2010+win7 repeated installation was automatically rolled back, ask the results of the foreigner is still not ideal, finally can only bite the bullet and install a Express for XNA)

Second, the domestic XNA of the relevant resources are very small, heavily dependent on the relevant English reference. We suggest you go to see Learning XNA 3.0-xna 3.0 Game for the PC, Xbox Development, and 360 Zune;xna, 3.0 Game programming M-solution approach and beginning XNA 3.0 Game programming-from Novice to professional related books, I see it is very good.

It seems that many people in China are translating or have partially translated such texts.

First XNA Program

After the XNA Framework is installed, XNA Related project template appears in vs. We casually create a XNA project named Yue WindowsGame1.

After compiling, there is a blue sky and white clouds

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.