1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#include "animation.h"
static const Animation animations[] = {
/* animation_player_walk_left */
{
{
{ 0, 16, 16, 16 },
{ 16, 16, 16, 16 },
{ 16, 16, 16, 16 },
{ 0, 16, 16, 16 },
{ 32, 16, 16, 16 },
{ 32, 16, 16, 16 }
},
6,
3
},
/* animation_player_walk_right */
{
{
{ 0, 0, 16, 16 },
{ 16, 0, 16, 16 },
{ 16, 0, 16, 16 },
{ 0, 0, 16, 16 },
{ 32, 0, 16, 16 },
{ 32, 0, 16, 16 }
},
6,
3
},
/* animation_player_idle_left */
{
{
{ 0, 16, 16, 16 },
},
1,
1
},
/* animation__player_idle_right */
{
{
{ 0, 0, 16, 16 },
},
1,
1
},
/* animation_enemy_bullet_explode */
{
{
{ 24, 0, 7, 7 },
{ 31, 0, 7, 7 },
{ 38, 0, 7, 7 }
},
3,
5
},
/* animation_player_bullet_explode */
{
{
{ 30, 15, 15, 15 },
{ 45, 15, 15, 15 },
{ 60, 15, 15, 15 },
{ 75, 15, 15, 15 },
{ 90, 15, 15, 15 },
{ 105, 15, 15, 15 },
{ 120, 15, 15, 15 },
},
7,
1
}
};
const Animation* get_animation(Animation_ID id) {
return &animations[id];
}
|