© Jeanine Meyer 2018
Jeanine MeyerHTML5 and JavaScript Projectshttps://doi.org/10.1007/978-1-4842-3864-6_9

9. US States Game: Building a Multiactivity Game

Jeanine Meyer1 
(1)
New York, USA
 
In this chapter, you will learn the following:
  • How to build a user interface for a game involving different types of player moves, including putting together a jigsaw puzzle

  • How to use the mouse to reposition pieces

  • How to acquire an image, break it up into pieces, and determine the coordinates for those pieces to produce a jigsaw puzzle

  • How to encode and retrieve the current state of the jigsaw game

  • How to use localStorage to store and retrieve the information, including using try and catch for situations when localStorage is not allowed

Introduction

The project for ...

Get HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications 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.