Summary

This chapter showed you how to use geolocation in the browser to generate a position that can be used to display an interactive map. With the ability to track a position and display and update interactive maps, a number of augmented-reality games can be built in the browser. This includes scavenger hunts, geocaching, proximity-based games, and more. The hope is that putting geolocation tools in your arsenal can open up a new world of HTML5 games that breaks gaming outside of its normal confines.

Get Professional HTML5 Mobile Game 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.