diff options
-rw-r--r-- | res/kuma_anim.txt | 34 | ||||
-rw-r--r-- | res/kumatora.png | bin | 1628 -> 67143 bytes | |||
-rw-r--r-- | res/kumatora_frames.txt | 278 | ||||
-rw-r--r-- | src/main.cpp | 8 |
4 files changed, 316 insertions, 4 deletions
diff --git a/res/kuma_anim.txt b/res/kuma_anim.txt new file mode 100644 index 0000000..72184c0 --- /dev/null +++ b/res/kuma_anim.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | ../res/kumatora.png | ||
2 | ../res/kumatora_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]: 16,0,24 | ||
12 | walk[down_left]: 17,1,25 | ||
13 | walk[left]: 18,2,26 | ||
14 | walk[up_left]: 19,3,27 | ||
15 | walk[up]: 20,4,28 | ||
16 | walk[up_right]: 21,5,29 | ||
17 | walk[right]: 22,6,30 | ||
18 | walk[down_right]: 23,7,31 | ||
19 | crouch[down]: 48 | ||
20 | crouch[down_left]: 49 | ||
21 | crouch[left]: 50 | ||
22 | crouch[up_left]: 51 | ||
23 | crouch[up]: 52 | ||
24 | crouch[up_right]: 53 | ||
25 | crouch[right]: 54 | ||
26 | crouch[down_right]: 55 | ||
27 | run[down]: 64,72,80,88 | ||
28 | run[down_left]: 65,73,81,89 | ||
29 | run[left]: 66,74,82,90 | ||
30 | run[up_left]: 67,75,83,91 | ||
31 | run[up]: 68,76,84,92 | ||
32 | run[up_right]: 69,77,85,93 | ||
33 | run[right]: 70,78,86,94 | ||
34 | run[down_right]: 71,79,87,95 \ No newline at end of file | ||
diff --git a/res/kumatora.png b/res/kumatora.png index c355ee9..6fe4b26 100644 --- a/res/kumatora.png +++ b/res/kumatora.png | |||
Binary files differ | |||
diff --git a/res/kumatora_frames.txt b/res/kumatora_frames.txt new file mode 100644 index 0000000..14aecc6 --- /dev/null +++ b/res/kumatora_frames.txt | |||
@@ -0,0 +1,278 @@ | |||
1 | 33,32 cell size | ||
2 | 10 frames per row | ||
3 | 274 frames | ||
4 | |||
5 | 32,32,16,32 | ||
6 | 32,32,16,32 | ||
7 | 16,32,7,32 | ||
8 | 16,32,7,32 | ||
9 | 32,32,16,32 | ||
10 | 16,32,8,32 | ||
11 | 16,32,8,32 | ||
12 | 32,32,15,32 | ||
13 | 32,32,16,32 | ||
14 | 32,32,16,32 | ||
15 | 16,32,7,32 | ||
16 | 16,32,7,32 | ||
17 | 32,32,16,32 | ||
18 | 16,32,8,32 | ||
19 | 16,32,8,32 | ||
20 | 32,32,15,32 | ||
21 | 32,32,16,32 | ||
22 | 32,32,16,32 | ||
23 | 16,32,7,32 | ||
24 | 16,32,7,32 | ||
25 | 32,32,16,32 | ||
26 | 16,32,8,32 | ||
27 | 16,32,8,32 | ||
28 | 32,32,15,32 | ||
29 | 32,32,16,32 | ||
30 | 32,32,16,32 | ||
31 | 16,32,7,32 | ||
32 | 16,32,7,32 | ||
33 | 32,32,16,32 | ||
34 | 16,32,8,32 | ||
35 | 16,32,8,32 | ||
36 | 32,32,15,32 | ||
37 | 32,32,16,32 | ||
38 | 32,32,16,32 | ||
39 | 17,32,8,32 | ||
40 | 16,32,7,32 | ||
41 | 32,32,16,32 | ||
42 | 16,32,8,32 | ||
43 | 17,32,8,32 | ||
44 | 32,32,15,32 | ||
45 | 32,32,16,32 | ||
46 | 32,32,16,32 | ||
47 | 17,32,8,32 | ||
48 | 16,32,7,32 | ||
49 | 32,32,16,32 | ||
50 | 16,32,8,32 | ||
51 | 17,32,8,32 | ||
52 | 32,32,15,32 | ||
53 | 32,28,16,28 | ||
54 | 32,28,16,28 | ||
55 | 16,28,7,28 | ||
56 | 16,28,7,28 | ||
57 | 32,28,16,28 | ||
58 | 16,28,8,28 | ||
59 | 16,28,8,28 | ||
60 | 32,28,15,28 | ||
61 | 32,24,20,8 | ||
62 | 32,24,28,6 | ||
63 | 32,16,26,8 | ||
64 | 32,24,24,20 | ||
65 | 32,24,19,20 | ||
66 | 32,24,8,20 | ||
67 | 32,16,6,8 | ||
68 | 32,24,4,6 | ||
69 | 32,32,16,31 | ||
70 | 32,32,15,31 | ||
71 | 16,32,8,32 | ||
72 | 16,32,8,32 | ||
73 | 32,32,16,32 | ||
74 | 16,32,7,32 | ||
75 | 16,32,7,32 | ||
76 | 32,32,16,32 | ||
77 | 32,32,16,32 | ||
78 | 32,32,16,32 | ||
79 | 16,32,7,32 | ||
80 | 16,32,7,32 | ||
81 | 32,32,16,32 | ||
82 | 16,32,8,32 | ||
83 | 16,32,8,32 | ||
84 | 32,32,15,32 | ||
85 | 32,32,16,32 | ||
86 | 32,32,16,32 | ||
87 | 16,32,7,32 | ||
88 | 16,32,7,32 | ||
89 | 32,32,16,32 | ||
90 | 16,32,8,32 | ||
91 | 16,32,8,32 | ||
92 | 32,32,15,32 | ||
93 | 32,32,16,32 | ||
94 | 32,32,16,32 | ||
95 | 16,32,7,32 | ||
96 | 16,32,7,32 | ||
97 | 32,32,16,32 | ||
98 | 16,32,8,32 | ||
99 | 16,32,8,32 | ||
100 | 32,32,15,32 | ||
101 | 32,32,16,32 | ||
102 | 32,32,16,32 | ||
103 | 16,32,7,32 | ||
104 | 16,32,7,32 | ||
105 | 32,32,16,32 | ||
106 | 16,32,8,32 | ||
107 | 16,32,8,32 | ||
108 | 32,32,15,32 | ||
109 | 32,32,16,32 | ||
110 | 32,32,16,32 | ||
111 | 16,32,9,32 | ||
112 | 16,32,8,32 | ||
113 | 32,32,16,32 | ||
114 | 16,32,7,32 | ||
115 | 16,32,8,32 | ||
116 | 32,32,17,32 | ||
117 | 32,32,16,32 | ||
118 | 32,32,16,32 | ||
119 | 16,32,9,32 | ||
120 | 16,32,8,32 | ||
121 | 32,32,16,32 | ||
122 | 16,32,7,32 | ||
123 | 16,32,8,32 | ||
124 | 32,32,17,32 | ||
125 | 32,32,16,32 | ||
126 | 32,32,16,32 | ||
127 | 16,32,9,32 | ||
128 | 16,32,8,32 | ||
129 | 32,32,16,32 | ||
130 | 16,32,7,32 | ||
131 | 16,32,8,32 | ||
132 | 32,32,17,32 | ||
133 | 32,32,16,32 | ||
134 | 32,32,16,32 | ||
135 | 16,32,7,32 | ||
136 | 16,32,7,32 | ||
137 | 32,32,16,32 | ||
138 | 16,32,8,32 | ||
139 | 16,32,8,32 | ||
140 | 32,32,15,32 | ||
141 | 32,32,16,32 | ||
142 | 32,32,16,32 | ||
143 | 17,32,8,32 | ||
144 | 16,32,7,32 | ||
145 | 32,32,16,32 | ||
146 | 16,32,8,32 | ||
147 | 16,32,8,32 | ||
148 | 32,32,15,32 | ||
149 | 32,32,16,32 | ||
150 | 32,32,16,32 | ||
151 | 16,32,7,32 | ||
152 | 16,32,7,32 | ||
153 | 32,32,16,32 | ||
154 | 16,32,8,32 | ||
155 | 16,32,8,32 | ||
156 | 32,32,15,32 | ||
157 | 32,32,16,32 | ||
158 | 32,32,16,32 | ||
159 | 17,32,8,32 | ||
160 | 16,32,7,32 | ||
161 | 32,32,16,32 | ||
162 | 32,32,16,32 | ||
163 | 16,32,8,32 | ||
164 | 32,32,15,32 | ||
165 | 32,28,16,28 | ||
166 | 32,28,16,28 | ||
167 | 16,32,8,32 | ||
168 | 16,32,8,32 | ||
169 | 32,32,16,32 | ||
170 | 32,32,16,32 | ||
171 | 8,8,4,31 | ||
172 | 16,8,8,33 | ||
173 | 16,8,8,34 | ||
174 | 16,16,8,38 | ||
175 | 16,16,8,37 | ||
176 | 16,16,8,36 | ||
177 | 16,16,9,35 | ||
178 | 32,24,16,34 | ||
179 | 32,24,16,33 | ||
180 | 32,24,16,32 | ||
181 | 32,32,16,33 | ||
182 | 32,32,16,35 | ||
183 | 32,32,16,37 | ||
184 | 32,32,16,36 | ||
185 | 32,32,16,35 | ||
186 | 32,32,16,34 | ||
187 | 32,32,16,32 | ||
188 | 32,32,16,32 | ||
189 | 32,32,16,32 | ||
190 | 32,32,16,32 | ||
191 | 32,32,16,32 | ||
192 | 32,32,16,32 | ||
193 | 32,32,16,32 | ||
194 | 32,32,16,32 | ||
195 | 32,32,16,32 | ||
196 | 32,32,16,32 | ||
197 | 32,32,16,32 | ||
198 | 32,32,16,32 | ||
199 | 32,32,16,32 | ||
200 | 32,32,16,32 | ||
201 | 32,32,16,32 | ||
202 | 32,32,16,32 | ||
203 | 32,32,16,32 | ||
204 | 32,32,16,32 | ||
205 | 32,32,16,32 | ||
206 | 32,32,16,31 | ||
207 | 32,32,16,31 | ||
208 | 32,32,16,31 | ||
209 | 32,32,16,31 | ||
210 | 32,32,16,31 | ||
211 | 32,32,16,32 | ||
212 | 32,32,16,32 | ||
213 | 32,32,16,32 | ||
214 | 33,32,16,32 | ||
215 | 16,32,6,32 | ||
216 | 16,32,4,32 | ||
217 | 18,32,4,32 | ||
218 | 18,32,8,32 | ||
219 | 16,32,11,32 | ||
220 | 16,32,11,32 | ||
221 | 32,32,19,32 | ||
222 | 32,32,38,13 | ||
223 | 32,32,38,13 | ||
224 | 32,32,36,15 | ||
225 | 32,32,36,15 | ||
226 | 32,32,31,15 | ||
227 | 32,32,31,15 | ||
228 | 32,32,31,16 | ||
229 | 32,32,31,16 | ||
230 | 32,31,29,16 | ||
231 | 32,31,29,16 | ||
232 | 32,31,30,15 | ||
233 | 32,31,30,15 | ||
234 | 32,32,31,18 | ||
235 | 32,32,31,18 | ||
236 | 32,32,33,17 | ||
237 | 32,32,33,17 | ||
238 | 32,32,34,20 | ||
239 | 32,32,34,20 | ||
240 | 32,32,36,14 | ||
241 | 32,32,36,14 | ||
242 | 32,32,-6,13 | ||
243 | 32,32,-6,13 | ||
244 | 32,32,-4,15 | ||
245 | 32,32,-4,15 | ||
246 | 32,32,1,15 | ||
247 | 32,32,1,15 | ||
248 | 32,32,1,16 | ||
249 | 32,32,1,16 | ||
250 | 32,31,3,16 | ||
251 | 32,31,3,16 | ||
252 | 32,31,2,15 | ||
253 | 32,31,2,15 | ||
254 | 32,32,1,18 | ||
255 | 32,32,1,18 | ||
256 | 32,32,-1,17 | ||
257 | 32,32,-1,17 | ||
258 | 32,32,-2,20 | ||
259 | 32,32,-2,20 | ||
260 | 32,32,-4,14 | ||
261 | 32,32,-4,14 | ||
262 | 32,32,16,33 | ||
263 | 32,32,16,32 | ||
264 | 32,32,16,31 | ||
265 | 32,32,15,33 | ||
266 | 32,32,15,32 | ||
267 | 32,32,15,31 | ||
268 | 32,32,16,32 | ||
269 | 32,32,16,31 | ||
270 | 32,32,16,30 | ||
271 | 8,8,4,8 | ||
272 | 8,8,4,8 | ||
273 | 8,8,3,8 | ||
274 | 32,32,16,32 | ||
275 | 32,32,16,32 | ||
276 | 32,32,16,32 | ||
277 | 32,32,17,32 | ||
278 | 32,32,15,32 | ||
diff --git a/src/main.cpp b/src/main.cpp index 65b322e..e09d394 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -8,16 +8,16 @@ void loop(Renderer& renderer) { | |||
8 | Game game; | 8 | Game game; |
9 | Input keystate; | 9 | Input keystate; |
10 | 10 | ||
11 | //int kumaSprite = game.addSprite(Sprite("../res/kumatora.png", renderer, 17, 31)); | ||
12 | int lucasSprite = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); | 11 | int lucasSprite = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); |
13 | int lucasSprite2 = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); | 12 | int kumaSprite = game.addSprite(Sprite("../res/kuma_anim.txt", renderer)); |
13 | //int lucasSprite2 = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); | ||
14 | 14 | ||
15 | game.moveSprite(lucasSprite, {32,32}); | 15 | game.moveSprite(lucasSprite, {32,32}); |
16 | 16 | ||
17 | Party party; | 17 | Party party; |
18 | party.addMember(game, lucasSprite); | 18 | party.addMember(game, lucasSprite); |
19 | party.addMember(game, lucasSprite2); | 19 | //party.addMember(game, lucasSprite2); |
20 | //party.addMember(game, kumaSprite); | 20 | party.addMember(game, kumaSprite); |
21 | 21 | ||
22 | renderer.render(game); | 22 | renderer.render(game); |
23 | 23 | ||