diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-01-31 13:18:46 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-01-31 13:18:46 -0500 |
commit | 66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d (patch) | |
tree | 3bdc6139c11c3cae0bf0f752e13505bf4a576d14 | |
parent | d0f98e7a332d9570409eecc7801064c850b20e34 (diff) | |
download | tanetane-66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d.tar.gz tanetane-66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d.tar.bz2 tanetane-66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d.zip |
Added Boney
-rw-r--r-- | res/boney.png | bin | 0 -> 77904 bytes | |||
-rw-r--r-- | res/boney_anim.txt | 34 | ||||
-rw-r--r-- | res/boney_frames.txt | 370 | ||||
-rw-r--r-- | src/main.cpp | 2 |
4 files changed, 406 insertions, 0 deletions
diff --git a/res/boney.png b/res/boney.png new file mode 100644 index 0000000..9c699ad --- /dev/null +++ b/res/boney.png | |||
Binary files differ | |||
diff --git a/res/boney_anim.txt b/res/boney_anim.txt new file mode 100644 index 0000000..754a028 --- /dev/null +++ b/res/boney_anim.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | ../res/boney.png | ||
2 | ../res/boney_frames.txt | ||
3 | still[down]: 0 | ||
4 | still[down_left]: 1 | ||
5 | still[left]: 2 | ||
6 | still[up_left]: 3 | ||
7 | still[up]: 4 | ||
8 | still[up_right]: 5 | ||
9 | still[right]: 6 | ||
10 | still[down_right]: 7 | ||
11 | walk[down]: 8,16,24 | ||
12 | walk[down_left]: 9,17,25 | ||
13 | walk[left]: 10,18,26 | ||
14 | walk[up_left]: 11,19,27 | ||
15 | walk[up]: 12,20,28 | ||
16 | walk[up_right]: 13,21,29 | ||
17 | walk[right]: 14,22,30 | ||
18 | walk[down_right]: 15,23,31 | ||
19 | crouch[down]: 80,88 | ||
20 | crouch[down_left]: 81,89 | ||
21 | crouch[left]: 82,90 | ||
22 | crouch[up_left]: 83,91 | ||
23 | crouch[up]: 84,92 | ||
24 | crouch[up_right]: 85,93 | ||
25 | crouch[right]: 86,94 | ||
26 | crouch[down_right]: 87,95 | ||
27 | run[down]: 48,56,64,72 | ||
28 | run[down_left]: 49,57,65,73 | ||
29 | run[left]: 50,58,66,74 | ||
30 | run[up_left]: 51,59,67,75 | ||
31 | run[up]: 52,60,68,76 | ||
32 | run[up_right]: 53,61,69,77 | ||
33 | run[right]: 54,62,70,78 | ||
34 | run[down_right]: 55,63,71,79 \ No newline at end of file | ||
diff --git a/res/boney_frames.txt b/res/boney_frames.txt new file mode 100644 index 0000000..786cac5 --- /dev/null +++ b/res/boney_frames.txt | |||
@@ -0,0 +1,370 @@ | |||
1 | 32,32 cell size | ||
2 | 10 frames per row | ||
3 | 366 frames | ||
4 | |||
5 | 16,24,8,24 | ||
6 | 32,24,16,24 | ||
7 | 32,24,16,24 | ||
8 | 32,24,16,24 | ||
9 | 16,24,8,24 | ||
10 | 32,24,16,24 | ||
11 | 32,24,16,24 | ||
12 | 32,24,16,24 | ||
13 | 16,32,8,32 | ||
14 | 32,32,16,32 | ||
15 | 32,24,16,24 | ||
16 | 32,24,16,24 | ||
17 | 16,32,8,32 | ||
18 | 32,24,16,24 | ||
19 | 32,24,16,24 | ||
20 | 32,32,16,32 | ||
21 | 16,24,8,24 | ||
22 | 32,24,16,24 | ||
23 | 32,24,16,24 | ||
24 | 32,24,16,24 | ||
25 | 16,24,8,24 | ||
26 | 32,24,16,24 | ||
27 | 32,24,16,24 | ||
28 | 32,24,16,24 | ||
29 | 16,24,8,24 | ||
30 | 32,24,16,24 | ||
31 | 32,24,16,24 | ||
32 | 32,24,16,24 | ||
33 | 16,24,8,24 | ||
34 | 32,24,16,24 | ||
35 | 32,24,16,24 | ||
36 | 32,24,16,24 | ||
37 | 32,24,16,24 | ||
38 | 32,24,16,24 | ||
39 | 32,24,16,24 | ||
40 | 32,24,16,24 | ||
41 | 32,24,16,24 | ||
42 | 32,24,16,24 | ||
43 | 32,24,16,24 | ||
44 | 32,24,16,24 | ||
45 | 16,24,8,24 | ||
46 | 32,24,16,24 | ||
47 | 32,24,16,24 | ||
48 | 32,24,16,24 | ||
49 | 16,24,8,24 | ||
50 | 32,24,16,24 | ||
51 | 32,24,16,24 | ||
52 | 32,24,16,24 | ||
53 | 32,24,16,24 | ||
54 | 32,24,16,24 | ||
55 | 32,24,16,24 | ||
56 | 32,24,16,24 | ||
57 | 32,24,16,25 | ||
58 | 32,24,16,24 | ||
59 | 32,24,16,24 | ||
60 | 32,24,16,24 | ||
61 | 16,24,8,24 | ||
62 | 32,24,16,24 | ||
63 | 32,24,16,24 | ||
64 | 32,24,16,24 | ||
65 | 16,24,8,24 | ||
66 | 32,24,16,24 | ||
67 | 32,24,16,24 | ||
68 | 32,24,16,24 | ||
69 | 16,24,8,24 | ||
70 | 32,24,16,24 | ||
71 | 32,24,16,24 | ||
72 | 32,24,15,24 | ||
73 | 16,24,8,24 | ||
74 | 32,24,17,24 | ||
75 | 32,24,16,24 | ||
76 | 32,24,16,24 | ||
77 | 16,24,8,24 | ||
78 | 32,24,16,24 | ||
79 | 32,24,16,24 | ||
80 | 32,24,15,24 | ||
81 | 16,24,8,24 | ||
82 | 32,24,17,24 | ||
83 | 32,24,16,24 | ||
84 | 32,24,16,24 | ||
85 | 16,24,8,24 | ||
86 | 32,24,16,24 | ||
87 | 32,24,16,24 | ||
88 | 32,24,16,24 | ||
89 | 16,24,8,24 | ||
90 | 32,24,16,24 | ||
91 | 32,24,16,24 | ||
92 | 32,24,16,24 | ||
93 | 16,16,8,16 | ||
94 | 32,16,16,16 | ||
95 | 32,16,16,16 | ||
96 | 32,16,16,16 | ||
97 | 16,16,8,16 | ||
98 | 32,16,16,16 | ||
99 | 32,16,16,16 | ||
100 | 32,16,16,16 | ||
101 | 32,24,16,24 | ||
102 | 32,24,16,24 | ||
103 | 32,24,16,24 | ||
104 | 32,24,16,24 | ||
105 | 32,24,16,24 | ||
106 | 32,24,16,24 | ||
107 | 32,24,16,24 | ||
108 | 32,24,16,24 | ||
109 | 32,24,16,24 | ||
110 | 32,24,16,24 | ||
111 | 32,24,16,24 | ||
112 | 32,24,16,24 | ||
113 | 32,24,16,24 | ||
114 | 32,24,16,24 | ||
115 | 32,24,16,24 | ||
116 | 32,24,16,24 | ||
117 | 32,24,16,24 | ||
118 | 32,16,16,16 | ||
119 | 32,24,16,24 | ||
120 | 16,16,8,13 | ||
121 | 32,32,16,32 | ||
122 | 32,32,16,31 | ||
123 | 17,32,8,32 | ||
124 | 32,32,16,31 | ||
125 | 32,24,18,14 | ||
126 | 32,16,19,14 | ||
127 | 32,16,16,15 | ||
128 | 32,16,16,14 | ||
129 | 32,24,15,19 | ||
130 | 32,24,16,24 | ||
131 | 32,16,16,14 | ||
132 | 32,16,16,15 | ||
133 | 32,16,16,14 | ||
134 | 16,24,8,22 | ||
135 | 32,24,16,24 | ||
136 | 32,24,16,24 | ||
137 | 32,24,16,24 | ||
138 | 16,24,8,24 | ||
139 | 32,24,16,24 | ||
140 | 32,24,16,24 | ||
141 | 32,24,16,24 | ||
142 | 16,24,8,24 | ||
143 | 32,24,17,24 | ||
144 | 32,24,16,24 | ||
145 | 32,24,16,23 | ||
146 | 16,24,8,23 | ||
147 | 32,24,16,23 | ||
148 | 32,24,16,24 | ||
149 | 32,24,15,24 | ||
150 | 16,24,8,24 | ||
151 | 32,24,17,24 | ||
152 | 32,24,16,24 | ||
153 | 32,24,16,23 | ||
154 | 16,24,8,23 | ||
155 | 32,24,16,23 | ||
156 | 32,24,16,24 | ||
157 | 32,24,15,24 | ||
158 | 16,16,9,16 | ||
159 | 32,16,16,16 | ||
160 | 32,16,16,16 | ||
161 | 32,24,16,23 | ||
162 | 16,24,9,23 | ||
163 | 32,24,16,23 | ||
164 | 32,16,16,16 | ||
165 | 32,16,16,16 | ||
166 | 16,16,8,16 | ||
167 | 32,24,16,24 | ||
168 | 32,24,16,24 | ||
169 | 32,24,16,24 | ||
170 | 16,16,8,16 | ||
171 | 32,24,16,24 | ||
172 | 32,24,16,24 | ||
173 | 32,24,16,24 | ||
174 | 16,16,8,16 | ||
175 | 32,16,16,16 | ||
176 | 32,16,16,16 | ||
177 | 32,16,16,16 | ||
178 | 16,16,8,16 | ||
179 | 32,16,16,16 | ||
180 | 32,16,16,16 | ||
181 | 32,16,16,16 | ||
182 | 16,16,8,16 | ||
183 | 32,16,16,16 | ||
184 | 32,16,16,16 | ||
185 | 32,16,16,16 | ||
186 | 16,16,8,16 | ||
187 | 32,16,16,16 | ||
188 | 32,16,16,16 | ||
189 | 32,16,16,16 | ||
190 | 32,32,16,32 | ||
191 | 32,32,16,31 | ||
192 | 32,32,16,32 | ||
193 | 32,32,16,32 | ||
194 | 32,24,17,24 | ||
195 | 32,24,16,24 | ||
196 | 32,24,16,24 | ||
197 | 32,24,16,24 | ||
198 | 32,24,16,24 | ||
199 | 16,24,8,24 | ||
200 | 32,16,16,16 | ||
201 | 16,24,8,24 | ||
202 | 32,24,16,24 | ||
203 | 32,32,16,32 | ||
204 | 32,32,16,32 | ||
205 | 32,24,16,24 | ||
206 | 32,24,16,24 | ||
207 | 32,24,16,24 | ||
208 | 32,24,16,24 | ||
209 | 32,24,16,24 | ||
210 | 32,24,16,24 | ||
211 | 32,32,16,32 | ||
212 | 32,32,16,32 | ||
213 | 32,32,16,32 | ||
214 | 32,24,16,24 | ||
215 | 16,24,8,24 | ||
216 | 32,24,16,24 | ||
217 | 32,24,16,24 | ||
218 | 32,24,16,24 | ||
219 | 32,24,16,24 | ||
220 | 32,24,16,24 | ||
221 | 32,24,16,24 | ||
222 | 32,24,16,24 | ||
223 | 32,24,16,24 | ||
224 | 32,24,16,24 | ||
225 | 32,24,16,24 | ||
226 | 32,24,16,24 | ||
227 | 32,24,16,24 | ||
228 | 32,24,16,24 | ||
229 | 32,24,16,24 | ||
230 | 32,24,16,24 | ||
231 | 32,24,16,24 | ||
232 | 32,24,16,24 | ||
233 | 32,24,16,24 | ||
234 | 32,24,16,24 | ||
235 | 32,24,13,24 | ||
236 | 32,24,13,24 | ||
237 | 32,24,13,24 | ||
238 | 32,24,13,24 | ||
239 | 32,24,13,24 | ||
240 | 32,24,16,24 | ||
241 | 32,24,16,24 | ||
242 | 32,24,16,24 | ||
243 | 32,24,16,24 | ||
244 | 32,24,16,24 | ||
245 | 16,32,8,34 | ||
246 | 16,32,8,35 | ||
247 | 16,32,8,34 | ||
248 | 16,24,8,33 | ||
249 | 16,24,8,32 | ||
250 | 16,24,8,31 | ||
251 | 16,24,8,30 | ||
252 | 16,22,8,30 | ||
253 | 16,22,8,28 | ||
254 | 16,22,8,26 | ||
255 | 16,24,8,24 | ||
256 | 16,32,8,28 | ||
257 | 16,32,8,32 | ||
258 | 16,32,8,32 | ||
259 | 16,32,8,32 | ||
260 | 16,32,8,32 | ||
261 | 16,32,8,32 | ||
262 | 16,32,8,33 | ||
263 | 16,32,8,34 | ||
264 | 16,32,8,35 | ||
265 | 16,32,8,37 | ||
266 | 16,32,8,38 | ||
267 | 16,32,8,36 | ||
268 | 16,32,8,35 | ||
269 | 16,32,8,33 | ||
270 | 16,32,8,32 | ||
271 | 8,8,4,8 | ||
272 | 8,8,4,8 | ||
273 | 8,8,3,8 | ||
274 | 32,32,29,-6 | ||
275 | 32,32,29,-6 | ||
276 | 32,32,27,-5 | ||
277 | 32,32,27,-5 | ||
278 | 32,32,24,-5 | ||
279 | 32,32,24,-5 | ||
280 | 32,32,24,-5 | ||
281 | 32,32,24,-5 | ||
282 | 32,31,22,-4 | ||
283 | 32,31,22,-4 | ||
284 | 32,31,24,-4 | ||
285 | 32,31,24,-4 | ||
286 | 32,32,26,-1 | ||
287 | 32,32,26,-1 | ||
288 | 32,32,27,-2 | ||
289 | 32,32,27,-2 | ||
290 | 32,32,28,0 | ||
291 | 32,32,28,0 | ||
292 | 32,31,30,-3 | ||
293 | 32,31,30,-3 | ||
294 | 32,32,3,-6 | ||
295 | 32,32,3,-6 | ||
296 | 32,32,5,-5 | ||
297 | 32,32,5,-5 | ||
298 | 32,32,8,-5 | ||
299 | 32,32,8,-5 | ||
300 | 32,32,8,-5 | ||
301 | 32,32,8,-5 | ||
302 | 32,31,10,-4 | ||
303 | 32,31,10,-4 | ||
304 | 32,31,8,-4 | ||
305 | 32,31,8,-4 | ||
306 | 32,32,6,-1 | ||
307 | 32,32,6,-1 | ||
308 | 32,32,5,-2 | ||
309 | 32,32,5,-2 | ||
310 | 32,32,4,0 | ||
311 | 32,32,4,0 | ||
312 | 32,31,2,-3 | ||
313 | 32,31,2,-3 | ||
314 | 32,32,30,-8 | ||
315 | 32,32,30,-8 | ||
316 | 32,32,28,-7 | ||
317 | 32,32,28,-7 | ||
318 | 32,32,25,-7 | ||
319 | 32,32,25,-7 | ||
320 | 32,32,25,-7 | ||
321 | 32,32,25,-7 | ||
322 | 32,31,23,-6 | ||
323 | 32,31,23,-6 | ||
324 | 32,31,25,-6 | ||
325 | 32,31,25,-6 | ||
326 | 32,32,27,-3 | ||
327 | 32,32,27,-3 | ||
328 | 32,32,28,-4 | ||
329 | 32,32,28,-4 | ||
330 | 32,32,29,-2 | ||
331 | 32,32,29,-2 | ||
332 | 32,31,31,-5 | ||
333 | 32,31,31,-5 | ||
334 | 32,32,2,-8 | ||
335 | 32,32,2,-8 | ||
336 | 32,32,4,-7 | ||
337 | 32,32,4,-7 | ||
338 | 32,32,7,-7 | ||
339 | 32,32,7,-7 | ||
340 | 32,32,7,-7 | ||
341 | 32,32,7,-7 | ||
342 | 32,31,9,-6 | ||
343 | 32,31,9,-6 | ||
344 | 32,31,7,-6 | ||
345 | 32,31,7,-6 | ||
346 | 32,32,5,-3 | ||
347 | 32,32,5,-3 | ||
348 | 32,32,4,-4 | ||
349 | 32,32,4,-4 | ||
350 | 32,32,3,-2 | ||
351 | 32,32,3,-2 | ||
352 | 32,31,1,-5 | ||
353 | 32,31,1,-5 | ||
354 | 16,24,8,24 | ||
355 | 32,32,16,12 | ||
356 | 32,32,16,18 | ||
357 | 32,32,16,16 | ||
358 | 32,32,16,15 | ||
359 | 32,24,16,8 | ||
360 | 32,32,16,16 | ||
361 | 32,32,16,15 | ||
362 | 16,24,8,16 | ||
363 | 16,24,8,24 | ||
364 | 16,24,8,24 | ||
365 | 32,24,16,24 | ||
366 | 32,16,16,16 | ||
367 | 32,24,16,24 | ||
368 | 16,24,8,21 | ||
369 | 17,24,9,21 | ||
370 | 17,24,8,21 | ||
diff --git a/src/main.cpp b/src/main.cpp index fa9605f..ea8d8f4 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -11,6 +11,7 @@ void loop(Renderer& renderer) { | |||
11 | int lucasSprite = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); | 11 | int lucasSprite = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); |
12 | int kumaSprite = game.addSprite(Sprite("../res/kuma_anim.txt", renderer)); | 12 | int kumaSprite = game.addSprite(Sprite("../res/kuma_anim.txt", renderer)); |
13 | int dusterSprite = game.addSprite(Sprite("../res/duster_anim.txt", renderer)); | 13 | int dusterSprite = game.addSprite(Sprite("../res/duster_anim.txt", renderer)); |
14 | int boneySprite = game.addSprite(Sprite("../res/boney_anim.txt", renderer)); | ||
14 | 15 | ||
15 | game.moveSprite(lucasSprite, {32,32}); | 16 | game.moveSprite(lucasSprite, {32,32}); |
16 | 17 | ||
@@ -18,6 +19,7 @@ void loop(Renderer& renderer) { | |||
18 | party.addMember(game, lucasSprite); | 19 | party.addMember(game, lucasSprite); |
19 | party.addMember(game, kumaSprite); | 20 | party.addMember(game, kumaSprite); |
20 | party.addMember(game, dusterSprite); | 21 | party.addMember(game, dusterSprite); |
22 | party.addMember(game, boneySprite); | ||
21 | 23 | ||
22 | renderer.render(game); | 24 | renderer.render(game); |
23 | 25 | ||