]> Dogcows Code - chaz/yoink/blob - data/animations/RobotTrooper.lua
fixed documentation about where to find licenses
[chaz/yoink] / data / animations / RobotTrooper.lua
1
2 -- Animation sequences for the robot trooper bad guy
3
4 print "loading RobotTrooper animation sequences"
5
6
7 DefineSequence("Stand",
8 {
9 class = STAND,
10 delay = 1,
11 frames = {
12 { index = 0, duration = 2 },
13 { index = 1, duration = 0.25 },
14 { index = 2, duration = 2 },
15 { index = 1, duration = 0.25 }
16 }
17 })
18
19 DefineSequence("Run",
20 {
21 class = RUN,
22 delay = 0.25,
23 frames = {
24 { index = 4 },
25 { index = 5 },
26 { index = 6 },
27 { index = 7 }
28 }
29 })
30
31 DefineSequence("StopRunning",
32 {
33 class = STAND,
34 delay = 0.25,
35 following = "Stand",
36 loop = true,
37 frames = {
38 { index = 5 }
39 }
40 })
41
42 DefineSequence("Jump",
43 {
44 class = JUMP,
45 following = "FlyDiagonallyUp",
46 delay = 0.25,
47 frames = {
48 { index = 17 }
49 }
50 })
51
52 DefineSequence("Land",
53 {
54 class = STAND,
55 delay = 1,
56 following = "Stand",
57 loop = true,
58 frames = {
59 { index = 19, duration = 0.25 },
60 { index = 14, duration = 0.25 }
61 }
62 })
63
64 DefineSequence("FlyDiagonallyUp",
65 {
66 class = FLY,
67 delay = 0.1,
68 frames = {
69 { index = 18 }
70 }
71 })
72
73 DefineSequence("FlyDiagonallyDown",
74 {
75 class = FLY,
76 delay = 0.1,
77 frames = {
78 { index = 18 }
79 }
80 })
81
82 DefineSequence("FlyStraightUp",
83 {
84 class = FLY,
85 delay = 0.1,
86 frames = {
87 { index = 18 }
88 }
89 })
90
91 DefineSequence("FlyHorizontally",
92 {
93 class = FLY,
94 frames = {
95 { index = 18 }
96 }
97 })
98
99 DefineSequence("Punch",
100 {
101 class = ATTACK,
102 delay = 0.05,
103 following = "Stand",
104 frames = {
105 { index = 8 },
106 { index = 9 },
107 { index = 10 },
108 { index = 11 },
109 { index = 12 },
110 { index = 13 }
111 }
112 })
113
114 DefineSequence("StartFiring",
115 {
116 class = ATTACK,
117 delay = 0.1,
118 following = "Fire",
119 frames = {
120 { index = 14 },
121 { index = 15 },
122 { index = 16 }
123 }
124 })
125
126 DefineSequence("Fire",
127 {
128 class = ATTACK,
129 delay = 1,
130 frames = {
131 { index = 17, duration = 0.2 },
132 { index = 16, duration = 0.2 }
133 }
134 })
135
136 DefineSequence("StopFiring",
137 {
138 class = ATTACK,
139 delay = 0.1,
140 following = "Stand",
141 frames = {
142 { index = 16 },
143 { index = 15 },
144 { index = 14 }
145 }
146 })
147
148 DefineSequence("KnockedDown",
149 {
150 class = HIT,
151 delay = 1,
152 frames = {
153 { index = 18 }
154 }
155 })
156
157 DefineSequence("Flattened",
158 {
159 class = HIT,
160 delay = 1,
161 frames = {
162 { index = 19 }
163 }
164 })
165
This page took 0.037925 seconds and 4 git commands to generate.