C H A P T E R 9
US States Game: Building a Multiactivity Game
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