Book description
Want to develop games for Xbox 360 and Windows Phone 7? This hands-on book will get you started with Microsoft's XNA 4.0 development framework right away -- even if you have no experience developing games. Although XNA includes several key concepts that can be difficult for beginning web developers to grasp, Learning XNA 4.0 shortens the learning curve by walking you through the framework in a clear and understandable step-by-step format.
Each chapter offers a self-contained lesson with illustrations and annotated examples, along with exercises and review questions to help you test your understanding and practice new skills as you go. Once you've finished this book, you'll know how to develop your own sophisticated games from start to finish.
- Learn game development from 2D animation to 3D cameras and effects
- Delve into high-level shader language (HLSL) and introductory artificial intelligence concepts
- Build three complete, exciting games using 2D, 3D, and multiplayer techniques
- Develop for and deploy your games to the Xbox 360 and Windows Phone 7
Publisher resources
Table of contents
- Dedication
- A Note Regarding Supplemental Files
- Preface
-
1. What’s New in XNA 4.0?
- Revised Project Folder Structure
- Develop Games for Windows Phone 7 Series
- Graphics Profiles
- Configurable Effects
- Built-in State Objects
- Scalars and Orientation
- Revised Input API
- Additional Audio API
- Music and Picture Enumeration and Video Playback
- Modified and Added Classes and Methods
- Test Your Knowledge: Quiz
- 2. Getting Started
-
3. Fun with Sprites
- A Look Behind the Scenes
- Game Development Versus Polling
- Modifying Your Game
- Adding a Sprite to Your Project
- Loading and Drawing Your Sprite
- Transparency and Other Options
- Layer Depth
- Let’s Move
- Animation
- Adjusting the Framerate
- Adjusting the Animation Speed
- What You Just Did
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercise
- 4. User Input and Collision Detection
- 5. Applying Some Object-Oriented Design
- 6. Sound Effects and Audio
- 7. Basic Artificial Intelligence
-
8. Putting It All Together
- Drawing 2D Text
- Randomly Generating Different Sprite Types
- Adding Some Variety to Your Sprites
- Adding a Background Image
- Game Scoring
- Game States
- Enabling/Disabling GameComponents
- Game-Over Logic and the Game-Over Screen
- Fine-Tuning Gameplay
- Creating Power-Ups
- What You Just Did
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercise
- 9. 3D Game Development
- 10. 3D Models
- 11. Creating a First-Person Camera
- 12. 3D Collision Detection and Shooting
- 13. HLSL Basics
- 14. Particle Systems
- 15. Wrapping Up Your 3D Game
- 16. Deploying to the Xbox 360
- 17. Developing for Windows Phone 7
-
18. Multiplayer Games
- Split-Screen Functionality
- Network Game Development
- Network Configurations
- Writing an XNA Network Game
- Modifying the Sprite Class
- Modifying the UserControlledSprite Class
- Coding Your Game1 Class
- Adding Update Code
- Adding Draw Code
- Adding Biohazard Bombs of Insanity!
- What You Just Did
- Summary
- Test Your Knowledge: Quiz
-
A. Answers to Quizzes and Exercises
- Chapter 1: What’s New in XNA 4.0?
- Chapter 2: Getting Started
- Chapter 3: Fun with Sprites
- Chapter 4: User Input and Collision Detection
- Chapter 5: Applying Some Object-Oriented Design
- Chapter 6: Sound Effects and Audio
- Chapter 7: Basic Artificial Intelligence
- Chapter 8: Putting It All Together
- Chapter 9: 3D Game Development
- Chapter 10: 3D Models
- Chapter 11: Creating a First-Person Camera
- Chapter 12: 3D Collision Detection and Shooting
- Chapter 13: HLSL Basics
- Chapter 14: Particle Systems
- Chapter 15: Wrapping Up Your 3D Game
- Chapter 16: Deploying to the Xbox 360
- Chapter 17: Developing for Windows Phone 7
- Chapter 18: Multiplayer Games
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Learning XNA 4.0
- Author(s):
- Release date: December 2010
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449394622
You might also like
book
Learning XNA 3.0
Do you have what it takes to become a game developer? With this hands-on book, you'll …
book
XNA 4.0 Game Development by Example Beginner's Guide
" Create your own exciting games with Microsoft XNA 4.0 Dive headfirst into game creation with …
book
Mastering LibGDX Game Development
Leverage the power of LibGDX to create a fully functional, customizable RPG game for your own …
book
HLSL and Pixel Shaders for XAML Developers
Pixel shaders are some of the more powerful graphic tools available for XAML programmers, but shader …