The Essential Guide to HTML5

(Greg DeLong) #1

CHAPTER 5


Figure 5-1. Opening screen of the memory game, version one


Figure 5-2 displays the result after a player has clicked on two cards (the purple squares). The depicted
polygons dont match, so after a pause the program replaces them with images of the card backs, making
the cards appear to have flipped over.


Figure 5-2. Two card fronts: no match

Free download pdf