O'Reilly logo

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

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

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