O'Reilly logo

HTML5 and JavaScript Projects by Jeanine Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the Application and Making It Your Own

You can make these projects your own by using your own video clip. You also can make a jigsaw puzzle by itself, though you probably should wait to read the next chapter, which describes a more elaborate jigsaw puzzle and contains pointers on how to cut up more intricate shapes. This chapter also showed you how to feature touch events in your application. Here is an informal summary/outline of the jigsaw-to-video project:

  • init: For initialization, including invoking calls to setupgame and setupjigsaw
  • setupgame: For creating the pieces
  • setupjigsaw: For randomly positioning the pieces and setting up event handling
  • startdragging, moving, release, and touchhandler: For handling events
  • checkpositions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required