Abstract
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 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
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2011 Jeanine Meyer
About this chapter
Cite this chapter
Meyer, J. (2011). US States Game: Building a Multiactivity Game. In: HTML5 and JavaScript Projects. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4033-4_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4033-4_9
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4032-7
Online ISBN: 978-1-4302-4033-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books