O'Reilly logo

Windows Phone 8 Game Development by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Other sensors in the native part

Windows Phone 8 devices can also be equipped with sensors other than the accelerometer such as the gyrometer and the compass. The developer can use available classes to obtain data from these sensors. They can be then processed and used for steering or providing a design that changes, for example, when the player rotates the phone. Other sensors are not used in the native part of the game, but their short description is also presented in the book.

Writing to output

To observe values returned by additional sensors, is a good idea to connect the mobile phone to PC and debug the application deployed on the phone. You can present values read from the sensors in the Output window.

Tip

To open the Output window, you should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required