Project

General

Profile

Statistics
| Revision:

root / proj / include / proj_macros.h @ 347

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