HTML and CSS Reference
In-Depth Information
Another Example: Guess The Letter
Now we will take a quick look at a more involved example of a “Hello World!”-type applica-
tion, the game “Guess The Letter.” We've included this example to illustrate how much more
Canvas programming is done in JavaScript than in the Canvas API.
In this game, shown in Figure 1-4 , the player's job is to guess the letter of the alphabet that
made, lists the letters he has already guessed, and tells the player whether he needs to guess
higher (toward Z) or lower (toward A).
Figure 1-4. HTML5 Canvas “Guess The Letter” game
Search WWH ::

Custom Search