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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
#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
},
/* animation_heart_break */
{
{
{ 72, 72, 7, 7 },
{ 79, 72, 7, 7 },
{ 86, 72, 7, 7 },
{ 93, 72, 7, 7 },
{ 100, 72, 7, 7 },
{ 107, 72, 7, 7 }
},
6,
3
},
/* animation_spawn */
{
{
{ 133, 60, 15, 6 },
{ 133, 60, 15, 6 },
{ 133, 60, 15, 6 },
{ 133, 60, 15, 6 },
{ 133, 66, 15, 6 },
{ 148, 60, 15, 6 },
{ 148, 66, 15, 6 },
{ 148, 72, 15, 6 },
},
8,
5
},
/* animation_fade */
{
{
{ 0, 60, 10, 10 },
{ 10, 60, 10, 10 },
{ 20, 60, 10, 10 },
{ 30, 60, 10, 10 },
{ 40, 60, 10, 10 },
{ 50, 60, 10, 10 },
{ 60, 60, 10, 10 },
{ 70, 60, 10, 10 }
},
8,
5
}
};
const Animation* get_animation(Animation_ID id) {
return &animations[id];
}
|