Added angle modification for static graphics in levels.
[potpourri.git] / relaxng / actor.rnc
blobf2eda2e537821def1dbd410ff1a429a655f5b60b
1 start =
2 element actor
4   element name { text },
5   element sprite
6     {
7       element name { text },
8       element x { text }?,
9       element y { text }?,
10       element center_x { text }?,
11       element center_y { text }?,
12       element angle { text }?
13     }*,
14   element physics
15     {
16       element body
17         {
18           attribute mass { text },
19           attribute inertia { text },
20           element fixed { empty }?
21         },
23       element shape
24         {
25           (
26             element poly
27               {
28                 element data { coordinate+},
29                 element offset { coordinate }
30               }
31           )|
32           (
33             element line
34               {
35                 element point1 { coordinate },
36                 element point2 { coordinate },
37                 element radius { text }
38               }
39           )|
40           (
41             element circle
42               {
43                 element offset { coordinate },
44                 element radius { text }
45               }
46           )
47         }
48     }?,
49   element script
50     {
51       element event { text },
52       element script { text }
53     }*
56 coordinate = element pair
58   element x { text },
59   element y { text }