The Essential Guide to HTML5

(Greg DeLong) #1

CHAPTER 6


Figure 6-5. Choosing the correct match for Riyadh


The second version of the quiz provides more feedback to the player. Clicking on a country or capital
turns its color to tan, as in Figure 6-6. If the attempted match is correct, the blocks become gold as in the
first game. If not, the color changes back to white.


Figure 6-6. A first selection changes color.


Matching all four correctly results in a short video clip. Figure 6-7 shows the start of the video.

Free download pdf