Chapter 7. 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
andcatch
for testing if coding is recognizedusing
join
andsplit
to encode and decode informationusing
javascript:
in a button to invoke functionsradio 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.