Location Awareness

We only briefly touched on this in Chapters 1 and 4, and we didn't exploit it in any of our games. All Android devices come with some type of sensor that lets you determine their location. An interesting enough feature in itself, using it in a game can make for some innovative and never-before-seen game mechanics. Most Android games hardly use this capability. Can you think of a fun way to use the GPS sensor in your game?

Get Beginning Android 4 Games Development 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.