Game Development Reference
In-Depth Information
data that composes each image is saved throughout the game, and stored using the
web storage API.
With a feature such as this in place, we make the game much more fun, and poten-
tially much more social. Imagine how powerful it would be if the player could post,
not only his or her high score to their favorite social network website, but also pic-
tures of their game at key moments. Of course, only the foundation of this feature
is implemented in this chapter (in other words, we only take the snapshots of these
critical moments in the game). Adding the actual functionality to send that data to a
real social network application is left as an exercise for the reader.
Search WWH ::




Custom Search