-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.c
120 lines (108 loc) · 3.14 KB
/
constants.c
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
118
119
/*
* constants.c
*
* Sprite metrics constants.
*/
#include "soda.h"
const struct metrics c_Metrics[ID_T_MAX] =
{
// NOTHING
{
.filename = "NOTHING",
.h_frame_shift = 0,
.v_frame_shift = 0,
.box_width = 0,
.box_height = 0,
.strength = -1
},
// PLAYER
{
.filename = "doom.bmp",
.h_frame_shift = 6,
.v_frame_shift = 6,
.box_width = 35,
.box_height = 55,
.strength = 20
},
// TROOPER
{
.filename = "trooper.bmp",
.h_frame_shift = 6,
.v_frame_shift = 6,
.box_width = 35,
.box_height = 55,
.strength = 1
},
// DEMON
{
.filename = "demon.bmp",
.h_frame_shift = 6,
.v_frame_shift = 6,
.box_width = 35,
.box_height = 55,
.strength = 3
},
// BULL
{
.filename = "bull.bmp",
.h_frame_shift = 6,
.v_frame_shift = 7,
.box_width = 45,
.box_height = 70,
.strength = 5
},
// CYBERBULL
{
.filename = "cyberbull.bmp",
.h_frame_shift = 7,
.v_frame_shift = 7,
.box_width = 75,
.box_height = 105,
.strength = 10
},
// PLAYER_ATTACK
{
.filename = "doom_attack.bmp",
.h_frame_shift = 6,
.v_frame_shift = 6,
.box_width = 49,
.box_height = 55,
.strength = 1
},
// TROOPER_ATTACK
{
.filename = "trooper_attack.bmp",
.h_frame_shift = 5,
.v_frame_shift = 5,
.box_width = 32,
.box_height = 55,
.strength = 1
},
// DEMON_ATTACK
{
.filename = "demon_attack.bmp",
.h_frame_shift = 5,
.v_frame_shift = 5,
.box_width = 32,
.box_height = 25,
.strength = 2
},
// BULL_ATTACK
{
.filename = "bull_attack.bmp",
.h_frame_shift = 6,
.v_frame_shift = 7,
.box_width = 45,
.box_height = 75,
.strength = 3
},
// CYBERBULL_ATTACK
{
.filename = "cyberbull_attack.bmp",
.h_frame_shift = 6,
.v_frame_shift = 6,
.box_width = 64,
.box_height = 55,
.strength = 4
}
};