Game Development Reference
In-Depth Information
Accelerometer
Smartphones are provided with a 3-axis accelerometer which detects the orientation
of the phone in the space and changes the screen orientation accordingly. Most ap-
plications take advantage of this feature by swapping between landscape and por-
trait view, for example, when viewing a photo.
With regard to games, the accelerometer (and the gyroscope) are exploited by tons
of games; generally all games which simply weren't possible on any other kind of
device.
So many games use the accelerometer for driving, that there's no need to mention
any. Tilt the iPhone left/right to turn your vehicle accordingly.
Doodle Jump is a completely different kind of game, still popular regardless of its
age, which requires the player to tilt the iPhone left or right to control the jumping
direction of the game character as he climbs an endless series of platforms.
Search WWH ::




Custom Search