summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-01-31 13:18:46 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-01-31 13:18:46 -0500
commit66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d (patch)
tree3bdc6139c11c3cae0bf0f752e13505bf4a576d14
parentd0f98e7a332d9570409eecc7801064c850b20e34 (diff)
downloadtanetane-66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d.tar.gz
tanetane-66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d.tar.bz2
tanetane-66e8f5b7d5d245bb7f5d4c4963e70e6b97e0bd4d.zip
Added Boney
-rw-r--r--res/boney.pngbin0 -> 77904 bytes
-rw-r--r--res/boney_anim.txt34
-rw-r--r--res/boney_frames.txt370
-rw-r--r--src/main.cpp2
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
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
12walk[down_left]: 9,17,25
13walk[left]: 10,18,26
14walk[up_left]: 11,19,27
15walk[up]: 12,20,28
16walk[up_right]: 13,21,29
17walk[right]: 14,22,30
18walk[down_right]: 15,23,31
19crouch[down]: 80,88
20crouch[down_left]: 81,89
21crouch[left]: 82,90
22crouch[up_left]: 83,91
23crouch[up]: 84,92
24crouch[up_right]: 85,93
25crouch[right]: 86,94
26crouch[down_right]: 87,95
27run[down]: 48,56,64,72
28run[down_left]: 49,57,65,73
29run[left]: 50,58,66,74
30run[up_left]: 51,59,67,75
31run[up]: 52,60,68,76
32run[up_right]: 53,61,69,77
33run[right]: 54,62,70,78
34run[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 @@
132,32 cell size
210 frames per row
3366 frames
4
516,24,8,24
632,24,16,24
732,24,16,24
832,24,16,24
916,24,8,24
1032,24,16,24
1132,24,16,24
1232,24,16,24
1316,32,8,32
1432,32,16,32
1532,24,16,24
1632,24,16,24
1716,32,8,32
1832,24,16,24
1932,24,16,24
2032,32,16,32
2116,24,8,24
2232,24,16,24
2332,24,16,24
2432,24,16,24
2516,24,8,24
2632,24,16,24
2732,24,16,24
2832,24,16,24
2916,24,8,24
3032,24,16,24
3132,24,16,24
3232,24,16,24
3316,24,8,24
3432,24,16,24
3532,24,16,24
3632,24,16,24
3732,24,16,24
3832,24,16,24
3932,24,16,24
4032,24,16,24
4132,24,16,24
4232,24,16,24
4332,24,16,24
4432,24,16,24
4516,24,8,24
4632,24,16,24
4732,24,16,24
4832,24,16,24
4916,24,8,24
5032,24,16,24
5132,24,16,24
5232,24,16,24
5332,24,16,24
5432,24,16,24
5532,24,16,24
5632,24,16,24
5732,24,16,25
5832,24,16,24
5932,24,16,24
6032,24,16,24
6116,24,8,24
6232,24,16,24
6332,24,16,24
6432,24,16,24
6516,24,8,24
6632,24,16,24
6732,24,16,24
6832,24,16,24
6916,24,8,24
7032,24,16,24
7132,24,16,24
7232,24,15,24
7316,24,8,24
7432,24,17,24
7532,24,16,24
7632,24,16,24
7716,24,8,24
7832,24,16,24
7932,24,16,24
8032,24,15,24
8116,24,8,24
8232,24,17,24
8332,24,16,24
8432,24,16,24
8516,24,8,24
8632,24,16,24
8732,24,16,24
8832,24,16,24
8916,24,8,24
9032,24,16,24
9132,24,16,24
9232,24,16,24
9316,16,8,16
9432,16,16,16
9532,16,16,16
9632,16,16,16
9716,16,8,16
9832,16,16,16
9932,16,16,16
10032,16,16,16
10132,24,16,24
10232,24,16,24
10332,24,16,24
10432,24,16,24
10532,24,16,24
10632,24,16,24
10732,24,16,24
10832,24,16,24
10932,24,16,24
11032,24,16,24
11132,24,16,24
11232,24,16,24
11332,24,16,24
11432,24,16,24
11532,24,16,24
11632,24,16,24
11732,24,16,24
11832,16,16,16
11932,24,16,24
12016,16,8,13
12132,32,16,32
12232,32,16,31
12317,32,8,32
12432,32,16,31
12532,24,18,14
12632,16,19,14
12732,16,16,15
12832,16,16,14
12932,24,15,19
13032,24,16,24
13132,16,16,14
13232,16,16,15
13332,16,16,14
13416,24,8,22
13532,24,16,24
13632,24,16,24
13732,24,16,24
13816,24,8,24
13932,24,16,24
14032,24,16,24
14132,24,16,24
14216,24,8,24
14332,24,17,24
14432,24,16,24
14532,24,16,23
14616,24,8,23
14732,24,16,23
14832,24,16,24
14932,24,15,24
15016,24,8,24
15132,24,17,24
15232,24,16,24
15332,24,16,23
15416,24,8,23
15532,24,16,23
15632,24,16,24
15732,24,15,24
15816,16,9,16
15932,16,16,16
16032,16,16,16
16132,24,16,23
16216,24,9,23
16332,24,16,23
16432,16,16,16
16532,16,16,16
16616,16,8,16
16732,24,16,24
16832,24,16,24
16932,24,16,24
17016,16,8,16
17132,24,16,24
17232,24,16,24
17332,24,16,24
17416,16,8,16
17532,16,16,16
17632,16,16,16
17732,16,16,16
17816,16,8,16
17932,16,16,16
18032,16,16,16
18132,16,16,16
18216,16,8,16
18332,16,16,16
18432,16,16,16
18532,16,16,16
18616,16,8,16
18732,16,16,16
18832,16,16,16
18932,16,16,16
19032,32,16,32
19132,32,16,31
19232,32,16,32
19332,32,16,32
19432,24,17,24
19532,24,16,24
19632,24,16,24
19732,24,16,24
19832,24,16,24
19916,24,8,24
20032,16,16,16
20116,24,8,24
20232,24,16,24
20332,32,16,32
20432,32,16,32
20532,24,16,24
20632,24,16,24
20732,24,16,24
20832,24,16,24
20932,24,16,24
21032,24,16,24
21132,32,16,32
21232,32,16,32
21332,32,16,32
21432,24,16,24
21516,24,8,24
21632,24,16,24
21732,24,16,24
21832,24,16,24
21932,24,16,24
22032,24,16,24
22132,24,16,24
22232,24,16,24
22332,24,16,24
22432,24,16,24
22532,24,16,24
22632,24,16,24
22732,24,16,24
22832,24,16,24
22932,24,16,24
23032,24,16,24
23132,24,16,24
23232,24,16,24
23332,24,16,24
23432,24,16,24
23532,24,13,24
23632,24,13,24
23732,24,13,24
23832,24,13,24
23932,24,13,24
24032,24,16,24
24132,24,16,24
24232,24,16,24
24332,24,16,24
24432,24,16,24
24516,32,8,34
24616,32,8,35
24716,32,8,34
24816,24,8,33
24916,24,8,32
25016,24,8,31
25116,24,8,30
25216,22,8,30
25316,22,8,28
25416,22,8,26
25516,24,8,24
25616,32,8,28
25716,32,8,32
25816,32,8,32
25916,32,8,32
26016,32,8,32
26116,32,8,32
26216,32,8,33
26316,32,8,34
26416,32,8,35
26516,32,8,37
26616,32,8,38
26716,32,8,36
26816,32,8,35
26916,32,8,33
27016,32,8,32
2718,8,4,8
2728,8,4,8
2738,8,3,8
27432,32,29,-6
27532,32,29,-6
27632,32,27,-5
27732,32,27,-5
27832,32,24,-5
27932,32,24,-5
28032,32,24,-5
28132,32,24,-5
28232,31,22,-4
28332,31,22,-4
28432,31,24,-4
28532,31,24,-4
28632,32,26,-1
28732,32,26,-1
28832,32,27,-2
28932,32,27,-2
29032,32,28,0
29132,32,28,0
29232,31,30,-3
29332,31,30,-3
29432,32,3,-6
29532,32,3,-6
29632,32,5,-5
29732,32,5,-5
29832,32,8,-5
29932,32,8,-5
30032,32,8,-5
30132,32,8,-5
30232,31,10,-4
30332,31,10,-4
30432,31,8,-4
30532,31,8,-4
30632,32,6,-1
30732,32,6,-1
30832,32,5,-2
30932,32,5,-2
31032,32,4,0
31132,32,4,0
31232,31,2,-3
31332,31,2,-3
31432,32,30,-8
31532,32,30,-8
31632,32,28,-7
31732,32,28,-7
31832,32,25,-7
31932,32,25,-7
32032,32,25,-7
32132,32,25,-7
32232,31,23,-6
32332,31,23,-6
32432,31,25,-6
32532,31,25,-6
32632,32,27,-3
32732,32,27,-3
32832,32,28,-4
32932,32,28,-4
33032,32,29,-2
33132,32,29,-2
33232,31,31,-5
33332,31,31,-5
33432,32,2,-8
33532,32,2,-8
33632,32,4,-7
33732,32,4,-7
33832,32,7,-7
33932,32,7,-7
34032,32,7,-7
34132,32,7,-7
34232,31,9,-6
34332,31,9,-6
34432,31,7,-6
34532,31,7,-6
34632,32,5,-3
34732,32,5,-3
34832,32,4,-4
34932,32,4,-4
35032,32,3,-2
35132,32,3,-2
35232,31,1,-5
35332,31,1,-5
35416,24,8,24
35532,32,16,12
35632,32,16,18
35732,32,16,16
35832,32,16,15
35932,24,16,8
36032,32,16,16
36132,32,16,15
36216,24,8,16
36316,24,8,24
36416,24,8,24
36532,24,16,24
36632,16,16,16
36732,24,16,24
36816,24,8,21
36917,24,9,21
37017,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