Chapter 7. Mazes

Mazes
  • 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

Introduction

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 a set of walls to make up a maze. They will be able to save and ...

Get The Essential Guide to HTML5: Using Games to Learn HTML5 and JavaScript 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.