summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-01-31 12:33:24 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-01-31 12:33:24 -0500
commit2d318a933d540b6e3164216d8c76d0750d86180d (patch)
tree43f284693a9fc063d0448f51c859ae5144bb7418
parent2c795b6bf6cd0f9b9d66b6cf2dfced7d3171e294 (diff)
downloadtanetane-2d318a933d540b6e3164216d8c76d0750d86180d.tar.gz
tanetane-2d318a933d540b6e3164216d8c76d0750d86180d.tar.bz2
tanetane-2d318a933d540b6e3164216d8c76d0750d86180d.zip
Added Kumatora
-rw-r--r--res/kuma_anim.txt34
-rw-r--r--res/kumatora.pngbin1628 -> 67143 bytes
-rw-r--r--res/kumatora_frames.txt278
-rw-r--r--src/main.cpp8
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
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]: 16,0,24
12walk[down_left]: 17,1,25
13walk[left]: 18,2,26
14walk[up_left]: 19,3,27
15walk[up]: 20,4,28
16walk[up_right]: 21,5,29
17walk[right]: 22,6,30
18walk[down_right]: 23,7,31
19crouch[down]: 48
20crouch[down_left]: 49
21crouch[left]: 50
22crouch[up_left]: 51
23crouch[up]: 52
24crouch[up_right]: 53
25crouch[right]: 54
26crouch[down_right]: 55
27run[down]: 64,72,80,88
28run[down_left]: 65,73,81,89
29run[left]: 66,74,82,90
30run[up_left]: 67,75,83,91
31run[up]: 68,76,84,92
32run[up_right]: 69,77,85,93
33run[right]: 70,78,86,94
34run[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 @@
133,32 cell size
210 frames per row
3274 frames
4
532,32,16,32
632,32,16,32
716,32,7,32
816,32,7,32
932,32,16,32
1016,32,8,32
1116,32,8,32
1232,32,15,32
1332,32,16,32
1432,32,16,32
1516,32,7,32
1616,32,7,32
1732,32,16,32
1816,32,8,32
1916,32,8,32
2032,32,15,32
2132,32,16,32
2232,32,16,32
2316,32,7,32
2416,32,7,32
2532,32,16,32
2616,32,8,32
2716,32,8,32
2832,32,15,32
2932,32,16,32
3032,32,16,32
3116,32,7,32
3216,32,7,32
3332,32,16,32
3416,32,8,32
3516,32,8,32
3632,32,15,32
3732,32,16,32
3832,32,16,32
3917,32,8,32
4016,32,7,32
4132,32,16,32
4216,32,8,32
4317,32,8,32
4432,32,15,32
4532,32,16,32
4632,32,16,32
4717,32,8,32
4816,32,7,32
4932,32,16,32
5016,32,8,32
5117,32,8,32
5232,32,15,32
5332,28,16,28
5432,28,16,28
5516,28,7,28
5616,28,7,28
5732,28,16,28
5816,28,8,28
5916,28,8,28
6032,28,15,28
6132,24,20,8
6232,24,28,6
6332,16,26,8
6432,24,24,20
6532,24,19,20
6632,24,8,20
6732,16,6,8
6832,24,4,6
6932,32,16,31
7032,32,15,31
7116,32,8,32
7216,32,8,32
7332,32,16,32
7416,32,7,32
7516,32,7,32
7632,32,16,32
7732,32,16,32
7832,32,16,32
7916,32,7,32
8016,32,7,32
8132,32,16,32
8216,32,8,32
8316,32,8,32
8432,32,15,32
8532,32,16,32
8632,32,16,32
8716,32,7,32
8816,32,7,32
8932,32,16,32
9016,32,8,32
9116,32,8,32
9232,32,15,32
9332,32,16,32
9432,32,16,32
9516,32,7,32
9616,32,7,32
9732,32,16,32
9816,32,8,32
9916,32,8,32
10032,32,15,32
10132,32,16,32
10232,32,16,32
10316,32,7,32
10416,32,7,32
10532,32,16,32
10616,32,8,32
10716,32,8,32
10832,32,15,32
10932,32,16,32
11032,32,16,32
11116,32,9,32
11216,32,8,32
11332,32,16,32
11416,32,7,32
11516,32,8,32
11632,32,17,32
11732,32,16,32
11832,32,16,32
11916,32,9,32
12016,32,8,32
12132,32,16,32
12216,32,7,32
12316,32,8,32
12432,32,17,32
12532,32,16,32
12632,32,16,32
12716,32,9,32
12816,32,8,32
12932,32,16,32
13016,32,7,32
13116,32,8,32
13232,32,17,32
13332,32,16,32
13432,32,16,32
13516,32,7,32
13616,32,7,32
13732,32,16,32
13816,32,8,32
13916,32,8,32
14032,32,15,32
14132,32,16,32
14232,32,16,32
14317,32,8,32
14416,32,7,32
14532,32,16,32
14616,32,8,32
14716,32,8,32
14832,32,15,32
14932,32,16,32
15032,32,16,32
15116,32,7,32
15216,32,7,32
15332,32,16,32
15416,32,8,32
15516,32,8,32
15632,32,15,32
15732,32,16,32
15832,32,16,32
15917,32,8,32
16016,32,7,32
16132,32,16,32
16232,32,16,32
16316,32,8,32
16432,32,15,32
16532,28,16,28
16632,28,16,28
16716,32,8,32
16816,32,8,32
16932,32,16,32
17032,32,16,32
1718,8,4,31
17216,8,8,33
17316,8,8,34
17416,16,8,38
17516,16,8,37
17616,16,8,36
17716,16,9,35
17832,24,16,34
17932,24,16,33
18032,24,16,32
18132,32,16,33
18232,32,16,35
18332,32,16,37
18432,32,16,36
18532,32,16,35
18632,32,16,34
18732,32,16,32
18832,32,16,32
18932,32,16,32
19032,32,16,32
19132,32,16,32
19232,32,16,32
19332,32,16,32
19432,32,16,32
19532,32,16,32
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,32
20632,32,16,31
20732,32,16,31
20832,32,16,31
20932,32,16,31
21032,32,16,31
21132,32,16,32
21232,32,16,32
21332,32,16,32
21433,32,16,32
21516,32,6,32
21616,32,4,32
21718,32,4,32
21818,32,8,32
21916,32,11,32
22016,32,11,32
22132,32,19,32
22232,32,38,13
22332,32,38,13
22432,32,36,15
22532,32,36,15
22632,32,31,15
22732,32,31,15
22832,32,31,16
22932,32,31,16
23032,31,29,16
23132,31,29,16
23232,31,30,15
23332,31,30,15
23432,32,31,18
23532,32,31,18
23632,32,33,17
23732,32,33,17
23832,32,34,20
23932,32,34,20
24032,32,36,14
24132,32,36,14
24232,32,-6,13
24332,32,-6,13
24432,32,-4,15
24532,32,-4,15
24632,32,1,15
24732,32,1,15
24832,32,1,16
24932,32,1,16
25032,31,3,16
25132,31,3,16
25232,31,2,15
25332,31,2,15
25432,32,1,18
25532,32,1,18
25632,32,-1,17
25732,32,-1,17
25832,32,-2,20
25932,32,-2,20
26032,32,-4,14
26132,32,-4,14
26232,32,16,33
26332,32,16,32
26432,32,16,31
26532,32,15,33
26632,32,15,32
26732,32,15,31
26832,32,16,32
26932,32,16,31
27032,32,16,30
2718,8,4,8
2728,8,4,8
2738,8,3,8
27432,32,16,32
27532,32,16,32
27632,32,16,32
27732,32,17,32
27832,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