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