xTetris-Game
Loading...
Searching...
No Matches
definitions.h
Go to the documentation of this file.
1#ifndef DEFINITIONS_H
2#define DEFINITIONS_H
3
4
5#define HEIGHT (15)
6#define WIDTH (10)
7#define SPACING (8)
8#define N_PIECES (7)
9#define TETRO_ROT (4)
10#define TETRO_DIM (5)
11
12#define BOARD_BOX (2)
13#define TETRO_BOX (1)
14#define EMPTY_BOX (0)
15
16#define VALID (1)
17#define INVALID (0)
18
19#define CTRL_C (3)
20#define CARRIAGE_RETURN (13)
21#define ESCAPE (27)
22#define RESET (2)
23#define SPACEBAR (32)
24
25#define UPPER_W (87)
26#define UPPER_A (65)
27#define UPPER_S (83)
28#define UPPER_D (68)
29
30#define LOWER_W (119)
31#define LOWER_A (97)
32#define LOWER_S (115)
33#define LOWER_D (100)
34
35#define SINGLEPLAYER (0)
36#define MULTIPLAYER (1)
37#define PLAYER_1 (L"Player 1")
38#define PLAYER_2 (L"Player 2")
39#define BOT (L"Bot")
40
41#define MULTIPLIER (5)
42
43#define NSEC_TO_SLEEP (10)
44
45
46#endif