HTML and CSS Reference
In-Depth Information
Figure 7.7. RaphaelJS is capable of creating astounding graphics in all modern-day browsers.
RaphaelJS uses SVG and its predecessor Vector Markup Language (VML) to create vector
graphics. It also has great plug-ins that calculate complex math for pie charts and other
data visualizations. RaphaelJS's competitor is svgweb, which uses Flash to render SVG
elements. If you don't need to support older browsers, d3.js ( ) is a good lib-
rary to consider.
Because we aren't concerned with old versions of IE, you'll be using JavaScript without a
fallback library to write your game. We'll walk you through the creation of a basic SVG
design pattern, plus teach you to create reusable a reusable asset with JavaScript objects.
Then you'll develop shields to protect players from enemy fire. As a final step, you'll set
up the UFO flock, which is a bit complex because it requires you to create 50-plus objects.
Search WWH ::

Custom Search