Summary

In this chapter, you learned how to build an educational game that featured different types of questions for the player. The HTML5 features and programming techniques included the following:

  • Building a user interface involving text or visual prompts. Player responses included clicking elements on the screen and typing in text. After entering jigsaw mode, player actions were dragging and repositioning elements on the screen.
  • How to encode and decode information using split and join methods.
  • How to save and restore works-in-progress, including use of the try...catch construct.
  • Reuse of techniques explained in the last chapter:
    • Creating HTML markup dynamically to create the piece elements on the screen
    • Placing the jigsaw pieces randomly ...

Get HTML5 and JavaScript Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.