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 ...