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