summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--res/sprites/flint.pngbin0 -> 85313 bytes
-rw-r--r--res/sprites/flint_anim.txt34
-rw-r--r--res/sprites/flint_frames.txt296
-rw-r--r--src/main.cpp4
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
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,0,16,0
12walk[down_left]: 9,1,17,1
13walk[left]: 10,2,18,2
14walk[up_left]: 11,3,19,3
15walk[up]: 12,4,20,4
16walk[up_right]: 13,5,21,5
17walk[right]: 14,6,22,6
18walk[down_right]: 15,7,23,7
19crouch[down]: 112
20crouch[down_left]: 113
21crouch[left]: 114
22crouch[up_left]: 115
23crouch[up]: 116
24crouch[up_right]: 117
25crouch[right]: 118
26crouch[down_right]: 119
27run[down]: 40,48,56,64
28run[down_left]: 41,49,57,65
29run[left]: 42,50,58,66
30run[up_left]: 43,51,59,67
31run[up]: 44,52,60,68
32run[up_right]: 45,53,61,69
33run[right]: 46,54,62,70
34run[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 @@
140,32 cell size
210 frames per row
3292 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,16,32
2332,32,16,32
2432,32,16,32
2532,32,16,32
2632,32,16,32
2732,32,16,32
2832,32,16,32
2932,32,16,32
3032,32,16,32
3132,32,16,32
3232,32,16,32
3332,32,16,32
3432,32,16,32
3532,32,16,32
3632,32,16,32
3732,32,16,32
3832,32,16,32
3932,32,16,32
4033,32,17,32
4132,32,16,32
4233,32,16,32
4332,32,16,32
4432,32,16,32
4536,32,16,32
4632,32,16,32
4732,32,16,32
4832,32,16,32
4932,32,16,32
5032,32,16,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
6136,32,16,32
6232,32,16,32
6332,32,16,32
6432,32,16,32
6532,32,16,32
6632,32,16,32
6732,32,16,32
6832,32,16,32
6932,32,16,32
7032,32,16,32
7132,32,16,32
7232,32,16,32
7332,32,16,32
7432,32,16,32
7532,32,16,32
7632,32,16,32
7735,32,17,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
8740,32,24,32
8832,32,16,32
8932,32,16,32
9032,32,16,32
9140,32,16,32
9232,32,16,32
9332,32,16,32
9440,32,24,32
9532,32,22,32
9632,32,17,32
9732,32,16,32
9832,32,15,32
9932,32,10,32
10040,32,16,32
10132,32,16,32
10232,32,16,32
10332,32,23,32
10432,32,18,32
10532,32,16,32
10632,32,14,32
10732,32,9,32
10832,32,16,32
10932,32,16,32
11032,32,16,32
11132,32,23,32
11232,32,18,32
11332,32,16,32
11432,32,14,32
11532,32,9,32
11632,32,16,32
11732,24,13,24
11832,24,24,24
11933,24,20,24
12033,24,19,24
12132,24,16,24
12233,24,14,24
12333,24,13,24
12432,24,8,24
12532,32,16,32
12632,32,16,32
12732,32,16,32
12832,32,16,32
12932,32,16,32
13032,32,16,32
13132,32,16,32
13232,32,16,32
13332,32,16,32
13432,32,16,32
13532,32,16,32
13632,32,16,32
13732,32,16,32
13832,32,16,32
13932,32,16,32
14032,32,16,32
14132,32,16,32
14232,32,16,32
14332,32,16,32
14432,32,16,32
14532,32,16,32
14632,32,16,32
14732,32,16,32
14832,32,16,32
14932,32,16,32
15032,32,16,32
15132,32,16,32
15232,32,16,32
15332,32,16,32
15432,32,16,32
15532,32,16,32
15632,32,16,32
15732,24,14,13
15832,24,14,13
15932,16,29,14
16032,24,25,20
16132,24,10,20
16232,24,7,20
16332,16,3,14
16432,16,3,14
16532,32,16,32
16632,32,16,32
16732,32,16,32
16832,32,16,32
16932,32,16,32
17032,32,16,32
17132,32,16,32
17232,32,16,32
17332,32,16,32
17432,32,16,32
17532,32,16,32
17632,32,16,32
17732,32,16,32
17832,32,16,32
17932,32,16,32
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,32
18932,16,29,14
19032,16,29,14
19132,16,3,14
19232,16,3,14
19332,24,28,22
19432,24,28,22
19532,24,4,22
19632,24,4,22
19732,24,23,24
19832,24,23,24
19932,24,9,24
20032,24,9,24
20132,32,16,32
20232,32,16,32
20332,32,15,32
20432,32,16,32
20532,32,16,32
20632,32,16,32
20732,32,16,32
20832,32,16,32
20932,32,16,32
21032,32,16,32
21132,32,13,32
21232,32,7,32
21332,32,16,32
21432,32,15,32
21532,32,16,32
21632,32,16,32
21732,32,16,32
21832,32,16,31
21932,32,16,30
22032,32,16,32
22132,32,16,31
22232,32,16,30
22332,32,16,32
22432,32,16,31
22532,32,16,30
22632,32,16,32
22732,32,16,32
22832,32,16,32
22932,32,16,32
23032,32,16,32
23132,32,16,32
23232,32,16,32
23332,16,24,16
23432,24,24,24
23532,24,16,24
23632,24,16,24
23732,24,16,24
23832,32,16,32
23932,32,16,32
24032,32,16,32
24132,32,16,32
24234,32,16,32
24332,32,16,32
24432,32,16,32
24532,32,16,32
24632,32,16,32
24732,32,16,32
24832,32,16,32
24932,32,14,34
25032,32,9,34
25132,32,9,35
25232,32,7,36
25332,32,8,35
25432,32,9,37
25532,32,11,36
25632,32,12,39
25732,32,14,33
25832,24,16,24
25932,24,16,24
26032,32,16,32
26132,32,16,32
26232,24,16,24
26332,24,16,24
26432,24,16,24
26532,32,16,32
26632,32,16,32
26732,32,16,32
26832,32,16,32
26932,32,16,32
27032,32,16,32
27132,32,16,32
27232,32,16,32
27332,32,14,32
27432,32,13,32
27532,32,12,32
27632,32,11,32
27732,32,10,32
27832,32,8,32
27932,32,5,32
28032,32,3,32
28132,32,1,31
28232,32,-1,30
28332,32,-4,28
28432,32,-6,26
28532,32,-7,24
28632,32,-9,22
28732,32,-9,20
28832,32,-10,16
28932,32,-10,12
29032,32,-10,8
29132,32,-10,8
29232,32,-10,8
29332,32,16,32
29432,32,16,32
29532,32,16,32
29632,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