SlideShare a Scribd company logo
Game DevelopmentUsing Visual Studio and XNA
Arvind Raja YadavMicrosoft Student PartnerLead Programmer – Neptune, a Half Life 2 ModificationProgrammer – Dystopia, a Half Life 2 Modification available on SteamI also make a lot of small games in various languages for fun
What is a game?
World of Goo = GameMS Word = SoftwareHow do we know the difference?
Here’s what games have that software doesn’t :Conditions for victory/failure;Testing various qualities of the player ;Withholding content from the player;Thinking for themselves ;Partially under the player’s control ;Changing objectives and/or methods;They are more fun!
The basic structure of a gameInitialize contentWhile (exit condition is false){Get user inputRun input related logic	Run input independent logicDraw graphics and play sounds}Shut down
Windows doesn’t allow direct access to it’s display and sound drivers.APIs make coding games much easierAPIs also mean that we need not worry about compatibility issuesWhy do we need an API to make games ?
I’m not going to teach you how to make Halo in 3 days.DISCLAIMERIt took me and my team about 2 weeks to make this level work.
IntroducingXNA allows you to make games for both Windows and Xbox 360 platforms using the same code and assets.
Getting started with XNAOpen Visual C# 2008 Express EditionSelect “File”, then “New Project”You should see a dialog like the one hereSelect “Windows Game (3.1)” and enter a name of your choice
The skeleton code
}Constructor;Initialize;LoadContent;UnloadContent;Update;DrawGetting content from the disk into the main memory + graphics memoryRemoving content from the memoryGame logic and drawing}}Contents of the game class
Display text on the screen
Display an image on the screen
Getting input from the keyboard
Changing window size (resolution);Full screen/windowed mode ;Changing window properties
Print a message when the image moves off-screenExercise : Make an image move using the arrow keys
Using the mouse
XNA Time Management
Our first game : Dodger
Congratulations!If everything went well, you just made a game by yourself !

More Related Content

PDF
DSC RNGPIT - Getting Started with Game Development Day 1
PDF
Game salad evaluation
PPTX
Unity 5 Overview
PPTX
Android Fish Game Development
PPT
Kodu game design
PPTX
Windows 8.1 Training Session 1 by Atidan
PPTX
S02.W02 - Some New Features of Windows
PPTX
Windows 8 - The Why and How - Basics and Introduction
DSC RNGPIT - Getting Started with Game Development Day 1
Game salad evaluation
Unity 5 Overview
Android Fish Game Development
Kodu game design
Windows 8.1 Training Session 1 by Atidan
S02.W02 - Some New Features of Windows
Windows 8 - The Why and How - Basics and Introduction

What's hot (20)

PPSX
Street runner final
PPTX
Proposal of 3d GAME Final Year Project
PDF
Mobile Game Development in Unity
PPTX
Windows 7 Presentation
PPTX
How to deliver a game in kodu
PPT
Windos 7 presentation
PPTX
Ppt on windows 8
PPTX
Windows 10
PPTX
Windows 7 Tips And Tricks
PPTX
Online Biz Smarts Windows 8.0 Why and How
PPS
Game Development Company, Flash Game Development,
PPTX
Design phase of game development of unity 2d game
PPTX
Gamemaker lesson 1
PPTX
Gamemaker views
PPTX
USMAN YAR
PDF
PPTX
Windows 8.0
PPTX
Features Of Windows 7
PPTX
New features of windows 7
PPTX
Game Development Overview - Novice Chapter 1
Street runner final
Proposal of 3d GAME Final Year Project
Mobile Game Development in Unity
Windows 7 Presentation
How to deliver a game in kodu
Windos 7 presentation
Ppt on windows 8
Windows 10
Windows 7 Tips And Tricks
Online Biz Smarts Windows 8.0 Why and How
Game Development Company, Flash Game Development,
Design phase of game development of unity 2d game
Gamemaker lesson 1
Gamemaker views
USMAN YAR
Windows 8.0
Features Of Windows 7
New features of windows 7
Game Development Overview - Novice Chapter 1
Ad

Viewers also liked (19)

PPT
Experience
PDF
Experience
PDF
The Israeli Opportunity
PPTX
Beginning Game Development in XNA
PDF
Concurso de fofotgrafia
PPT
Experience
PPS
אומגה 3
PPT
C:\Documents And Settings\Admin\рабочий стол\школьный сайт\методика обучения\...
PDF
Pcc Brochure Italian
PPSX
תדמית רינה
PDF
www.amiableAID.org
PPT
Experience
PPS
Effetto Ottico
PPT
Experience
PPT
roche-bobois presentation
PPTX
introduction to Xna
PDF
Process improvement workshop overview v. 2013
PPT
Steps to quality
PPT
Roche Bobois Through The Decades
Experience
Experience
The Israeli Opportunity
Beginning Game Development in XNA
Concurso de fofotgrafia
Experience
אומגה 3
C:\Documents And Settings\Admin\рабочий стол\школьный сайт\методика обучения\...
Pcc Brochure Italian
תדמית רינה
www.amiableAID.org
Experience
Effetto Ottico
Experience
roche-bobois presentation
introduction to Xna
Process improvement workshop overview v. 2013
Steps to quality
Roche Bobois Through The Decades
Ad

Similar to Beginning Game Development in XNA (20)

PPTX
Galactic Wars XNA Game
PPTX
Windows phone 7 xna
PPTX
XNA and Windows Phone
PDF
Presentación Unity
PPSX
Imaginecup
PDF
GDD 2011 - How to build kick ass video games for the cloud
PPTX
Indie Game Development Intro
ODP
HTML5 Game Development frameworks overview
PPTX
Xna game development
PPTX
WP7 HUB_XNA overview
DOCX
Shootemup report
PPTX
Developing for Consoles as an Indie in 2018
PDF
The Basics of Unity - The Game Engine
PPTX
Game Design Document - Step by Step Guide
PPTX
Android game ppt
PPT
Introduction To Game Programming
PPTX
Developing for consoles as an indie in 2019
PPTX
Developing games for consoles as an indie in 2019
PPTX
Video game development for everybody
PDF
Introduction to html5 game programming with impact js
Galactic Wars XNA Game
Windows phone 7 xna
XNA and Windows Phone
Presentación Unity
Imaginecup
GDD 2011 - How to build kick ass video games for the cloud
Indie Game Development Intro
HTML5 Game Development frameworks overview
Xna game development
WP7 HUB_XNA overview
Shootemup report
Developing for Consoles as an Indie in 2018
The Basics of Unity - The Game Engine
Game Design Document - Step by Step Guide
Android game ppt
Introduction To Game Programming
Developing for consoles as an indie in 2019
Developing games for consoles as an indie in 2019
Video game development for everybody
Introduction to html5 game programming with impact js

Recently uploaded (20)

PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Updated Idioms and Phrasal Verbs in English subject
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
master seminar digital applications in india
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
RMMM.pdf make it easy to upload and study
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
Cell Types and Its function , kingdom of life
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
What if we spent less time fighting change, and more time building what’s rig...
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Updated Idioms and Phrasal Verbs in English subject
Final Presentation General Medicine 03-08-2024.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
master seminar digital applications in india
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Anesthesia in Laparoscopic Surgery in India
Final Presentation General Medicine 03-08-2024.pptx
Cell Structure & Organelles in detailed.
RMMM.pdf make it easy to upload and study
Practical Manual AGRO-233 Principles and Practices of Natural Farming
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Cell Types and Its function , kingdom of life
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx

Beginning Game Development in XNA