Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Introduction to JavaScript Games

Chapter 5. Introduction to JavaScript Games

On May 22, 2010, Google released its own version of the retro-classic, dot-chomping game Pac-Man. The game, developed to celebrate Pac-Man’s 30th anniversary, appeared in place of the usual Google logo on the search engine’s home page (Figure 5-1). Many people initially assumed that this fun remake was created with HTML5, but a closer inspection revealed that it used nothing more than regular DHTML (excluding the sound). Continuing with the retro-classic theme, in this chapter we will develop our own DHTML game: Orbit Assault, a variation of the legendary Space Invaders (Figure 5-2).

Pac-Man was a surprise addition to Google’s home page
Figure 5-1. Pac-Man was a surprise addition to Google’s home page
Orbit Assault, an arcade game—DHTML style
Figure 5-2. Orbit Assault, an arcade game—DHTML style

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint