HTML and CSS Reference
In-Depth Information
Figure 7.4. SVG Alien's Welcome screen teaches players about its point system and allows them a chance to initiate
gameplay.
Creating simple shapes
To create a square, use the rectangle tag
<rect x y width height>
. You can create
circles with
<circle cx cy r>
, ellipses with
<ellipse cx cy rx ry>
, lines
with
<line x1 x2 y1 y2>
, polylines with
<polyline points>
, and polygons
with
<polygon points>
. These shapes usually take x and y coordinates, whereas oth-