Microsoft XNA Game Studio 4.0: Learn Programming Now!: How to program for Windows Phone 7, Xbox 360, Zune devices, and more

( 4 )


Now you can build your own games for your Xbox 360, Windows Phone 7, or Windows-based PC—as you learn the underlying concepts for computer programming. Use this hands-on guide to dive straight into your first project—adding new tools and tricks to your arsenal as you go. No experience required!

  • Learn XNA and C# fundamentals—and increase the...
See more details below
$26.74 price
(Save 10%)$29.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (20) from $1.99   
  • New (5) from $16.48   
  • Used (15) from $1.99   
Microsoft XNA Game Studio 4.0: Learn Programming Now!

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$13.49 price
(Save 43%)$23.99 List Price


Now you can build your own games for your Xbox 360, Windows Phone 7, or Windows-based PC—as you learn the underlying concepts for computer programming. Use this hands-on guide to dive straight into your first project—adding new tools and tricks to your arsenal as you go. No experience required!

  • Learn XNA and C# fundamentals—and increase the challenge with each chapter
  • Write code to create and control game behavior
  • Build your game’s display—from graphics and text to lighting and 3-D effects
  • Capture and cue sounds
  • Process input from keyboards and gamepads
  • Create features for one or multiple players
  • Tweak existing games—and invent totally new ones
Read More Show Less

Product Details

  • ISBN-13: 9780735651579
  • Publisher: Microsoft Press
  • Publication date: 3/1/2011
  • Pages: 466
  • Sales rank: 963,788
  • Product dimensions: 7.30 (w) x 8.90 (h) x 1.00 (d)

Meet the Author

Rob Miles has been teaching computer programming for more than 25 years. An expert on Visual C#(R) 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.

Read More Show Less

Table of Contents

Who This Book Is For;
System Requirements;
Code Samples;
Errata and Book Support;
We Want to Hear from You;
Stay in Touch;
Getting Started;
Chapter 1: Computers, C#, XNA, and You;
1.1 Introduction;
1.2 How the Book Works;
1.3 C# and XNA;
1.4 Getting Started;
1.5 Writing Your First Program;
1.6 Conclusion;
1.7 Chapter Review Questions;
Chapter 2: Programs, Data, and Pretty Colors;
2.1 Introduction;
2.2 Making a Game Program;
2.3 Working with Colors;
2.4 Controlling Color;
2.5 Conclusion;
2.6 Chapter Review Questions;
Chapter 3: Getting Player Input;
3.1 Introduction;
3.2 Reading a Gamepad;
3.3 Using the Keyboard;
3.4 Adding Vibration;
3.5 Program Bugs;
3.6 Conclusion;
3.7 Chapter Review Questions;
Images, Sound, and Text;
Chapter 4: Displaying Images;
4.1 Introduction;
4.2 Resources and Content;
4.3 Using Resources in a Game;
4.4 Conclusion;
4.5 Chapter Review Questions;
Chapter 5: Writing Text;
5.1 Introduction;
5.2 Text and Computers;
5.3 Getting the Date and Time;
5.4 Making a Prettier Clock with 3-D Text;
5.5 Creating Fake 3-D;
5.6 Conclusion;
5.7 Chapter Review Questions;
Chapter 6: Creating a Multi-Player Game;
6.1 Introduction;
6.2 Conclusion;
6.3 Chapter Review Questions;
Chapter 7: Playing Sounds;
7.1 Adding Sound;
7.2 Conclusion;
7.3 Chapter Review Questions;
Chapter 8: Creating a Timer;
8.1 Making Another Game;
8.2 Finding Winners Using Arrays;
8.3 Conclusion;
8.4 Chapter Review Questions;
Chapter 9: Reading Text Input;
9.1 Using the Keyboard in XNA;
9.2 Working with Arrays, Objects, and References;
9.3 Displaying Keys;
9.4 Conclusion;
9.5 Chapter Review Questions;
Writing Proper Games;
Chapter 10: Using C# Methods to Solve Problems;
10.1 Introduction;
10.2 Playing with Images;
10.3 Creating a Zoom-Out;
10.4 Conclusion;
10.5 Chapter Review Questions;
Chapter 11: A Game as a C# Program;
11.1 Introduction;
11.2 Creating Game Graphics;
11.3 Projects, Resources, and Classes;
11.4 Creating Game Objects;
11.5 Conclusion;
11.6 Chapter Review Questions;
Chapter 12: Games, Objects, and State;
12.1 Introduction;
12.2 Adding Bread to Your Game;
12.3 Adding Tomato Targets;
12.4 Conclusion;
12.5 Chapter Review Questions;
Chapter 13: Making a Complete Game;
13.1 Introduction;
13.2 Making a Finished Game;
13.3 Improving Code Design;
13.4 Adding a Background;
13.5 Adding a Title Screen;
13.6 Conclusion;
13.7 Chapter Review Questions;
Chapter 14: Classes, Objects, and Games;
14.1 Introduction;
14.2 Design with Objects;
14.3 Classes and Structures;
14.4 References;
14.5 Value and Reference Types;
14.6 Creating a Sprite Class Hierarchy;
14.7 Adding a Deadly Pepper;
14.8 Conclusion;
14.9 Chapter Review Questions;
Chapter 15: Creating Game Components;
15.1 Introduction;
15.2 Objects and Abstraction;
15.3 Constructing Class Instances;
15.4 Adding 100 Killer Tangerines;
15.5 Adding Artificial Intelligence;
15.6 Adding Game Sounds;
15.7 From Objects to Components;
15.8 Conclusion;
15.9 Chapter Review Questions;
Chapter 16: Creating Multi-Player Networked Games;
16.1 Introduction;
16.2 Networks and Computers;
16.3 Xbox Live;
16.4 Bread and Cheese Pong;
16.5 Conclusion;
16.6 Chapter Review Questions;
Making Mobile Games for Windows Phone 7 with XNA;
Chapter 17: Motion-Sensitive Games;
17.1 Introduction;
17.2 The Accelerometer;
17.3 Acceleration and Physics;
17.4 Creating a “Cheese Lander” Tipping Game;
17.5 Conclusion;
17.6 Chapter Review Questions;
Chapter 18: Exploring Touch Input;
18.1 Introduction;
18.2 The Windows Phone Touch Screen;
18.3 Creating a Panic Button;
18.4 Creating a Touch Drumpad;
18.5 Creating a Shuffleboard Game;
18.6 Conclusion;
18.7 Chapter Review Questions;
Chapter 19: Mobile Game Development;
19.1 Introduction;
19.2 The Windows Phone;
19.3 Maximizing the Phone Battery Life in XNA Games;
19.4 Dealing with Changes in Phone Orientation;
19.5 Using a Specific Display Size for Windows Phone Games;
19.6 Hiding the Windows Phone Status Bar;
19.7 Stopping the Screen Timeout from Turning Off Your Game;
19.8 Creating a Phone State Machine;
19.9 Handing Incoming Phone Calls;
19.10 A Game as a Windows Phone Application;
19.11 Getting Your Games into the Marketplace;
19.12 Conclusion;
19.13 Chapter Review Questions;
Answers to the Chapter Review Questions;
Chapter 1;
Chapter 2;
Chapter 3;
Chapter 4;
Chapter 5;
Chapter 6;
Chapter 7;
Chapter 8;
Chapter 9;
Chapter 10;
Chapter 11;
Chapter 12;
Chapter 13;
Chapter 14;
Chapter 15;
Chapter 16;
Chapter 17;
Chapter 18;
Chapter 19;
About the Author;
Rob Miles;

Read More Show Less

Customer Reviews

Average Rating 5
( 4 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 4 Customer Reviews
  • Posted August 28, 2011

    Good for beginners

    Good for learning c# even with no programming expirence. Goes through each step in detail.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Posted June 14, 2011

    Great book and fun to read

    This book was a great read. Although you are not required to have extensive knowledge of C# I think it would help to understand this book better. If you haven't programmed games before, this is the book for you. It is great because it covers those concepts and what I liked most about it is that the same code can work on all three platforms with just little extra code to accommodate the form factor. I strongly recommend this book to anyone looking into getting into game development for Microsoft's platforms. It's a fun read and it is covered with great tips to make your code more efficient and write once but expand it everywhere. In my opinion he should've spent more time on integrating graphics with code and making renders etc. but it's more oriented towards programmers.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted February 21, 2013

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted October 18, 2011

    No text was provided for this review.

Sort by: Showing all of 4 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)