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
|
#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
},
};
const Animation* get_animation(Animation_ID id) {
return &animations[id];
}
|