© Jeanine Meyer 2018
Jeanine MeyerThe Essential Guide to HTML5https://doi.org/10.1007/978-1-4842-4155-4_7

7. Mazes

Jeanine Meyer1 
Purchase, NY, USA
In this chapter, we cover
  • Responding to mouse events

  • Calculation of collision between circles and lines

  • Responding to the arrow keys

  • Form input

  • Encoding, saving, decoding, and restoring information from local storage using try and catch for testing if coding is recognized

  • Using join and split to encode and decode information

  • Using javascript: in a button to invoke functions

  • Radio buttons


In this chapter, we’ll continue our exploration of programming techniques and HTML5 and JavaScript features, this time using programs that build and traverse mazes. Players will have the ability to draw ...

Get The Essential Guide to HTML5: Using Games to Learn HTML5 and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.