SlideShare a Scribd company logo
1 of 12
Game Development with Microsoft XNA Studio Tran Minh Triet Faculty of Information Technology University of Science, VNU-HCM
Acknowledgement This presentation reuses materials from: “XNA Game Studio 3.0” 	by Frank Savage, Architect,  Microsoft Corporation 	presented at PDC 2008 “XNA Studio: Introduction to XNA” 	by Brian Keller, Product Manager, Microsoft Corporation 	presented at PDX 2006 Demonstration“Mini Age of Empires” 	by Nguyen KhacHuy, Le Vu Thai Bao 	University of Science, VNU-HCM, 2009
XNA Timeline  2005 2006 2004 Windows and Xbox tools convergence  XACT, PIX  Common Controller, Live on Windows  SDK teams committed to this effort for current and new tools Showed progress on tools convergence Announced    “XNA Studio” Tech Preview at GDC XNA Game Studio Express
XNA Timeline  2008 Future 2007 XNA Game Studio 2.0 To be used with all versions of Visual Studio 2005 XNA Game Studio 3.0 for Visual Studio 2008
What is XNA Game Studio? XNA Game Studio Extends Visual Studio 2008 to create games using C# Framework XNA Framework Cross-platform game development framework and runtime .NET for Xbox 360 and Zune Custom version of the  .NET Compact Framework
XNA Game Studio XNA Game Studio Visual Studio  2008 Content Pipeline Device Management XNA Framework Application Model Content Pipeline Graphics Audio Math Input Networking Gamer Services Platform Windows Xbox 360 Zune
Game Flow (1) Load Content Start Update Draw End Unload Content
Game Flow (2) // This is a texture we can render. Texture2DmyTexture; // Set the coordinates to draw the sprite at. Vector2spritePosition = Vector2.Zero; protectedoverridevoidLoadContent() { // Create a new SpriteBatch,  // which can be used to draw textures. spriteBatch = newSpriteBatch(GraphicsDevice); myTexture = Content.Load<Texture2D>("mytexture"); }
Game Flow (3) protectedoverridevoidDraw(GameTimegameTime) { graphics.GraphicsDevice.Clear(Color.CornflowerBlue); // Draw the sprite. spriteBatch.Begin(SpriteBlendMode.AlphaBlend); spriteBatch.Draw(myTexture, spritePosition, Color.White); spriteBatch.End(); base.Draw(gameTime); }
Game Flow (4) protectedoverridevoidUpdate(GameTimegameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back ==ButtonState.Pressed) this.Exit(); // Move the sprite around. spritePosition.X += 1; spritePosition.Y+= 1; base.Update(gameTime); }
Texture, Sprite, 2D Graphics
Demo

More Related Content

Similar to Game Development with XNA Studio

Leveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile PlatformsLeveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile Platformschristopherfairbairn
 
Dot Net Project Mini Game
Dot Net Project Mini GameDot Net Project Mini Game
Dot Net Project Mini Gamevarun arora
 
Intro to Indie Game Development
Intro to Indie Game DevelopmentIntro to Indie Game Development
Intro to Indie Game DevelopmentShahed Chowdhuri
 
Desenvolvimento de Jogos em XNA para Windows Phone 7
Desenvolvimento de Jogos em XNA para Windows Phone 7Desenvolvimento de Jogos em XNA para Windows Phone 7
Desenvolvimento de Jogos em XNA para Windows Phone 7Comunidade NetPonto
 
XNA and Windows Phone
XNA and Windows PhoneXNA and Windows Phone
XNA and Windows PhoneGlen Gordon
 
Windows phone 7 xna
Windows phone 7 xnaWindows phone 7 xna
Windows phone 7 xnaGlen Gordon
 
Pixel-Lab / Games:EDU / Chris Satchell / XNA and Academia
Pixel-Lab / Games:EDU / Chris Satchell / XNA and AcademiaPixel-Lab / Games:EDU / Chris Satchell / XNA and Academia
Pixel-Lab / Games:EDU / Chris Satchell / XNA and Academiapixellab
 
Game Development with Unity3D 5 in Bandung, Indonesia
Game Development with Unity3D 5 in Bandung, IndonesiaGame Development with Unity3D 5 in Bandung, Indonesia
Game Development with Unity3D 5 in Bandung, IndonesiaHarum Nugroho
 
Develop Games With Cocos Creator - A Game Engine By Cocos
Develop Games With Cocos Creator - A Game Engine By CocosDevelop Games With Cocos Creator - A Game Engine By Cocos
Develop Games With Cocos Creator - A Game Engine By CocosLuke Stapley
 
FewebPlus @ microsoft 19 april 2010 mix
FewebPlus @ microsoft 19 april 2010 mixFewebPlus @ microsoft 19 april 2010 mix
FewebPlus @ microsoft 19 april 2010 mixTom Crombez
 
Build a Game in 60 minutes
Build a Game in 60 minutesBuild a Game in 60 minutes
Build a Game in 60 minutesTroy Miles
 
Minko - Why we created our own Flash platform and why you should care
Minko - Why we created our own Flash platform and why you should careMinko - Why we created our own Flash platform and why you should care
Minko - Why we created our own Flash platform and why you should careMinko3D
 

Similar to Game Development with XNA Studio (20)

Xna Demo.Ppt
Xna Demo.PptXna Demo.Ppt
Xna Demo.Ppt
 
Leveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile PlatformsLeveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile Platforms
 
Deakin
DeakinDeakin
Deakin
 
Imaginecup
ImaginecupImaginecup
Imaginecup
 
Dot Net Project Mini Game
Dot Net Project Mini GameDot Net Project Mini Game
Dot Net Project Mini Game
 
Intro to Indie Game Development
Intro to Indie Game DevelopmentIntro to Indie Game Development
Intro to Indie Game Development
 
Desenvolvimento de Jogos em XNA para Windows Phone 7
Desenvolvimento de Jogos em XNA para Windows Phone 7Desenvolvimento de Jogos em XNA para Windows Phone 7
Desenvolvimento de Jogos em XNA para Windows Phone 7
 
Xna
XnaXna
Xna
 
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming MachineMini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
 
XNA and Windows Phone
XNA and Windows PhoneXNA and Windows Phone
XNA and Windows Phone
 
Windows phone 7 xna
Windows phone 7 xnaWindows phone 7 xna
Windows phone 7 xna
 
XNA Intro Workshop
XNA Intro WorkshopXNA Intro Workshop
XNA Intro Workshop
 
Pixel-Lab / Games:EDU / Chris Satchell / XNA and Academia
Pixel-Lab / Games:EDU / Chris Satchell / XNA and AcademiaPixel-Lab / Games:EDU / Chris Satchell / XNA and Academia
Pixel-Lab / Games:EDU / Chris Satchell / XNA and Academia
 
Beginners XNA
Beginners XNABeginners XNA
Beginners XNA
 
Game Development with Unity3D 5 in Bandung, Indonesia
Game Development with Unity3D 5 in Bandung, IndonesiaGame Development with Unity3D 5 in Bandung, Indonesia
Game Development with Unity3D 5 in Bandung, Indonesia
 
Develop Games With Cocos Creator - A Game Engine By Cocos
Develop Games With Cocos Creator - A Game Engine By CocosDevelop Games With Cocos Creator - A Game Engine By Cocos
Develop Games With Cocos Creator - A Game Engine By Cocos
 
box.doc
box.docbox.doc
box.doc
 
FewebPlus @ microsoft 19 april 2010 mix
FewebPlus @ microsoft 19 april 2010 mixFewebPlus @ microsoft 19 april 2010 mix
FewebPlus @ microsoft 19 april 2010 mix
 
Build a Game in 60 minutes
Build a Game in 60 minutesBuild a Game in 60 minutes
Build a Game in 60 minutes
 
Minko - Why we created our own Flash platform and why you should care
Minko - Why we created our own Flash platform and why you should careMinko - Why we created our own Flash platform and why you should care
Minko - Why we created our own Flash platform and why you should care
 

Game Development with XNA Studio

  • 1. Game Development with Microsoft XNA Studio Tran Minh Triet Faculty of Information Technology University of Science, VNU-HCM
  • 2. Acknowledgement This presentation reuses materials from: “XNA Game Studio 3.0” by Frank Savage, Architect, Microsoft Corporation presented at PDC 2008 “XNA Studio: Introduction to XNA” by Brian Keller, Product Manager, Microsoft Corporation presented at PDX 2006 Demonstration“Mini Age of Empires” by Nguyen KhacHuy, Le Vu Thai Bao University of Science, VNU-HCM, 2009
  • 3. XNA Timeline 2005 2006 2004 Windows and Xbox tools convergence XACT, PIX Common Controller, Live on Windows SDK teams committed to this effort for current and new tools Showed progress on tools convergence Announced “XNA Studio” Tech Preview at GDC XNA Game Studio Express
  • 4. XNA Timeline 2008 Future 2007 XNA Game Studio 2.0 To be used with all versions of Visual Studio 2005 XNA Game Studio 3.0 for Visual Studio 2008
  • 5. What is XNA Game Studio? XNA Game Studio Extends Visual Studio 2008 to create games using C# Framework XNA Framework Cross-platform game development framework and runtime .NET for Xbox 360 and Zune Custom version of the .NET Compact Framework
  • 6. XNA Game Studio XNA Game Studio Visual Studio 2008 Content Pipeline Device Management XNA Framework Application Model Content Pipeline Graphics Audio Math Input Networking Gamer Services Platform Windows Xbox 360 Zune
  • 7. Game Flow (1) Load Content Start Update Draw End Unload Content
  • 8. Game Flow (2) // This is a texture we can render. Texture2DmyTexture; // Set the coordinates to draw the sprite at. Vector2spritePosition = Vector2.Zero; protectedoverridevoidLoadContent() { // Create a new SpriteBatch, // which can be used to draw textures. spriteBatch = newSpriteBatch(GraphicsDevice); myTexture = Content.Load<Texture2D>("mytexture"); }
  • 9. Game Flow (3) protectedoverridevoidDraw(GameTimegameTime) { graphics.GraphicsDevice.Clear(Color.CornflowerBlue); // Draw the sprite. spriteBatch.Begin(SpriteBlendMode.AlphaBlend); spriteBatch.Draw(myTexture, spritePosition, Color.White); spriteBatch.End(); base.Draw(gameTime); }
  • 10. Game Flow (4) protectedoverridevoidUpdate(GameTimegameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back ==ButtonState.Pressed) this.Exit(); // Move the sprite around. spritePosition.X += 1; spritePosition.Y+= 1; base.Update(gameTime); }
  • 12. Demo