Project

General

Profile

Statistics
| Revision:

root / proj / src / project / include / proj_macros.h @ 380

History | View | Annotate | Download (1.47 KB)

1 148 up20180655
#ifndef PROJ_MACROS_H_INCLUDED
2
#define PROJ_MACROS_H_INCLUDED
3
4 340 up20180642
/**
5
 * @defgroup proj_macros proj_macros
6 357 up20180642
 * @ingroup proj
7 340 up20180642
 * @brief Project macros.
8
 *
9
 * @{
10
 */
11
12 167 up20180655
// Movement Directions
13 340 up20180642
/** @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 167 up20180655
24 231 up20180655
// Movement Constants
25 340 up20180642
/** @brief Shooter speed */
26
#define SHOOTER_SPEED   5
27
/** @brief Bullet speet */
28
#define BULLET_SPEED    8
29 231 up20180655
30 149 up20180655
// Refresh Rate
31 340 up20180642
/** @brief Screen refresh rate */
32
#define REFRESH_RATE    60
33 149 up20180655
34 151 up20180642
//Graphics mode
35 340 up20180642
/** @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 151 up20180642
44 251 up20180655
// Colors
45 340 up20180642
/** @brief Text color */
46 293 up20180642
#define TEXT_COLOR              0xFFFFFF
47 340 up20180642
/** @brief Highlight color */
48 293 up20180642
#define HIGHLIGHT_COLOR         0x404040
49 340 up20180642
/** @brief Delimiter color */
50 251 up20180655
#define DELIMITER_COLOR         0x404040
51
52 340 up20180642
/** @brief Melee attacks range */
53 307 up20180642
#define MELEE_RANGE    80
54 340 up20180642
/** @brief Melee attack damage (for zombies). */
55 305 up20180642
#define MELEE_DAMAGE   1
56 340 up20180642
/** @brief Zombie speed */
57 309 up20180642
#define ZOMBIE_SPEED    1.0
58
59 340 up20180642
/**
60
 * @}
61
 */
62
63 148 up20180655
#endif /* end of include guard: PROJ_MACROS_H_INCLUDED */