diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 12:37:25 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 12:37:25 -0500 |
commit | 4526d347961f7a5df110ef94bd38b80008e3110d (patch) | |
tree | 5ee4caf8c8cd53ea8c55070dacf6189e19ed5170 | |
parent | ef17fecfb22ccacbf098f6869ffaf644a1a627d6 (diff) | |
download | tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.tar.gz tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.tar.bz2 tanetane-4526d347961f7a5df110ef94bd38b80008e3110d.zip |
Added Flint
-rw-r--r-- | res/sprites/flint.png | bin | 0 -> 85313 bytes | |||
-rw-r--r-- | res/sprites/flint_anim.txt | 34 | ||||
-rw-r--r-- | res/sprites/flint_frames.txt | 296 | ||||
-rw-r--r-- | src/main.cpp | 4 |
4 files changed, 334 insertions, 0 deletions
diff --git a/res/sprites/flint.png b/res/sprites/flint.png new file mode 100644 index 0000000..bf16fe1 --- /dev/null +++ b/res/sprites/flint.png | |||
Binary files differ | |||
diff --git a/res/sprites/flint_anim.txt b/res/sprites/flint_anim.txt new file mode 100644 index 0000000..f02b655 --- /dev/null +++ b/res/sprites/flint_anim.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | ../res/sprites/flint.png | ||
2 | ../res/sprites/flint_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,0,16,0 | ||
12 | walk[down_left]: 9,1,17,1 | ||
13 | walk[left]: 10,2,18,2 | ||
14 | walk[up_left]: 11,3,19,3 | ||
15 | walk[up]: 12,4,20,4 | ||
16 | walk[up_right]: 13,5,21,5 | ||
17 | walk[right]: 14,6,22,6 | ||
18 | walk[down_right]: 15,7,23,7 | ||
19 | crouch[down]: 112 | ||
20 | crouch[down_left]: 113 | ||
21 | crouch[left]: 114 | ||
22 | crouch[up_left]: 115 | ||
23 | crouch[up]: 116 | ||
24 | crouch[up_right]: 117 | ||
25 | crouch[right]: 118 | ||
26 | crouch[down_right]: 119 | ||
27 | run[down]: 40,48,56,64 | ||
28 | run[down_left]: 41,49,57,65 | ||
29 | run[left]: 42,50,58,66 | ||
30 | run[up_left]: 43,51,59,67 | ||
31 | run[up]: 44,52,60,68 | ||
32 | run[up_right]: 45,53,61,69 | ||
33 | run[right]: 46,54,62,70 | ||
34 | run[down_right]: 47,55,63,71 \ No newline at end of file | ||
diff --git a/res/sprites/flint_frames.txt b/res/sprites/flint_frames.txt new file mode 100644 index 0000000..7c2ec6d --- /dev/null +++ b/res/sprites/flint_frames.txt | |||
@@ -0,0 +1,296 @@ | |||
1 | 40,32 cell size | ||
2 | 10 frames per row | ||
3 | 292 frames | ||
4 | |||
5 | 32,32,16,32 | ||
6 | 32,32,16,32 | ||
7 | 32,32,16,32 | ||
8 | 32,32,16,32 | ||
9 | 32,32,16,32 | ||
10 | 32,32,16,32 | ||
11 | 32,32,16,32 | ||
12 | 32,32,16,32 | ||
13 | 32,32,16,32 | ||
14 | 32,32,16,32 | ||
15 | 32,32,16,32 | ||
16 | 32,32,16,32 | ||
17 | 32,32,16,32 | ||
18 | 32,32,16,32 | ||
19 | 32,32,16,32 | ||
20 | 32,32,16,32 | ||
21 | 32,32,16,32 | ||
22 | 32,32,16,32 | ||
23 | 32,32,16,32 | ||
24 | 32,32,16,32 | ||
25 | 32,32,16,32 | ||
26 | 32,32,16,32 | ||
27 | 32,32,16,32 | ||
28 | 32,32,16,32 | ||
29 | 32,32,16,32 | ||
30 | 32,32,16,32 | ||
31 | 32,32,16,32 | ||
32 | 32,32,16,32 | ||
33 | 32,32,16,32 | ||
34 | 32,32,16,32 | ||
35 | 32,32,16,32 | ||
36 | 32,32,16,32 | ||
37 | 32,32,16,32 | ||
38 | 32,32,16,32 | ||
39 | 32,32,16,32 | ||
40 | 33,32,17,32 | ||
41 | 32,32,16,32 | ||
42 | 33,32,16,32 | ||
43 | 32,32,16,32 | ||
44 | 32,32,16,32 | ||
45 | 36,32,16,32 | ||
46 | 32,32,16,32 | ||
47 | 32,32,16,32 | ||
48 | 32,32,16,32 | ||
49 | 32,32,16,32 | ||
50 | 32,32,16,32 | ||
51 | 32,32,16,32 | ||
52 | 32,32,16,32 | ||
53 | 32,32,16,32 | ||
54 | 32,32,16,32 | ||
55 | 32,32,16,32 | ||
56 | 32,32,16,32 | ||
57 | 32,32,16,32 | ||
58 | 32,32,16,32 | ||
59 | 32,32,16,32 | ||
60 | 32,32,16,32 | ||
61 | 36,32,16,32 | ||
62 | 32,32,16,32 | ||
63 | 32,32,16,32 | ||
64 | 32,32,16,32 | ||
65 | 32,32,16,32 | ||
66 | 32,32,16,32 | ||
67 | 32,32,16,32 | ||
68 | 32,32,16,32 | ||
69 | 32,32,16,32 | ||
70 | 32,32,16,32 | ||
71 | 32,32,16,32 | ||
72 | 32,32,16,32 | ||
73 | 32,32,16,32 | ||
74 | 32,32,16,32 | ||
75 | 32,32,16,32 | ||
76 | 32,32,16,32 | ||
77 | 35,32,17,32 | ||
78 | 32,32,16,32 | ||
79 | 32,32,16,32 | ||
80 | 32,32,16,32 | ||
81 | 32,32,16,32 | ||
82 | 32,32,16,32 | ||
83 | 32,32,16,32 | ||
84 | 32,32,16,32 | ||
85 | 32,32,16,32 | ||
86 | 32,32,16,32 | ||
87 | 40,32,24,32 | ||
88 | 32,32,16,32 | ||
89 | 32,32,16,32 | ||
90 | 32,32,16,32 | ||
91 | 40,32,16,32 | ||
92 | 32,32,16,32 | ||
93 | 32,32,16,32 | ||
94 | 40,32,24,32 | ||
95 | 32,32,22,32 | ||
96 | 32,32,17,32 | ||
97 | 32,32,16,32 | ||
98 | 32,32,15,32 | ||
99 | 32,32,10,32 | ||
100 | 40,32,16,32 | ||
101 | 32,32,16,32 | ||
102 | 32,32,16,32 | ||
103 | 32,32,23,32 | ||
104 | 32,32,18,32 | ||
105 | 32,32,16,32 | ||
106 | 32,32,14,32 | ||
107 | 32,32,9,32 | ||
108 | 32,32,16,32 | ||
109 | 32,32,16,32 | ||
110 | 32,32,16,32 | ||
111 | 32,32,23,32 | ||
112 | 32,32,18,32 | ||
113 | 32,32,16,32 | ||
114 | 32,32,14,32 | ||
115 | 32,32,9,32 | ||
116 | 32,32,16,32 | ||
117 | 32,24,13,24 | ||
118 | 32,24,24,24 | ||
119 | 33,24,20,24 | ||
120 | 33,24,19,24 | ||
121 | 32,24,16,24 | ||
122 | 33,24,14,24 | ||
123 | 33,24,13,24 | ||
124 | 32,24,8,24 | ||
125 | 32,32,16,32 | ||
126 | 32,32,16,32 | ||
127 | 32,32,16,32 | ||
128 | 32,32,16,32 | ||
129 | 32,32,16,32 | ||
130 | 32,32,16,32 | ||
131 | 32,32,16,32 | ||
132 | 32,32,16,32 | ||
133 | 32,32,16,32 | ||
134 | 32,32,16,32 | ||
135 | 32,32,16,32 | ||
136 | 32,32,16,32 | ||
137 | 32,32,16,32 | ||
138 | 32,32,16,32 | ||
139 | 32,32,16,32 | ||
140 | 32,32,16,32 | ||
141 | 32,32,16,32 | ||
142 | 32,32,16,32 | ||
143 | 32,32,16,32 | ||
144 | 32,32,16,32 | ||
145 | 32,32,16,32 | ||
146 | 32,32,16,32 | ||
147 | 32,32,16,32 | ||
148 | 32,32,16,32 | ||
149 | 32,32,16,32 | ||
150 | 32,32,16,32 | ||
151 | 32,32,16,32 | ||
152 | 32,32,16,32 | ||
153 | 32,32,16,32 | ||
154 | 32,32,16,32 | ||
155 | 32,32,16,32 | ||
156 | 32,32,16,32 | ||
157 | 32,24,14,13 | ||
158 | 32,24,14,13 | ||
159 | 32,16,29,14 | ||
160 | 32,24,25,20 | ||
161 | 32,24,10,20 | ||
162 | 32,24,7,20 | ||
163 | 32,16,3,14 | ||
164 | 32,16,3,14 | ||
165 | 32,32,16,32 | ||
166 | 32,32,16,32 | ||
167 | 32,32,16,32 | ||
168 | 32,32,16,32 | ||
169 | 32,32,16,32 | ||
170 | 32,32,16,32 | ||
171 | 32,32,16,32 | ||
172 | 32,32,16,32 | ||
173 | 32,32,16,32 | ||
174 | 32,32,16,32 | ||
175 | 32,32,16,32 | ||
176 | 32,32,16,32 | ||
177 | 32,32,16,32 | ||
178 | 32,32,16,32 | ||
179 | 32,32,16,32 | ||
180 | 32,32,16,32 | ||
181 | 32,32,16,32 | ||
182 | 32,32,16,32 | ||
183 | 32,32,16,32 | ||
184 | 32,32,16,32 | ||
185 | 32,32,16,32 | ||
186 | 32,32,16,32 | ||
187 | 32,32,16,32 | ||
188 | 32,32,16,32 | ||
189 | 32,16,29,14 | ||
190 | 32,16,29,14 | ||
191 | 32,16,3,14 | ||
192 | 32,16,3,14 | ||
193 | 32,24,28,22 | ||
194 | 32,24,28,22 | ||
195 | 32,24,4,22 | ||
196 | 32,24,4,22 | ||
197 | 32,24,23,24 | ||
198 | 32,24,23,24 | ||
199 | 32,24,9,24 | ||
200 | 32,24,9,24 | ||
201 | 32,32,16,32 | ||
202 | 32,32,16,32 | ||
203 | 32,32,15,32 | ||
204 | 32,32,16,32 | ||
205 | 32,32,16,32 | ||
206 | 32,32,16,32 | ||
207 | 32,32,16,32 | ||
208 | 32,32,16,32 | ||
209 | 32,32,16,32 | ||
210 | 32,32,16,32 | ||
211 | 32,32,13,32 | ||
212 | 32,32,7,32 | ||
213 | 32,32,16,32 | ||
214 | 32,32,15,32 | ||
215 | 32,32,16,32 | ||
216 | 32,32,16,32 | ||
217 | 32,32,16,32 | ||
218 | 32,32,16,31 | ||
219 | 32,32,16,30 | ||
220 | 32,32,16,32 | ||
221 | 32,32,16,31 | ||
222 | 32,32,16,30 | ||
223 | 32,32,16,32 | ||
224 | 32,32,16,31 | ||
225 | 32,32,16,30 | ||
226 | 32,32,16,32 | ||
227 | 32,32,16,32 | ||
228 | 32,32,16,32 | ||
229 | 32,32,16,32 | ||
230 | 32,32,16,32 | ||
231 | 32,32,16,32 | ||
232 | 32,32,16,32 | ||
233 | 32,16,24,16 | ||
234 | 32,24,24,24 | ||
235 | 32,24,16,24 | ||
236 | 32,24,16,24 | ||
237 | 32,24,16,24 | ||
238 | 32,32,16,32 | ||
239 | 32,32,16,32 | ||
240 | 32,32,16,32 | ||
241 | 32,32,16,32 | ||
242 | 34,32,16,32 | ||
243 | 32,32,16,32 | ||
244 | 32,32,16,32 | ||
245 | 32,32,16,32 | ||
246 | 32,32,16,32 | ||
247 | 32,32,16,32 | ||
248 | 32,32,16,32 | ||
249 | 32,32,14,34 | ||
250 | 32,32,9,34 | ||
251 | 32,32,9,35 | ||
252 | 32,32,7,36 | ||
253 | 32,32,8,35 | ||
254 | 32,32,9,37 | ||
255 | 32,32,11,36 | ||
256 | 32,32,12,39 | ||
257 | 32,32,14,33 | ||
258 | 32,24,16,24 | ||
259 | 32,24,16,24 | ||
260 | 32,32,16,32 | ||
261 | 32,32,16,32 | ||
262 | 32,24,16,24 | ||
263 | 32,24,16,24 | ||
264 | 32,24,16,24 | ||
265 | 32,32,16,32 | ||
266 | 32,32,16,32 | ||
267 | 32,32,16,32 | ||
268 | 32,32,16,32 | ||
269 | 32,32,16,32 | ||
270 | 32,32,16,32 | ||
271 | 32,32,16,32 | ||
272 | 32,32,16,32 | ||
273 | 32,32,14,32 | ||
274 | 32,32,13,32 | ||
275 | 32,32,12,32 | ||
276 | 32,32,11,32 | ||
277 | 32,32,10,32 | ||
278 | 32,32,8,32 | ||
279 | 32,32,5,32 | ||
280 | 32,32,3,32 | ||
281 | 32,32,1,31 | ||
282 | 32,32,-1,30 | ||
283 | 32,32,-4,28 | ||
284 | 32,32,-6,26 | ||
285 | 32,32,-7,24 | ||
286 | 32,32,-9,22 | ||
287 | 32,32,-9,20 | ||
288 | 32,32,-10,16 | ||
289 | 32,32,-10,12 | ||
290 | 32,32,-10,8 | ||
291 | 32,32,-10,8 | ||
292 | 32,32,-10,8 | ||
293 | 32,32,16,32 | ||
294 | 32,32,16,32 | ||
295 | 32,32,16,32 | ||
296 | 32,32,16,32 | ||
diff --git a/src/main.cpp b/src/main.cpp index 4366a4d..4d8f52d 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -47,6 +47,10 @@ void loop(Renderer& renderer) { | |||
47 | game.getSystem<AnimationSystem>().initSprite(boneySprite, "../res/sprites/boney_anim.txt", renderer); | 47 | game.getSystem<AnimationSystem>().initSprite(boneySprite, "../res/sprites/boney_anim.txt", renderer); |
48 | game.getSystem<CharacterSystem>().addSpriteToParty(lucasSprite, boneySprite); | 48 | game.getSystem<CharacterSystem>().addSpriteToParty(lucasSprite, boneySprite); |
49 | 49 | ||
50 | int flintSprite = game.emplaceSprite(); | ||
51 | game.getSystem<TransformSystem>().initSprite(flintSprite, {35*16, 19*16}); | ||
52 | game.getSystem<AnimationSystem>().initSprite(flintSprite, "../res/sprites/flint_anim.txt", renderer); | ||
53 | |||
50 | game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); | 54 | game.getSystem<CameraSystem>().setFollowingSprite(lucasSprite); |
51 | game.getSystem<CameraSystem>().unlockCamera(); | 55 | game.getSystem<CameraSystem>().unlockCamera(); |
52 | 56 | ||