SlideShare a Scribd company logo
Xna … let’s play !
Agenda
• programming concepts .
•about Xna .
• General game concepts .
• installing Xna .
•First Xna game .
•Explore the code .
•Let’s make a game .
programming concepts
•
•
•
•
•
•

What is programming .
C# language .
Data types .
conditions & loops .
Data structure .
OOP .
about Xna
• Framework developed by Microsoft .
• No more support from Microsoft by 2014  .
• So we will code 2D games with Xna and to go
deeper(3D) we will turn to OpenGL .
General game concepts
• Game initialization .
• Load content .
• Game loop :
1- update () .
2- draw () .
installing Xna
• Microsoft .Net Framework 4.0
• Visual studio 2010 c# .
• XNA Game Studio 4.0 .
First Xna game
Let’s build our first Xna Game ! 
Explore the code
•
•
•
•
•
•
•

Declaration area .
Constructor .
Initialization .
Load content .
Unload content .
Update .
Draw .
Let’s make a game
• Load sprites .
• Move sprites .
• Collision detection .
References
• Coursera Xna course .
• XNA 4.0 Game Development by Example Beginner's Guide book .
• A Simple Introduction to Game Programming With
C# and XNA 3.1 book .
Thank You

More Related Content

PPTX
Writing Games in .NET with XNA Game Studio
PPTX
Mobile Handsets
PPTX
30 Second Guide to Punkmoney
PDF
Garage 紹介 slideshare
PDF
Krishi mitr
DOC
Why prayers go unanswered
PPTX
World Cup
PDF
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen
Writing Games in .NET with XNA Game Studio
Mobile Handsets
30 Second Guide to Punkmoney
Garage 紹介 slideshare
Krishi mitr
Why prayers go unanswered
World Cup
Mobiliteitsscan.com MKB demorapport - Slimmer Werken Slimmer Reizen

Viewers also liked (20)

PDF
Wil Group, Development Solutions in Africa
PDF
Integration of informal economic cross-border networks in West Africa
PPTX
Audience theories
DOCX
O Londres de Dickens
PPTX
Socialprob
PDF
Aemas newsletter december 2011 vol. 1 issue no. 2
PPTX
O fío de Ariadna
PPTX
Καρκίνος μαστού σε άντρες Βόλος 2015
PPSX
The Lost Gardens of Heligan
PDF
2012 top 10 wishes result
PDF
Forward Branding
PDF
Wil Group global survey 2015 16
DOC
Reactancia e impedancia ( imprimir)
PPT
PunkMoney: How To Print Money on Twitter (2)
PPTX
Data modal and its business use
PDF
Congresmap VSG congres 2011
PPTX
The daily mail
PPTX
Research
PPTX
.: 3rd i innovations :. Portfolio
PPTX
DML (Data Manipulation Language).Sqlserver
Wil Group, Development Solutions in Africa
Integration of informal economic cross-border networks in West Africa
Audience theories
O Londres de Dickens
Socialprob
Aemas newsletter december 2011 vol. 1 issue no. 2
O fío de Ariadna
Καρκίνος μαστού σε άντρες Βόλος 2015
The Lost Gardens of Heligan
2012 top 10 wishes result
Forward Branding
Wil Group global survey 2015 16
Reactancia e impedancia ( imprimir)
PunkMoney: How To Print Money on Twitter (2)
Data modal and its business use
Congresmap VSG congres 2011
The daily mail
Research
.: 3rd i innovations :. Portfolio
DML (Data Manipulation Language).Sqlserver
Ad

Similar to introduction to Xna (20)

PPTX
Xna game development
PPT
Road to Success (July 1st) - Mobile Game Development Alternatives - Andrew Bu...
PPT
XNAPresentation
PDF
Lecture 1 Introduction to VR Programming
PPTX
Writing Games in .NET with XNA Game Studio
PDF
Confrontation Pipeline and SCons
PPT
Delta Engine @ CeBit 2011
PPTX
XNA in a Day
PPTX
Intro to Indie Game Development
PPTX
Making HTML5 Games with Phaser
PPTX
Windows Phone XNA Games
PPTX
Game development -session on unity 3d
PDF
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
PPTX
Game development pipeline
PDF
Creating Video Games From Scratch Sky Con
PPT
Xna Demo.Ppt
DOC
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
PPTX
Vido game and kinect
DOCX
Xna game development
Road to Success (July 1st) - Mobile Game Development Alternatives - Andrew Bu...
XNAPresentation
Lecture 1 Introduction to VR Programming
Writing Games in .NET with XNA Game Studio
Confrontation Pipeline and SCons
Delta Engine @ CeBit 2011
XNA in a Day
Intro to Indie Game Development
Making HTML5 Games with Phaser
Windows Phone XNA Games
Game development -session on unity 3d
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
Game development pipeline
Creating Video Games From Scratch Sky Con
Xna Demo.Ppt
Mini Project- Games Development For The Desktop Pc And Dedicated Gaming Machine
Vido game and kinect
Ad

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
advance database management system book.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
Computer Architecture Input Output Memory.pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
HVAC Specification 2024 according to central public works department
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
1_English_Language_Set_2.pdf probationary
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Weekly quiz Compilation Jan -July 25.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
History, Philosophy and sociology of education (1).pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Computing-Curriculum for Schools in Ghana
advance database management system book.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Computer Architecture Input Output Memory.pptx
Paper A Mock Exam 9_ Attempt review.pdf.
Chinmaya Tiranga quiz Grand Finale.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
HVAC Specification 2024 according to central public works department
B.Sc. DS Unit 2 Software Engineering.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
1_English_Language_Set_2.pdf probationary
Indian roads congress 037 - 2012 Flexible pavement
Virtual and Augmented Reality in Current Scenario
FORM 1 BIOLOGY MIND MAPS and their schemes
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين

introduction to Xna

Editor's Notes

  • #5: 1- This method only runs once, The Initialize() method is the ideal place to set up things like the screen resolution, toggle full screen mode, and enable the mouse in a Windows project. Other game objects that do not rely on external content such as graphics and sound resources can also be initialized here.2- Part of the responsibility of the base Initialize() method is to call LoadContent() when the normal initialization has completed. The method is used to read in any graphical and audio resources your game will need. The default LoadContent() method is also where the spriteBatch object gets initialized. You will use the spriteBatch instance to draw objects to the screen during execution of the Draw() method.3.1- Once LoadContent() has finished doing its job, an XNA game enters an endless loop in which it attempts to call the Update() method 60 times per second. if your Update() logic starts to take too long to run, your game will begin skipping calls to the Draw() method in favour of multiple calls to Update() in an attempt to catch up with the current game time. ? All of your game logic gets built into the Update() method. It is here that you check for player input, move sprites, spawn enemies, track scores, and everything else except draw to the display. Update() receives a single parameter called gameTime, which can be used to determine how much time has elapsed since the previous call to Update() or to determine if your game is skipping Draw() calls by checking its IsRunningSlowly property.3.1- The final method in the default Game1.cs file is responsible, not surprisingly, for drawing the current game state to the display. Draw() is normally called once after each call to Update() unless something is happening to slow down the execution of your game. In that case, Draw() calls may be skipped in order to call Update() more frequently. There will always be at least one call to Update() between calls to Draw(), however, as sequential Draw() calls would provide no benefit—nothing in the game state will have changed.
  • #7: Build a windows game in VS 2010 .
  • #8: Declare objects and variables .Create game object .- Initialize game world + external content .- Load graphics / sound effects .- Update game world + exit from game .- Draw all visible entities in the game .
  • #9: resize resolution >> constructor Declare objects >> Declaration area Load content >> load contentDraw >> draw sprites