This engaging, learn-by-doing guide combines fun and games with the fundamentals of computer programming. Computer programming often has a reputation as being mired in details and short on fun. Now Xbox gamers and aspiring developers can have fun while learning hands-on how to create and customize Xbox 360 games! With XNA Game Studio and Visual C# 2005, beginning programmers can easily modify existing Xbox games—and even learn how to build their own!
Getting Started
Chapter 1 Computers, Xboxes, C#, XNA, and You
Introduction
How the Book Works
C# and XNA
Getting Started
Writing Your First Program
Conclusion
Pop Quiz
Chapter 2 Programs, Data, and Pretty Colors
Introduction
Making a Game Display
Controlling Color
Conclusion
Pop Quiz
Chapter 3 Getting Player Input
Introduction
Reading a Gamepad
Using the Keyboard
Adding Vibration
Program Bugs
Conclusion
Pop Quiz
Using the XNA Framework
Chapter 4 Displaying Images
Introduction
Resources and Content
Using Resources in a Game
Conclusion
Pop Quiz
Chapter 5 Writing Text
Introduction
Text and Computers
Getting the Date and Time
Making a Prettier Clock with 3D Text
Creating Fake 3D
Conclusion
Pop Quiz
Chapter 6 Creating a Multiplayer Game
Introduction
Conclusion
Pop Quiz
Chapter 7 Playing Sounds
Adding Sound
Using the XACT Audio Creation Tool
Conclusion
Pop Quiz
Chapter 8 Creating a Timer
Making Another Game
Finding Winners Using Arrays
Conclusion
Pop Quiz
Chapter 9 Reading Text Input
Using the Keyboard in XNA
Working with Arrays, Objects, and References
Displaying Keys
Conclusion
Pop Quiz
Games and Programming
Chapter 10 Using C# Methods to Solve Problems
Introduction
Playing with Images
Creating a Zoom-Out
Conclusion
Pop Quiz
Chapter 11 A Game as a C# Program
Introduction
Creating Game Graphics
Projects, Resources, and Classes
Creating Game Objects
Conclusion
Pop Quiz
Chapter 12 Games, Objects, and State
Introduction
Adding Bread to Your Game
Adding Tomato Targets
Conclusion
Pop Quiz
Chapter 13 Creating Gameplay
Introduction
Making a Finished Game
Improving Code Design
Adding a Background
Adding a Title Screen
Conclusion
Pop Quiz
Chapter 14 Making Complete Games
Introduction
Hide The Gamepad
Pelmanism
Pell Mell Pelmanism
Game Creation
Conclusion
Very Silly Games
verysillygames.com
Appendix Pop Quiz Answers
Chapter 1: Pop Quiz Answers
Chapter 2: Pop Quiz Answers
Chapter 3: Pop Quiz Answers
Chapter 4: Pop Quiz Answers
Chapter 5: Pop Quiz Answers
Chapter 6: Pop Quiz Answers
Chapter 7: Pop Quiz Answers
Chapter 8: Pop Quiz Answers
Chapter 9: Pop Quiz Answers
Chapter 10: Pop Quiz Answers
Chapter 11: Pop Quiz Answers
Chapter 12: Pop Quiz Answers
Chapter 13: Pop Quiz Answers
Appendix Glossary
Appendix Rob Miles
Title:
Microsoft® XNA® Game Studio 2.0: Learn Programming Now!
Rob Miles has been teaching computer programming for more than 25 years. An expert on Visual C#® and a Microsoft® MVP for Device Application Development, Rob enjoys inspiring new and experienced programmers. As well as writing his own games, programs, and poetry, Rob has consulted on a wide range of commercial software projects.