The Essential Guide to HTML5

(Greg DeLong) #1

MAZES


Figure 7-2. Walls for a maze


Figure 7-3 shows the screen after the player has used the arrow keys to move the token into the maze.


Figure 7-3. Moving the token inside the maze


If the player wants to save a set of walls, he or she types in a name and clicks on the button. To retrieve
the walls, which are added to whatever is currently on the canvas, the player types in a name and presses
the GET SAVED WALLS button. If theres nothing saved under that name, nothing happens.

Free download pdf