root / proj / include / proj_macros.h @ 259
History | View | Annotate | Download (2.31 KB)
1 | 148 | up20180655 | #ifndef PROJ_MACROS_H_INCLUDED
|
---|---|---|---|
2 | #define PROJ_MACROS_H_INCLUDED
|
||
3 | |||
4 | // WASD Movement Keys
|
||
5 | 200 | up20180655 | #define W_MAKE_CODE 0x11 /** @brief W Make Code */ |
6 | #define W_BREAK_CODE 0x91 /** @brief W Break Code */ |
||
7 | #define A_MAKE_CODE 0x1E /** @brief A Make Code */ |
||
8 | #define A_BREAK_CODE 0x9E /** @brief A Break Code */ |
||
9 | #define S_MAKE_CODE 0x1F /** @brief S Make Code */ |
||
10 | #define S_BREAK_CODE 0x9F /** @brief S Break Code */ |
||
11 | #define D_MAKE_CODE 0x20 /** @brief D Make Code */ |
||
12 | #define D_BREAK_CODE 0xA0 /** @brief D Break Code */ |
||
13 | #define CTRL_MAKE_CODE 0x1D /** @brief CTRL Make Code */ |
||
14 | #define CTRL_BREAK_CODE 0x9D /** @brief CTRL Break Code */ |
||
15 | #define PLUS_MAKE_CODE 0x1A /** @brief Plus (+) Make Code */ |
||
16 | 216 | up20180642 | #define PLUS_BREAK_CODE 0x9A /** @brief Plus (+) Break Code */ |
17 | 200 | up20180655 | #define MINUS_MAKE_CODE 0x35 /** @brief Minus (-) Make Code */ |
18 | #define MINUS_BREAK_CODE 0xB5 /** @brief Minus (-) Break Code */ |
||
19 | 148 | up20180655 | |
20 | 167 | up20180655 | // Movement Directions
|
21 | #define UP -1 /** @brief Moving to the top side of screen */ |
||
22 | #define DOWN 1 /** @brief Moving to the bottom side of screen */ |
||
23 | #define LEFT -1 /** @brief Moving to the left side of screen */ |
||
24 | #define RIGHT 1 /** @brief Moving to the right side of screen */ |
||
25 | #define REST 0 /** @brief Not moving */ |
||
26 | |||
27 | 231 | up20180655 | // Movement Constants
|
28 | #define SHOOTER_SPEED 5 /** @brief Shooter speed */ |
||
29 | #define BULLET_SPEED 8 /** @brief Bullet speet */ |
||
30 | |||
31 | 251 | up20180655 | // Game States
|
32 | #define MENU 0 |
||
33 | #define GAME 1 |
||
34 | #define TEST 2 |
||
35 | #define EXIT 3 |
||
36 | |||
37 | 148 | up20180655 | // Extra Keys
|
38 | 151 | up20180642 | #define ESC_MAKE_CODE 0x01 /** @brief ESC Make Code */ |
39 | #define ESC_BREAK_CODE 0x81 /** @brief ESC Break Code */ |
||
40 | 148 | up20180655 | |
41 | 149 | up20180655 | // Refresh Rate
|
42 | #define REFRESH_RATE 60 /** @brief Screen refresh rate */ |
||
43 | |||
44 | 151 | up20180642 | //Graphics mode
|
45 | 212 | up20180642 | #define GRAPH_MODE DIRECT_1024_768_888 /** @brief Graphic mode used */ |
46 | #define MIN_SCALE 0.2 /** @brief Minimum zoom */ |
||
47 | #define DEFAULT_SCALE 0.5 /** @brief Default zoom */ |
||
48 | 214 | up20180642 | #define MAX_SCALE 10.0 /** @brief Maximum zoom */ |
49 | 151 | up20180642 | |
50 | 251 | up20180655 | // Colors
|
51 | #define TEXT_COLOR 0x888888 |
||
52 | #define HIGHLIGHT_COLOR 0xA0A0A0 |
||
53 | #define DELIMITER_COLOR 0x404040 |
||
54 | |||
55 | 148 | up20180655 | #endif /* end of include guard: PROJ_MACROS_H_INCLUDED */ |