Monday, April 7, 2014

HowTo: Use the Device Motion Sensors to control your game


Welcome to Part 6 of my blog series about game development.


Today I'll include motion detection to control the movement of my game. iOS offers a powerful API to handle motion detection with the CMMotionManager class.

Let's start with a small standalone project to show how to use the motion detection: