HTML and CSS Reference
In-Depth Information
Figure 7.3. Get ready to defend Earth from the coming apocalypse in SVG Aliens. Play the game at
http://html5inaction.com/app/ch7 before you build it from scratch. Download the source code from
http://www.manning.com/crowther2/ . The game's artwork is by Rachel Blue, http://www.linkedin.com/pub/
rachelblue/23/702/99b .
In the previous chapter, you built Canvas Ricochet, a game using a ball and paddle to des-
troy bricks. SVG Aliens uses similar mechanics but adds a few layers of complexity. Your
paddle will become a ship that moves left or right. Lasers will replace a bouncing ball, des-
troying both friend and foe. Instead of bricks, aliens progressively scurry toward the ship
to destroy it. With increased complexity comes more difficulty, so we'll show you how to
add a life counter and shields to help ships survive incoming laser fire.
 
Search WWH ::




Custom Search