XNa game studio or Silverlight: Which product is right for me?

Source: Internet
Author: User

The first question should developers will face after deciding to develop a game for Windows Phone 7, is which of the two game development models they shold choose. developers can choose to develop their game using either the xNa framework or Silverlight. this article will help developers make an informed demo-when choosing between the two.

Choosing between Silverlight and xNa game studio isn' t quite as straightforward as looking at a feature list or performance metrics. each framework was designed with different goals and MERs in mind. there are, as a consequence, very few hard and fast rules about which framework you must use. instead, we will offer guidance on which framework you wocould be more successful or productive using. ultimately, the choice is dependent on what works best for you, and for your game.

Who shocould consider using Silverlight?

If you are building a Windows Phone companion application to your existing Xbox 360 or PC game, and plan to show primarily statistics and other information, then Silverlight is a great choice for your game. silverlight gives developers the ability to leverage the built-in Ui controls on the phone. those controls can be used right out of the box, and will match the look and feel of Windows Phone elements, with no customization on your part. an xNa game studio developer that wanted to have controls matching the look and feel of Windows Phone wowould need to build and maintain those controls for themselves.

If video is a key element of your game, and you want the ability to show video in a portion of your screen (as opposed to full screen), then Silverlight is required. silverlight allows you to use the media control to composite your video directly into a portion of your application. xNa game studio games, on the other hand, must show video full screen, and cannot composite that video.

Similarly, Silverlight is required if your game is going to be displaying web pages via the built-in Internet Explorer (IE) control. silverlight applications have the ability to host the IE control, and composite that control into their UI. xNa game studio games can use HTTP (s), but cannot use the IE control.

If your application requires keyboard support, then you shoshould consider Silverlight. silverlight applications get access to the software keyboard by default. xNa game studio games wocould need to build their own software keyboard control in order to require keyboard input. both Silverlight and xNa game studio can take advantage of hardware keyboards, when they are present. windows Phone 7 offers hardware keyboards as an option. not all devices will have a hardware keyboard.

If your development background contains experience working with other web technologies, then Silverlight will offer a shorter ramp-up time. if you are porting an existing game, for instance, the porting process will most likely take less time If you target Silverlight instead of xNa game studio.

Who shoshould consider using xNa game studio?

If you are more comfortable with the Standard update/render loop for developing your games, then xNa game studio is the choice for you. if you are coming from Xbox 360 or PC game development, then xNa game studio's application model will feel more comfortable to you. xNa game studio was built by game developers, for game development. as such, all of the constructs in the framework are designed specifically to produce games.

If you are building a true 3D game, then xNa game studio is required. silverlight on Windows Phone can simulate 3D by rendering to 2D sprites ahead of time, and prebaking animations. xNa game studio has full 3D support, including support for skinned animations.

XNa game studio games gain access to xNa content pipeline projects, which allow build-time processing of assets. silverlight doesn' t have an analogous technology. A Silverlight developer wocould need to write their own pipeline from scratch in order to have the same functionality.

XNa game studio games get access to a library of hardware accelerated vertex and pixel shaders on Windows Phone 7. silverlight does not have access to shaders on Windows Phone 7 devices. xNa game studio applications gain control over the video card's state, allowing those developers to set render states to their liking. this includes des states such as alpha blending, wireframe or solid, etc. the driver for Windows Phone 7 is a direct3d implementation, and is similar in functionality to the desktop direct3d.

If your games make heavy use of sprites, or animates more than a handful of sprites on screen, your title will likely be more efficient with xNa game studio. silverlight performs most of its Rasterization and composition on the CPU, while xNa game studio makes heavy use of the graphics hardware. expressed another way, if parts of your scene is going to change every frame, then xNa game studio is for you.

Windows Phone 7 devices have a screen that is 800x480 pixels. That is a lot of pixels! When games will run into fill rate issues if they have any overdraw at all. xNa game studio games can access a high-quality hardware scaler, which will allow game developers to render to a much smaller target, and have that render scaled (for free) via dedicated hardware, to the device's native resolution. if you want to enable post-processing, or if you want CT that you might have some overdraw, then xNa framework is likely for you.

More information

For additional information on developing a game for xNa game studio, check out our education roadmap page. if you have any questions, our forums are a great place to start, or feel free to email creators@microsoft.com.

For additional information on developing for Silverlight visit http://silverlight.net. If you have questions specific to Silverlight development, the Silverlight forums are a great place to start.

General questions about development for the Windows Phone 7 found http://social.msdn.microsoft.com/Forums/windowsphone7series.

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.