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