summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--res/duster.pngbin0 -> 97607 bytes
-rw-r--r--res/duster_anim.txt34
-rw-r--r--res/duster_frames.txt335
-rw-r--r--src/main.cpp4
4 files changed, 371 insertions, 2 deletions
diff --git a/res/duster.png b/res/duster.png new file mode 100644 index 0000000..48e8261 --- /dev/null +++ b/res/duster.png
Binary files differ
diff --git a/res/duster_anim.txt b/res/duster_anim.txt new file mode 100644 index 0000000..11492e6 --- /dev/null +++ b/res/duster_anim.txt
@@ -0,0 +1,34 @@
1../res/duster.png
2../res/duster_frames.txt
3still[down]: 0
4still[down_left]: 1
5still[left]: 2
6still[up_left]: 3
7still[up]: 4
8still[up_right]: 5
9still[right]: 6
10still[down_right]: 7
11walk[down]: 8,16,24,32,40
12walk[down_left]: 9,17,25,33,41
13walk[left]: 10,18,26,34,42
14walk[up_left]: 11,19,27,35,43
15walk[up]: 12,20,28,36,44
16walk[up_right]: 13,21,29,37,45
17walk[right]: 14,22,30,38,46
18walk[down_right]: 15,23,31,39,47
19crouch[down]: 64
20crouch[down_left]: 65
21crouch[left]: 66
22crouch[up_left]: 67
23crouch[up]: 68
24crouch[up_right]: 69
25crouch[right]: 70
26crouch[down_right]: 71
27run[down]: 72,80,88,96,104
28run[down_left]: 73,81,89,97,105
29run[left]: 74,82,90,98,106
30run[up_left]: 75,83,91,99,107
31run[up]: 76,84,92,100,108
32run[up_right]: 77,85,93,101,109
33run[right]: 78,86,94,102,110
34run[down_right]: 79,87,95,103,111 \ No newline at end of file
diff --git a/res/duster_frames.txt b/res/duster_frames.txt new file mode 100644 index 0000000..8335bf3 --- /dev/null +++ b/res/duster_frames.txt
@@ -0,0 +1,335 @@
140,32 cell size
210 frames per row
3331 frames
4
532,32,16,32
632,32,16,32
732,32,16,32
832,32,16,32
932,32,16,32
1032,32,16,32
1132,32,16,32
1232,32,16,32
1332,32,16,32
1432,32,16,32
1532,32,16,32
1632,32,16,32
1732,32,16,32
1832,32,16,32
1932,32,16,32
2032,32,16,32
2132,32,16,32
2232,32,17,32
2332,32,16,32
2432,32,16,32
2532,32,16,32
2632,32,16,32
2732,32,16,32
2832,32,15,32
2933,32,16,32
3032,32,16,32
3132,32,15,32
3232,32,16,32
3333,32,17,32
3432,32,16,32
3532,32,17,32
3632,32,16,32
3734,32,16,32
3832,32,15,32
3932,32,14,32
4032,32,17,32
4134,32,18,32
4232,32,15,32
4332,32,18,32
4432,32,17,32
4533,32,16,32
4632,32,16,32
4732,32,16,32
4832,32,17,32
4933,32,17,32
5032,32,15,32
5132,32,16,32
5232,32,16,32
5332,32,16,32
5432,32,16,32
5532,32,16,32
5632,32,16,32
5732,32,16,32
5832,32,16,32
5932,32,16,32
6032,32,16,32
6132,32,16,32
6232,32,16,32
6332,32,16,32
6432,32,17,32
6532,32,16,32
6632,32,15,32
6732,32,16,32
6832,32,16,32
6932,32,16,32
7032,32,16,32
7132,32,18,32
7232,32,17,32
7332,32,16,32
7432,32,15,32
7532,32,14,32
7632,32,16,32
7732,32,16,32
7832,32,16,32
7932,32,16,32
8032,32,16,32
8132,32,16,32
8232,32,16,32
8332,32,16,32
8432,32,16,32
8532,32,16,32
8632,32,16,32
8733,32,17,32
8832,32,16,32
8932,32,16,32
9032,32,16,32
9133,32,16,32
9232,32,16,32
9332,32,16,32
9432,32,16,32
9532,32,18,32
9632,32,17,32
9732,32,16,32
9832,32,15,32
9932,32,14,32
10032,32,16,32
10132,32,16,32
10240,32,24,32
10332,32,16,32
10432,32,16,32
10532,32,16,32
10632,32,16,32
10732,32,16,32
10840,32,16,32
10932,32,16,32
11040,32,24,32
11132,32,16,32
11232,32,16,32
11332,32,16,32
11432,32,16,32
11532,32,16,32
11640,32,16,32
11732,32,16,32
11832,32,16,32
11932,32,16,32
12032,32,16,32
12132,32,16,32
12232,32,16,32
12332,32,16,32
12432,32,16,32
12532,32,16,32
12632,32,16,32
12732,24,16,4
12832,24,22,8
12932,24,29,18
13032,24,22,21
13132,32,13,30
13232,24,10,21
13332,24,3,17
13432,24,10,8
13532,32,16,32
13632,32,15,32
13732,32,16,32
13832,32,16,32
13932,32,16,32
14032,32,16,32
14132,32,16,32
14232,32,17,32
14332,31,17,31
14432,32,15,32
14532,32,17,32
14632,32,16,32
14732,32,16,32
14832,32,16,32
14932,32,15,32
15032,32,17,32
15132,32,16,32
15232,32,14,32
15332,32,17,32
15432,32,16,32
15532,32,16,32
15632,32,16,32
15732,32,15,32
15832,32,18,32
15932,32,15,32
16032,32,13,32
16132,32,18,32
16232,32,17,32
16334,32,18,32
16432,32,15,32
16532,32,14,32
16632,32,19,32
16732,31,16,31
16832,32,14,32
16932,32,18,32
17032,32,17,32
17132,32,17,32
17232,32,15,32
17332,32,14,32
17432,32,18,32
17532,24,16,24
17632,24,16,24
17732,24,16,24
17832,24,16,24
17932,24,16,24
18032,32,16,32
18132,32,16,32
18232,32,16,32
18332,32,16,32
18432,32,16,32
18532,32,16,32
18632,32,16,32
18732,32,16,32
18832,32,16,38
18932,32,16,38
19032,32,16,32
19132,32,16,32
19232,32,16,38
19332,32,16,38
19432,32,16,32
19532,30,16,30
19632,32,16,32
19732,32,16,32
19832,32,16,32
19932,32,16,32
20032,32,16,32
20132,32,16,32
20232,32,16,32
20332,32,16,32
20432,32,16,32
20532,32,16,33
20632,32,16,32
20732,32,16,30
20832,32,16,33
20932,32,16,32
21032,32,16,30
21132,32,16,33
21232,32,16,32
21332,32,16,31
21432,32,16,32
21532,32,16,32
21632,32,16,32
21732,32,16,32
21832,32,16,32
21932,32,16,32
22032,32,16,32
22132,32,16,32
22232,8,16,8
22332,8,16,8
22432,16,16,16
22532,16,16,16
22632,24,16,24
22732,24,16,24
22832,16,16,16
22932,16,16,16
23032,16,16,16
23132,16,16,16
23232,16,16,16
23332,16,16,16
23432,16,16,16
23532,16,16,16
23632,16,16,16
23732,16,16,16
23832,16,16,16
23932,16,16,16
24032,16,16,16
24132,16,16,16
24232,16,16,16
24332,16,16,16
24432,16,16,16
24532,16,16,16
24632,16,16,16
24732,16,16,16
24832,16,16,16
24932,16,16,16
25032,16,16,16
25132,16,16,16
25232,16,16,16
25332,16,16,16
25432,16,16,16
25532,16,16,16
25632,32,16,32
25732,32,16,32
25832,16,16,16
25932,16,16,16
26032,16,16,16
26132,16,16,16
26232,16,16,16
26332,32,16,16
26432,32,16,16
26532,32,16,16
26632,32,16,16
26716,8,8,36
26816,8,8,34
26916,8,8,34
27016,16,8,40
27116,16,8,38
27232,16,16,35
27332,24,16,40
27432,24,16,37
27532,24,16,32
27632,32,16,39
27732,32,16,38
27832,32,16,37
27932,32,16,36
28032,32,16,35
28132,32,16,34
28232,32,16,34
28332,32,16,32
28432,32,16,32
28532,32,16,32
28632,32,16,32
28732,32,16,32
28832,32,16,32
28932,32,16,32
29032,32,16,32
29132,32,16,32
29232,32,16,32
29332,32,16,32
29432,32,16,32
29532,32,16,32
29632,32,16,32
29732,32,16,32
29832,32,16,32
2998,8,4,32
30032,32,16,32
30132,32,16,32
30232,32,16,32
30332,32,16,29
30432,32,16,29
30532,32,16,29
30632,32,16,32
30732,32,16,32
30832,32,16,32
30932,32,16,32
31032,32,16,32
31132,24,16,24
31232,24,15,22
31332,32,16,32
31432,32,16,32
31532,32,16,38
31632,32,16,38
31732,32,16,32
31832,32,16,32
31932,32,16,32
32032,32,16,32
32132,32,16,32
32232,32,16,32
32332,32,16,32
32432,32,16,32
32532,32,16,32
32632,32,16,32
32732,32,16,32
3288,8,4,8
3298,8,4,8
3308,8,3,8
33132,32,16,32
33232,32,16,32
33332,32,16,32
33433,32,17,32
33533,32,16,32
diff --git a/src/main.cpp b/src/main.cpp index e09d394..fa9605f 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -10,14 +10,14 @@ void loop(Renderer& renderer) {
10 10
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 lucasSprite2 = game.addSprite(Sprite("../res/lucas_anim.txt", renderer)); 13 int dusterSprite = game.addSprite(Sprite("../res/duster_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);
20 party.addMember(game, kumaSprite); 19 party.addMember(game, kumaSprite);
20 party.addMember(game, dusterSprite);
21 21
22 renderer.render(game); 22 renderer.render(game);
23 23