Chapter 17. Motion-Sensitive Games
Discover how a device can be sensitive to orientation and movement.
Find out how XNA programs can use the accelerometer hardware provided by the Windows Phone.
Understand how easy it is to create a simple physics model in XNA.
Create the “Cheese Lander” game for Windows Phone.
Create a “Shaker” game for Windows Phone.
Introduction
In this chapter, we are going to develop some games for Microsoft Windows Phone 7 that use one of the special input features this platform provides—the accelerometer. We’ll explore the physics behind the sensor in the device and how to make use of the sensor from software. Finally, we’ll create some simple games that use the accelerometer in their gameplay.
The Accelerometer
The first mobile ...
Get Microsoft® XNA® Game Studio 4.0: Learn Programming Now! now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.