Microsoft Xna Framework — 3.1 [portable]
public Game1()
protected override void LoadContent()
Introduction Released in 2009 as part of the Game Developers Conference (GDC), Microsoft XNA Framework 3.1 was a significant milestone in managed game development. It extended the capabilities of the .NET Framework to allow developers—from hobbyists to small studios—to create games for Windows PCs, the Xbox 360 console, and the Zune HD media player using a single, unified codebase. microsoft xna framework 3.1
graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content";
GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Texture2D logo; the Xbox 360 console
spriteBatch = new SpriteBatch(GraphicsDevice); logo = Content.Load<Texture2D>("xna_logo");
GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); spriteBatch.Draw(logo, new Vector2(100, 100), Color.White); spriteBatch.End(); base.Draw(gameTime); Content.RootDirectory = "Content"
protected override void Draw(GameTime gameTime)