Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Learn HTML5 by Creating Fun Games

You're reading from   Learn HTML5 by Creating Fun Games Learning should be fun, especially when it comes to getting to grips with HTML5 Game Development. Each chapter of this book teaches a new concept for learning HTML5 by helping you develop a relevant game. It's education without the effort.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781849696029
Length 374 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Rodrigo Silveira Rodrigo Silveira
Author Profile Icon Rodrigo Silveira
Rodrigo Silveira
Arrow right icon
View More author details
Toc

Geolocation


Although 3D graphics are awesome, as is a socket-based, multiplayer game, neither technology is necessarily new. Geolocation, on the other hand, is somewhat of a more recent phenomenon. With it, we are able to use JavaScript to determine the physical location (geographical location) of a user. Having such a tool at our disposal opens up new possibilities of awesome, highly innovative game concepts.

Now, whenever a new feature comes out that promises to be able to track down exactly where a user is physically located, most people (except for developers, of course) get at least a little scared about it. After all, how creepy would it be to play a very dark, survival horror game, knowing that other people playing the game can see exactly where you live. Luckily for us, the entire geolocation API is opt-in-based, meaning that the user is prompted about the application attempting to capture the user's location and the browser only allows the application to continue to capture the GPS...

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
Banner background image