Skip to main content

US States Game: Building a Multiactivity Game

  • Chapter
  • First Online:
HTML5 and JavaScript Projects
  • 3173 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 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

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 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Jeanine Meyer

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Meyer, J. (2018). US States Game: Building a Multiactivity Game. In: HTML5 and JavaScript Projects. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3864-6_9

Download citation

Publish with us

Policies and ethics