XNA Basics




Content "filtered", Please subscribe for FULL access.


Chapter 6 : XNA Basics



Introduction to XNA arrow_upward


  • Microsoft XNA is a set of tools with a Microsoft runtime environment that facilitates video game development and management.
  • XNA allows game developers to use .NET Framework, to create high performance games on a variety of platforms, including
    • Windows PC
    • Xbox 360
    • Windows Phone
  • It includes a set of professional tools for game production and resource management.
  • Windows Phone uses version 4.0 of the framework.
  • The XNA Framework is based on the native implementation of .Net compact framework 2.0 for Xbox 360 development.
  • It includes an extensive set of class libraries, specific to game development.
  • The XNA Framework encapsulates low-level technological details involved in coding a game.
  • The XNA Framework provides support for both 2D and 3D game creation and allows use of the Xbox 360 controllers and vibrations.
  • XNA Framework is a library of C# objects that is used to create the games programs themselves.

  • XNA Architecture arrow_upward


  • It includes XNA libraries.
  • Code can be written in c#.
  • XNA architecture has .NET Compact Framework.

  • XNA Library arrow_upward


  • The XNA Framework class library is a library of classes, interfaces, and value types that are included in XNA Game Studio.
  • This library provides access to XNA Framework functionality and is designed to be the foundation on which XNA Game Studio applications, components, and controls are built.
  • Standard library are listed below:
  • using System;

    using System.Collections.Generic;

    using System.Linq;

    using Microsoft.Xna.Framework;

    using Microsoft.Xna.Framework.Audio;

    using Microsoft.Xna.Framework.Content;

    using Microsoft.Xna.Framework.GamerServices;

    using Microsoft.Xna.Framework.Graphics;

    using Microsoft.Xna.Framework.Input;

    using Microsoft.Xna.Framework.Input.Touch;

    using Microsoft.Xna.Framework.Media;


    DirectX 9Ex arrow_upward


  • DirectX 9Ex is a collection of Application Programming Interface (APIs) for handling task related to multimedia and game development.
  • It is widely used in the development of video games for:
    • Microsoft Windows
    • Microsoft Xbox
    • Microsoft Xbox 360
    • Windows phone

    2D and 3D Games arrow_upward


  • Games in 2D are drawn in a single plane.
  • Games in 3D are drawn in multiple plane.
  • XNA provides full support for 3D games.
  • It allows a game program to make full use of the underlying hardware acceleration provided by the graphics hardware of WP7.
  • 3D games use a visual simulation of a 3D environment and windows Phone hardware acceleration makes it capable of displaying realistic 3D.

  • XNA and Silverlight arrow_upward


  • XNA is completely different from Silverlight.
  • The way that programs are constructed and execute in XNA is quite different.
  • XNA is optimized for game creation.
  • It does not have any elements for user interface or data binding.
  • Instead it has support for 3D rendering and game content management.

  • Making XNA Program arrow_upward


  • The New Project dialog in Visual Studio lets us select Windows Phone Game as the project type.
  • The initial behavior of an XNA game is to draw the screen blue.
  • The maximum resolution of a Windows Phone game is 800 x 480 pixels.
  • To make XNA games load more quickly and take up less space it is worth resizing game assets for the Windows Phone platform.

  • XNA Game Function arrow_upward


  • An XNA program is continuously active, updating the game and drawing the display.
  • The design of XNA recognizes that the game world will update all the time around the player.
  • When an XNA program runs it loads all the content required by the game.
    • This includes all the sounds, textures and models.


    Thank You from Kimavi arrow_upward


  • Please email us at Admin@Kimavi.com and help us improve this tutorial.


  • Mark as Complete => Receive a Certificate in Windows-Phone-Programming

    Kimavi Logo

    Terms and conditions, privacy and cookie policy

    Kimavi @ YouTube | Email Admin @ Kimavi | Visit TheCodex.Me

    Beautiful Educational Videos for School, College, Languages & Encyclopedia


    Learn Python with 500,000 students


    Created with Love