Rev 5231 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5229 | raandoom | 1 | #ifndef DEFINES_H |
2 | #define DEFINES_H |
||
3 | |||
4 | #include |
||
5 | #include |
||
6 | #include |
||
7 | #include |
||
8 | |||
9 | inline void enable_scancode(); |
||
10 | inline void clear_key_buffer(); |
||
11 | inline void vsync(); |
||
12 | |||
5238 | raandoom | 13 | inline __u32 text_length_px(__u32 len); |
14 | |||
5229 | raandoom | 15 | #define false (0) |
16 | #define true (1) |
||
17 | |||
18 | #define FONT_WIDTH (5) |
||
19 | #define FONT_HEIGHT (9) |
||
20 | |||
5231 | raandoom | 21 | #define ANI_DELAY (2) // time between animation redraw |
22 | #define ANI_APPEAR_STEP (15) // default step for appear animation |
||
23 | #define ANI_MOVE_STEP (25) // default step for move animation |
||
5229 | raandoom | 24 | |
25 | #define START_COUNT (2) // tiles count for new game |
||
26 | |||
27 | #define WND_WIDTH (400) // main window width |
||
28 | #define WND_HEIGHT (400) // main window height |
||
29 | |||
30 | #define GAME_BORDER (30) // minimum border size around board |
||
5238 | raandoom | 31 | #define GAME_BG_COLOR (0xFAF8EF) // main window background color |
5229 | raandoom | 32 | |
33 | #define SCORE_HEIGHT (21) // minimum height for score text |
||
34 | |||
35 | #define BOARD_SPACING (10) // spacing between cells |
||
36 | #define BOARD_COUNT (4) // row and column count |
||
37 | #define BOARD_MAP_SIZE (16) // cells total count (row * column) |
||
38 | #define BOARD_BG_COLOR (0xBBADA0) // board color |
||
39 | |||
40 | #define CELL_COLOR (0xCDC0B4) // cell color |
||
41 | |||
42 | #endif // DEFINES_H |