Skip to main content

US States Game: Building a Multiactivity Game

  • Chapter
HTML5 and JavaScript Projects
  • 2508 Accesses

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

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics