root / proj / src / project / include / proj_macros.h @ 375
History | View | Annotate | Download (1.47 KB)
1 |
#ifndef PROJ_MACROS_H_INCLUDED
|
---|---|
2 |
#define PROJ_MACROS_H_INCLUDED
|
3 |
|
4 |
/**
|
5 |
* @defgroup proj_macros proj_macros
|
6 |
* @ingroup proj
|
7 |
* @brief Project macros.
|
8 |
*
|
9 |
* @{
|
10 |
*/
|
11 |
|
12 |
// Movement Directions
|
13 |
/** @brief Moving to the top side of screen */
|
14 |
#define UP -1 |
15 |
/** @brief Moving to the bottom side of screen */
|
16 |
#define DOWN 1 |
17 |
/** @brief Moving to the left side of screen */
|
18 |
#define LEFT -1 |
19 |
/** @brief Moving to the right side of screen */
|
20 |
#define RIGHT 1 |
21 |
/** @brief Not moving */
|
22 |
#define REST 0 |
23 |
|
24 |
// Movement Constants
|
25 |
/** @brief Shooter speed */
|
26 |
#define SHOOTER_SPEED 5 |
27 |
/** @brief Bullet speet */
|
28 |
#define BULLET_SPEED 8 |
29 |
|
30 |
// Refresh Rate
|
31 |
/** @brief Screen refresh rate */
|
32 |
#define REFRESH_RATE 60 |
33 |
|
34 |
//Graphics mode
|
35 |
/** @brief Graphic mode used */
|
36 |
#define GRAPH_MODE DIRECT_1024_768_888
|
37 |
/** @brief Minimum zoom */
|
38 |
#define MIN_SCALE 0.2 |
39 |
/** @brief Default zoom */
|
40 |
#define DEFAULT_SCALE 0.5 |
41 |
/** @brief Maximum zoom */
|
42 |
#define MAX_SCALE 10.0 |
43 |
|
44 |
// Colors
|
45 |
/** @brief Text color */
|
46 |
#define TEXT_COLOR 0xFFFFFF |
47 |
/** @brief Highlight color */
|
48 |
#define HIGHLIGHT_COLOR 0x404040 |
49 |
/** @brief Delimiter color */
|
50 |
#define DELIMITER_COLOR 0x404040 |
51 |
|
52 |
/** @brief Melee attacks range */
|
53 |
#define MELEE_RANGE 80 |
54 |
/** @brief Melee attack damage (for zombies). */
|
55 |
#define MELEE_DAMAGE 1 |
56 |
/** @brief Zombie speed */
|
57 |
#define ZOMBIE_SPEED 1.0 |
58 |
|
59 |
/**
|
60 |
* @}
|
61 |
*/
|
62 |
|
63 |
#endif /* end of include guard: PROJ_MACROS_H_INCLUDED */ |