Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Windows 8 Game Development

You're reading from   Learning Windows 8 Game Development Windows 8 brings touchscreens to the tablet and PC. This book will show you how to develop games for both by following clear, hands-on examples. Takes your C++ skills into exciting areas of 3D development.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849697446
Length 244 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Michael Quandt Michael Quandt
Author Profile Icon Michael Quandt
Michael Quandt
Arrow right icon
View More author details
Toc

Locking on with a GPS


Although we know how to find the orientation of the device, we don't really know where it is in the world. This is where the GPS sensor comes into play. The GPS sensor (if installed) provides the latitude and longitude location of the machine, which we can use to determine where the device is and enable games that take advantage of that information.

Many games can use this information to provide a rich experience to the player, from augmented reality games through to spatial games that require you to be in certain physical locations. The increase in mobile platforms (phones and tablets) means that there has been an increase in this style of game, and as this is such a new occurrence there isn't a defined type of game or genre that can take advantage of this.

WinRT has a GPS API that allows for quick and easy access to your location; however, you need to remember that this functionality is limited by a location capability, which the user can opt out of for privacy reasons...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime