graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content";
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.
GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); spriteBatch.Draw(logo, new Vector2(100, 100), Color.White); spriteBatch.End(); base.Draw(gameTime);
protected override void Draw(GameTime gameTime)
spriteBatch = new SpriteBatch(GraphicsDevice); logo = Content.Load<Texture2D>("xna_logo");