did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780596521950

Learning XNA 3.0

by
  • ISBN13:

    9780596521950

  • ISBN10:

    0596521952

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2008-12-03
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $34.99 Save up to $3.50
  • Buy New
    $33.94

    USUALLY SHIPS IN 2-3 BUSINESS DAYS

Supplemental Materials

What is included with this book?

Summary

Have you ever wondered what it takes to become a game developer? Or what about taking it a step further and developing for a next-gen console like the Xbox 360 instead of just a PC? With Microsoft's XNA framework, game development has never been more straightforward. This book takes you through introductory and intermediate game development concepts from 2D animation to 3D cameras and effects. Delve into high level shader language (HLSL) and introductory artificial intelligence concepts. The author avoids unnecessary details on background architecture and historical facts and instead focuses on what you want most - developing games from start to finish. The author is an experienced university-level game development instructor and the book was written specifically as a resource for first time game developers. The hands-on approach walks you through the XNA 2.0 framework for Windows and Xbox 360 development in a concise and easy to follow format.

Author Biography

Aaron Reed has extensive software development experience and more importantly, experience in software development education. Since 2004 he has taught courses at Neumont University in .NET, web development and web services, XNA, systems design and architecture, and more.

Aaron's experience in teaching both DirectX and XNA for several years to university-level students helps him understand what topics are easily understood and which ones need more depth and emphasis. Through experience in the classroom he also has a good understanding of what format and sequence makes the most sense to present the material. This book follows that format and is meant to present game development concepts in the way most efficient and most comprehendible as proven in the classroom.

Table of Contents

Prefacep. xiii
Getting Startedp. 1
System Requirementsp. 1
Additional Resourcesp. 2
Installationp. 2
Creating Your First XNA Applicationp. 4
What You Just Didp. 5
Summaryp. 6
Test Your Knowledge: Quizp. 7
Fun with Spritesp. 8
A Look Behind the Scenesp. 8
Game Development Versus Pollingp. 11
Modifying Your Gamep. 14
Adding a Sprite to Your Projectp. 15
Loading and Drawing Your Spritep. 18
Transparency and Other Optionsp. 21
Layer Depthp. 25
Let's Movep. 28
Animationp. 30
Adjusting the Frameratep. 35
Adjusting the Animation Speedp. 36
What You Just Didp. 38
Summaryp. 38
Test Your Knowledge: Quizp. 39
Test Your Knowledge: Exercisep. 39
User Input and Collision Detectionp. 40
More Spritesp. 40
Keyboard Inputp. 43
Mouse Inputp. 45
Gamepad Inputp. 47
Keeping the Sprite in the Game Windowp. 50
Collision Detectionp. 50
What You Just Didp. 55
Summaryp. 56
Test Your Knowledge: Quizp. 56
Test Your Knowledge: Exercisep. 57
Applying Some Object-Oriented Designp. 58
Designing Your Classesp. 58
Creating a Sprite Classp. 59
Creating a User-Controlled Sprite Classp. 63
Creating an Automated Spritep. 65
Game Componentsp. 67
Coding the SpriteManagerp. 69
Cleaning Upp. 71
Making Them Movep. 74
What You Just Didp. 74
Summaryp. 74
Test Your Knowledge: Quizp. 75
Test Your Knowledge: Exercisep. 75
Sound Effects and Audiop. 76
Using XACTp. 77
Implementing XACT Audio Files in Codep. 83
Using the Simplified API for Sound and Audiop. 85
Adding More Sound to Your Gamep. 86
What You Just Didp. 91
Summaryp. 91
Test Your Knowledge: Quizp. 91
Test Your Knowledge: Exercisep. 91
Basic Artificial Intelligencep. 92
The Turing Testp. 93
Creating Sprites at Random Intervalsp. 93
Randomly Spawning Spritesp. 95
Irrelevant Objectsp. 99
Creating a Chasing Spritep. 101
Creating an Evading Spritep. 107
What You Just Didp. 112
Summaryp. 113
Test Your Knowledge: Quizp. 113
Test Your Knowledge: Exercisep. 113
Putting It All Togetherp. 114
Drawing 2D Textp. 115
Randomly Generating Different Sprite Typesp. 121
Adding Some Variety to Your Spritesp. 123
Adding a Background Imagep. 128
Game Scoringp. 130
Game Statesp. 137
Enabling/Disabling GameComponentsp. 141
Game-Over Logic and the Game-Over Screenp. 143
Fine-Tuning Gameplayp. 150
Creating Power-Upsp. 154
What You Just Didp. 159
Summaryp. 159
Test Your Knowledge: Quizp. 160
Test Your Knowledge: Exercisep. 160
Deploying to the Microsoft Zunep. 161
Setting Up Your Zune Device Connectionp. 161
Creating a Zune Projectp. 163
Input on the Zunep. 165
Audio on the Zunep. 167
Resolution and Gameplay Issuesp. 169
Converting the Collision Game from Windows to Zunep. 170
Conditional Compilation Symbolsp. 171
Converting the Collision Game Audiop. 173
Converting the Collision Game's Player Input Codep. 175
Converting the Collision Game's Screen Sizep. 178
Zune Performancep. 179
What You Just Didp. 180
Summaryp. 181
Test Your Knowledge: Quizp. 181
3D Game Developmentp. 182
Coordinate Systemsp. 182
Camerasp. 184
Creating a 3D Camerap. 186
Drawing Primitivesp. 189
Matrix Multiplicationp. 194
Movement and Rotationp. 194
Backface Cullingp. 197
More on Rotationsp. 198
Even More Rotationsp. 200
Primitive Typesp. 202
Applying Texturesp. 204
What You Just Didp. 209
Summaryp. 209
Test Your Knowledge: Quizp. 210
Test Your Knowledge: Exercisep. 211
3D Modelsp. 212
Using 3D Modelsp. 212
Setting Up the Projectp. 213
Adding a Model to Your Projectp. 216
Drawing a Model Using a BasicModel Classp. 217
Adding a Model Managerp. 221
Rotating Your Modelp. 224
What You Just Didp. 226
Summaryp. 226
Test Your Knowledge: Quizp. 226
Test Your Knowledge: Exercisep. 227
Creating a First-Person Camerap. 228
Components of a Moving 3D Camerap. 228
Moving in a First-Person Camerap. 232
Rotations in a First-Person Camerap. 235
Coding the Camera for the 3D Gamep. 240
What You Just Didp. 244
Summaryp. 244
Test Your Knowledge: Quizp. 245
Test Your Knowledge: Exercisep. 245
3D Collision Detection and Shootingp. 246
Creating a Moving Enemyp. 246
Adding Some Game Logicp. 248
Firing Shotsp. 257
3D Collision Detection and Bounding Spheresp. 261
Adding a Crosshairp. 265
Adding Soundp. 266
What You Just Didp. 273
Summaryp. 273
Test Your Knowledge: Quizp. 274
Test Your Knowledge: Exercisep. 274
HLSL Basicsp. 275
HLSL Syntaxp. 277
Dissecting a Sample HLSL Effect Filep. 278
Applying an HLSL Effect in C#p. 287
Applying HLSL Using Texturesp. 295
HLSL Effects: Creating a Negativep. 303
HLSL Effects: Blurp. 304
HLSL Effects: Grayscalep. 304
What You Just Didp. 306
Summaryp. 307
Test Your Knowledge: Quizp. 307
Test Your Knowledge: Exercisep. 307
Particle Systemsp. 308
Creating a Custom Vertexp. 308
Creating a Particle Enginep. 312
Adding a Particle Effect Filep. 320
Adding Your Particle Engine to Your Gamep. 322
Adding a Starfieldp. 325
What You Just Didp. 330
Summaryp. 331
Test Your Knowledge: Quizp. 331
Wrapping Up Your 3D Gamep. 332
Adding a Splash Screen Game Componentp. 332
Keeping Scorep. 342
Adding a Power-Upp. 347
What You Just Didp. 352
Test Your Knowledge: Exercisep. 353
Deploying to the Xbox 360p. 354
Adding an Xbox 360 Devicep. 354
Converting a Project to Run on the Xbox 360p. 358
Supporting Gamepad Inputp. 361
Deploying to the Xbox 360p. 367
Xbox 360 Display Settingsp. 369
The Title Safe Regionp. 370
What You Just Didp. 372
Summaryp. 372
Test Your Knowledge: Quizp. 373
Multiplayer Gamesp. 374
Split-Screen Functionalityp. 374
Network Game Developmentp. 384
Network Configurationsp. 385
Writing an XNA Network Gamep. 387
Modifying the Sprite Classp. 388
Modifying the UserControlledSprite Classp. 388
Coding Your Game1 Classp. 391
Adding Update Codep. 394
Adding Draw Codep. 410
Adding Biohazard Bombs of Insanity!p. 415
What You Just Didp. 422
Summaryp. 423
Test Your Knowledge: Quizp. 424
Answers to Quizzes and Exercisesp. 425
Indexp. 477
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program