SlideShare a Scribd company logo
1 of 44
Game Development With Microsoft XNA Game Studio
Do It Yourself
Introduction To
XNA Game Studio
By
Chanaka Nakandala
Game Development With Microsoft XNA Game Studio
Do It Yourself
What is XNA Game Studio..?
XNA is a Framework and Toolset Provided by Microsoft Corporation
for game development tasks.
That mean XNA is not a “Game Engine” , It’s a “Code library”.
XNA is build on top of the DirectX 9c.
Core Frameworks in XNA Framework
Graphics Audio Input Game
Math
Storage
Microsoft XNA Game Studio 4.0
Features
Cross platform
Features
What are those platforms..?
Windows Operating Systems (Windows Vista, Windows 7, Windows 8)
XBox 360
Windows Phone
Zune HD (only sprite based 2D games)
Cross platform - Computer
Features
Cross platform – Xbox 360
Features
Cross platform – Windows Mobile
Features
Cross platform - Zune
Features
Graphics
Features
Sprite Batch for develop 2D games and Particale
System
1.Normal Mapping
2.Per Pixel Lighting
3.Parallax Mapping
Enable to using 3D Models , Effects and Shaders
Support for HLSL (High Level Shader Language)
Inputs
Features
Easy to getting User Inputs
1.Mouse
2.Keyboard
3.Xbox 360 Game Controller
4.Touch Panel ( Windows Phone , Zune )
5.Accelermetor
Provides
Audio
Features
Game audio is Based on XACT (Cross-Platform
Audio Creation Tool)
3D Audio
Able to use audio files via their logical names
Inbuilt XACT Tool as the sound asset
Support for Looping , Streaming and Memory
Management
Math
Features
Support for Vector , Matrix , Plane , Sphere ,
Curve
Intersection Helpers
Movement Helpers
Storage
Features
Easier to Read and Write data to save game data
Save game data file in correct location in the
each platform
Networking
Features
Easy to create LAN Based Games.
Support for HTTP and TCP/UDP protocols to
communicate with servers and devices
Able to create Multiplayer games to play
through the Internet
How to develop a game using XNA..?
You may needs
Microsoft Visual Studio
Visual C# / Visual Basic.net
Microsoft XNA Game Studio 4.0
……And Windows Operating System
How to develop a game using XNA..?
You may needs
Graphics Card supports Minimum Shader Model 1.1
DirectX 9.0c
How to develop a game using XNA..?
Gain of Visual C# / Visual Basic.net
Visual C# 2.0 , Visual C# 3.0 or Visual Basic.net are
using as the programming language.
Components of Microsoft XNA Game Studio
Microsoft Visual Studio
XNA Framework
.net
Framework
.net Compact
Framework
Windows
Phone
Xbox 360 Zune
Windows
PC
XNA Game Studio Architecture
Game code (C#,VB) & Content
XNA Framework
Common Language Runtime (CLR)
Windows APIs, DirectX
Provided by you Provided for you
XNA has some sequence of built in methods
i. Initialize Device
ii. Load Game Assets
iii. Update
iv. Draw Game On The Screen
v. Unload Game
vi. Free Resources
Life Cycle Of XNA Game
Life Cycle Of XNA Game
Do It Yourself
Initialize
Device
Load Game
Assets Update
Draw Game
On The Screen
Unload Game
Free
Resources
Microsoft XNA Game Studio 4.0
Develop Games With
Visual C#
Steps
1.Visual Studio > create XNA project
2.Understand IDE
3.Introduction Game1.cs
Add new references to the project
References > Add reference
Microsoft XNA Game Studio 4.0
Game Contents
Content Includes All Game Assets…
Game Contents
Textures , Sprites,
Fonts,
3D Models , Effects,
Music Tracks , Sound Effects,
Game Level Data
Microsoft XNA Game Studio 4.0
Contents Pipeline
Content Pipeline
What is Content Pipeline…?
Content Pipeline is a set of processes applied to a game’s assets
when the game is built.
Advantages of Content Pipeline
Content Pipeline
Make Game fast in the run-time.
Able to use standard file formats such as
jpg,bmp,png for textures and sprites
fbx,x for 3D meshes
mp3,wav for background music and sound fx.
Game Developer can insert the game assets conveniently
design by Game Artists.
Add content to project
Right Click On Content Section
Add content to project
Add > 1.New Item
or
2.Existing Item
Add > New Item
Microsoft XNA Game Studio 4.0
3.Introduction Game1.cs
Using .NET and XNA framework in C# project
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.Media;
Frameworks
Dot Net
Framework
XNA
Framework
Life Cycle Of XNA Game
Do It Yourself
Initialize
Device
Load Game
Assets Update
Draw Game
On The Screen
Unload Game
Free
Resources
Initialize Method
protected override void Initialize()
{
// TODO: Add your initialization logic here
base.Initialize();
}
Game1.cs
LoadContent Method
protected override void LoadContent()
{
// Create a new SpriteBatch, which can be used
to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
// TODO: use this.Content to load your game
content here
}
Game1.cs
Update Method
protected override void Update(GameTime gameTime)
{
// Allows the game to exit
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
// TODO: Add your update logic here
base.Update(gameTime);
}
Game1.cs
Draw Method
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
// TODO: Add your drawing code here
base.Draw(gameTime);
}
Game1.cs
UnloadContent Method
protected override void UnloadContent()
{
// TODO: Unload any non ContentManager content here
}
Game1.cs
Feedback
Chanakanakandala@gmail.com

More Related Content

What's hot

New features of windows 7
New features of windows 7New features of windows 7
New features of windows 7Colleen Kelly
 
Report windows 8.1 presentation
Report windows 8.1 presentationReport windows 8.1 presentation
Report windows 8.1 presentationAnkitKumarBansal5
 
Windows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniyaWindows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniyavijaraniya
 
Game development with Cocos2d-x Engine
Game development with Cocos2d-x EngineGame development with Cocos2d-x Engine
Game development with Cocos2d-x EngineDuy Tan Geek
 
How to test drive development using Linux
How to test drive development using LinuxHow to test drive development using Linux
How to test drive development using LinuxCraig Dickson
 
Cocos2d-x C++ Windows 8 &Windows Phone 8
Cocos2d-x C++ Windows 8 &Windows Phone 8Cocos2d-x C++ Windows 8 &Windows Phone 8
Cocos2d-x C++ Windows 8 &Windows Phone 8Troy Miles
 
Windows 8 vs windows 7 ppt
Windows 8 vs windows 7 pptWindows 8 vs windows 7 ppt
Windows 8 vs windows 7 pptDiya Mirza
 
Difference between windows 7 and windows 8 and windows 8 features
 Difference between windows 7 and windows 8 and windows 8 features Difference between windows 7 and windows 8 and windows 8 features
Difference between windows 7 and windows 8 and windows 8 featuresRizwan Ansari
 
Hp Pavilion Dv7 1285dx
Hp Pavilion Dv7 1285dxHp Pavilion Dv7 1285dx
Hp Pavilion Dv7 1285dxguest4c26a67
 
Windows 8.1 seminar presentation
Windows 8.1 seminar presentationWindows 8.1 seminar presentation
Windows 8.1 seminar presentationAnkitKumarBansal5
 

What's hot (20)

New features of windows 7
New features of windows 7New features of windows 7
New features of windows 7
 
Report windows 8.1 presentation
Report windows 8.1 presentationReport windows 8.1 presentation
Report windows 8.1 presentation
 
windows 10
windows 10 windows 10
windows 10
 
Windows 7
Windows 7Windows 7
Windows 7
 
Windows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniyaWindows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniya
 
Game development with Cocos2d-x Engine
Game development with Cocos2d-x EngineGame development with Cocos2d-x Engine
Game development with Cocos2d-x Engine
 
How to test drive development using Linux
How to test drive development using LinuxHow to test drive development using Linux
How to test drive development using Linux
 
Windows Vista
Windows VistaWindows Vista
Windows Vista
 
Windows 10 overview
Windows 10 overviewWindows 10 overview
Windows 10 overview
 
Windows 10
Windows 10Windows 10
Windows 10
 
Backtrack Manual Part2
Backtrack Manual Part2Backtrack Manual Part2
Backtrack Manual Part2
 
Cocos2d-x C++ Windows 8 &Windows Phone 8
Cocos2d-x C++ Windows 8 &Windows Phone 8Cocos2d-x C++ Windows 8 &Windows Phone 8
Cocos2d-x C++ Windows 8 &Windows Phone 8
 
Windows 8 vs windows 7 ppt
Windows 8 vs windows 7 pptWindows 8 vs windows 7 ppt
Windows 8 vs windows 7 ppt
 
Mac Operating System
Mac Operating SystemMac Operating System
Mac Operating System
 
Windows 8 ppt
Windows 8 pptWindows 8 ppt
Windows 8 ppt
 
Windows 10
Windows 10Windows 10
Windows 10
 
Difference between windows 7 and windows 8 and windows 8 features
 Difference between windows 7 and windows 8 and windows 8 features Difference between windows 7 and windows 8 and windows 8 features
Difference between windows 7 and windows 8 and windows 8 features
 
Hp Pavilion Dv7 1285dx
Hp Pavilion Dv7 1285dxHp Pavilion Dv7 1285dx
Hp Pavilion Dv7 1285dx
 
Windows 10
Windows 10Windows 10
Windows 10
 
Windows 8.1 seminar presentation
Windows 8.1 seminar presentationWindows 8.1 seminar presentation
Windows 8.1 seminar presentation
 

Viewers also liked

Revaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazineRevaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazineThe Rockefeller Foundation
 
DIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative TechnologistDIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative Technologistheidihysell
 
9th chapter 4 quiz.
9th chapter 4 quiz.9th chapter 4 quiz.
9th chapter 4 quiz.mohan bio
 
Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013Samantha Noble
 
XML simple Introduction
XML simple IntroductionXML simple Introduction
XML simple Introductionalphap13
 
Agile concepts for quality and process engineers for slideshare
Agile concepts for quality and process engineers   for slideshareAgile concepts for quality and process engineers   for slideshare
Agile concepts for quality and process engineers for slideshareYuval Yeret
 
Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!David Black
 
10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile Picture10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile PictureTariq Ahmad
 
Comparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New YorkComparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New YorkJohn Citibois
 
Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)Charlie Pankey
 
PhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for ChildrenPhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for ChildrenPhRMA
 
13 hja 01 motive power mst
13 hja 01 motive power mst13 hja 01 motive power mst
13 hja 01 motive power mstHenning Jacobsen
 
Tuenti Release Workflow v1.1
Tuenti Release Workflow v1.1Tuenti Release Workflow v1.1
Tuenti Release Workflow v1.1Tuenti
 
Dr. Chris Vinnard's 2013 HIV Treatment Update
Dr. Chris Vinnard's 2013 HIV Treatment UpdateDr. Chris Vinnard's 2013 HIV Treatment Update
Dr. Chris Vinnard's 2013 HIV Treatment UpdateOffice of HIV Planning
 

Viewers also liked (20)

Revaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazineRevaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazine
 
DIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative TechnologistDIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative Technologist
 
BAR GRAPH
BAR GRAPHBAR GRAPH
BAR GRAPH
 
9th chapter 4 quiz.
9th chapter 4 quiz.9th chapter 4 quiz.
9th chapter 4 quiz.
 
Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013
 
XML simple Introduction
XML simple IntroductionXML simple Introduction
XML simple Introduction
 
Agile concepts for quality and process engineers for slideshare
Agile concepts for quality and process engineers   for slideshareAgile concepts for quality and process engineers   for slideshare
Agile concepts for quality and process engineers for slideshare
 
Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!
 
10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile Picture10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile Picture
 
Comparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New YorkComparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New York
 
Hello
HelloHello
Hello
 
Momentos
MomentosMomentos
Momentos
 
Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)
 
Informatica tarea
Informatica tareaInformatica tarea
Informatica tarea
 
PhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for ChildrenPhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for Children
 
Daneia Stratighkh Katagrafh
Daneia Stratighkh KatagrafhDaneia Stratighkh Katagrafh
Daneia Stratighkh Katagrafh
 
The Apprentiice Profile
The Apprentiice ProfileThe Apprentiice Profile
The Apprentiice Profile
 
13 hja 01 motive power mst
13 hja 01 motive power mst13 hja 01 motive power mst
13 hja 01 motive power mst
 
Tuenti Release Workflow v1.1
Tuenti Release Workflow v1.1Tuenti Release Workflow v1.1
Tuenti Release Workflow v1.1
 
Dr. Chris Vinnard's 2013 HIV Treatment Update
Dr. Chris Vinnard's 2013 HIV Treatment UpdateDr. Chris Vinnard's 2013 HIV Treatment Update
Dr. Chris Vinnard's 2013 HIV Treatment Update
 

Similar to Xna game development

Windows phone 7 xna
Windows phone 7 xnaWindows phone 7 xna
Windows phone 7 xnaGlen Gordon
 
XNA and Windows Phone
XNA and Windows PhoneXNA and Windows Phone
XNA and Windows PhoneGlen Gordon
 
Creating Video Games From Scratch Sky Con
Creating Video Games From Scratch Sky ConCreating Video Games From Scratch Sky Con
Creating Video Games From Scratch Sky ConMartha Rotter
 
Games Technologies
Games TechnologiesGames Technologies
Games TechnologiesOded Sharon
 
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
 
Writing Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game StudioWriting Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game StudioTim Thomas
 
Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!
Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!
Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!David Isbitski
 
Writing Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game StudioWriting Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game StudioTim Thomas
 
PRESENTATION ON Game Engine
PRESENTATION ON Game EnginePRESENTATION ON Game Engine
PRESENTATION ON Game EngineDiksha Bhargava
 
Leveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile PlatformsLeveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile Platformschristopherfairbairn
 
Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011Karsten Wysk
 

Similar to Xna game development (20)

Xna Demo.Ppt
Xna Demo.PptXna Demo.Ppt
Xna Demo.Ppt
 
Windows phone 7 xna
Windows phone 7 xnaWindows phone 7 xna
Windows phone 7 xna
 
XNA and Windows Phone
XNA and Windows PhoneXNA and Windows Phone
XNA and Windows Phone
 
Xna
XnaXna
Xna
 
XNA Intro Workshop
XNA Intro WorkshopXNA Intro Workshop
XNA Intro Workshop
 
Creating Video Games From Scratch Sky Con
Creating Video Games From Scratch Sky ConCreating Video Games From Scratch Sky Con
Creating Video Games From Scratch Sky Con
 
Overview
OverviewOverview
Overview
 
Deakin
DeakinDeakin
Deakin
 
Beginners XNA
Beginners XNABeginners XNA
Beginners XNA
 
Games Technologies
Games TechnologiesGames Technologies
Games Technologies
 
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
 
Writing Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game StudioWriting Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game Studio
 
Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!
Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!
Living the Dream: Make the Video Game You’ve Always Wanted and Get Paid For It!
 
Writing Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game StudioWriting Games in .NET with XNA Game Studio
Writing Games in .NET with XNA Game Studio
 
PRESENTATION ON Game Engine
PRESENTATION ON Game EnginePRESENTATION ON Game Engine
PRESENTATION ON Game Engine
 
Leveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile PlatformsLeveraging Microsoft Embedded and Mobile Platforms
Leveraging Microsoft Embedded and Mobile Platforms
 
Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011
 
Vido game and kinect
Vido game and kinectVido game and kinect
Vido game and kinect
 
LO1 - Lesson 6 - Software
LO1 - Lesson 6 - SoftwareLO1 - Lesson 6 - Software
LO1 - Lesson 6 - Software
 

Recently uploaded

Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfIdiosysTechnologies1
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 

Recently uploaded (20)

Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdf
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 

Xna game development

  • 1. Game Development With Microsoft XNA Game Studio Do It Yourself Introduction To XNA Game Studio By Chanaka Nakandala
  • 2. Game Development With Microsoft XNA Game Studio Do It Yourself What is XNA Game Studio..? XNA is a Framework and Toolset Provided by Microsoft Corporation for game development tasks. That mean XNA is not a “Game Engine” , It’s a “Code library”. XNA is build on top of the DirectX 9c.
  • 3. Core Frameworks in XNA Framework Graphics Audio Input Game Math Storage
  • 4. Microsoft XNA Game Studio 4.0 Features
  • 5. Cross platform Features What are those platforms..? Windows Operating Systems (Windows Vista, Windows 7, Windows 8) XBox 360 Windows Phone Zune HD (only sprite based 2D games)
  • 6.
  • 7.
  • 8. Cross platform - Computer Features
  • 9. Cross platform – Xbox 360 Features
  • 10. Cross platform – Windows Mobile Features
  • 11. Cross platform - Zune Features
  • 12. Graphics Features Sprite Batch for develop 2D games and Particale System 1.Normal Mapping 2.Per Pixel Lighting 3.Parallax Mapping Enable to using 3D Models , Effects and Shaders Support for HLSL (High Level Shader Language)
  • 13. Inputs Features Easy to getting User Inputs 1.Mouse 2.Keyboard 3.Xbox 360 Game Controller 4.Touch Panel ( Windows Phone , Zune ) 5.Accelermetor Provides
  • 14. Audio Features Game audio is Based on XACT (Cross-Platform Audio Creation Tool) 3D Audio Able to use audio files via their logical names Inbuilt XACT Tool as the sound asset Support for Looping , Streaming and Memory Management
  • 15. Math Features Support for Vector , Matrix , Plane , Sphere , Curve Intersection Helpers Movement Helpers
  • 16. Storage Features Easier to Read and Write data to save game data Save game data file in correct location in the each platform
  • 17. Networking Features Easy to create LAN Based Games. Support for HTTP and TCP/UDP protocols to communicate with servers and devices Able to create Multiplayer games to play through the Internet
  • 18. How to develop a game using XNA..? You may needs Microsoft Visual Studio Visual C# / Visual Basic.net Microsoft XNA Game Studio 4.0 ……And Windows Operating System
  • 19. How to develop a game using XNA..? You may needs Graphics Card supports Minimum Shader Model 1.1 DirectX 9.0c
  • 20. How to develop a game using XNA..? Gain of Visual C# / Visual Basic.net Visual C# 2.0 , Visual C# 3.0 or Visual Basic.net are using as the programming language.
  • 21. Components of Microsoft XNA Game Studio Microsoft Visual Studio XNA Framework .net Framework .net Compact Framework Windows Phone Xbox 360 Zune Windows PC
  • 22. XNA Game Studio Architecture Game code (C#,VB) & Content XNA Framework Common Language Runtime (CLR) Windows APIs, DirectX Provided by you Provided for you
  • 23. XNA has some sequence of built in methods i. Initialize Device ii. Load Game Assets iii. Update iv. Draw Game On The Screen v. Unload Game vi. Free Resources Life Cycle Of XNA Game
  • 24. Life Cycle Of XNA Game Do It Yourself Initialize Device Load Game Assets Update Draw Game On The Screen Unload Game Free Resources
  • 25. Microsoft XNA Game Studio 4.0 Develop Games With Visual C#
  • 26. Steps 1.Visual Studio > create XNA project 2.Understand IDE 3.Introduction Game1.cs
  • 27. Add new references to the project References > Add reference
  • 28. Microsoft XNA Game Studio 4.0 Game Contents
  • 29. Content Includes All Game Assets… Game Contents Textures , Sprites, Fonts, 3D Models , Effects, Music Tracks , Sound Effects, Game Level Data
  • 30. Microsoft XNA Game Studio 4.0 Contents Pipeline
  • 31. Content Pipeline What is Content Pipeline…? Content Pipeline is a set of processes applied to a game’s assets when the game is built.
  • 32. Advantages of Content Pipeline Content Pipeline Make Game fast in the run-time. Able to use standard file formats such as jpg,bmp,png for textures and sprites fbx,x for 3D meshes mp3,wav for background music and sound fx. Game Developer can insert the game assets conveniently design by Game Artists.
  • 33. Add content to project Right Click On Content Section
  • 34. Add content to project Add > 1.New Item or 2.Existing Item
  • 35. Add > New Item
  • 36. Microsoft XNA Game Studio 4.0 3.Introduction Game1.cs
  • 37. Using .NET and XNA framework in C# project 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.Media; Frameworks Dot Net Framework XNA Framework
  • 38. Life Cycle Of XNA Game Do It Yourself Initialize Device Load Game Assets Update Draw Game On The Screen Unload Game Free Resources
  • 39. Initialize Method protected override void Initialize() { // TODO: Add your initialization logic here base.Initialize(); } Game1.cs
  • 40. LoadContent Method protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here } Game1.cs
  • 41. Update Method protected override void Update(GameTime gameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.Exit(); // TODO: Add your update logic here base.Update(gameTime); } Game1.cs
  • 42. Draw Method protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); // TODO: Add your drawing code here base.Draw(gameTime); } Game1.cs
  • 43. UnloadContent Method protected override void UnloadContent() { // TODO: Unload any non ContentManager content here } Game1.cs