Tetris game on mikroTFT touchscreen and LPC1768
Diff: Define.h
- Revision:
- 4:107d1d5a642e
- Parent:
- 3:36de55e63fdf
--- a/Define.h Sat Mar 11 19:50:03 2017 +0000 +++ b/Define.h Sat Mar 18 14:45:16 2017 +0000 @@ -1,5 +1,22 @@ -extern const int MAXX = 10; -extern const int MAXY = 12; -extern const int PURPLE = 0x780F; -extern const int DARKGREY = 0x7BEF; -extern const int BLOCK_SIZE = 20; \ No newline at end of file +// +// GAME AND DESIGN PARAMETERS +// +#define MAXX 10 +#define MAXY 12 +#define BLOCK_SIZE 20 +#define BLACK 0 +#define SPEED 100 +#define SMALL_BLOCK_SIZE 8 +// +// COLOUR DEFINES +// +#define PURPLE 0x780F +#define DARKGREY 0x7BEF +#define BLACK 0 +#define Blue 0x001F +#define Green 0x07E0 +#define Red 0xF800 +#define Yellow 0xFFE0 +#define Orange 0xFD20 +#define GreenYellow 0xAFE5 +#define Magenta 0xF81F \ No newline at end of file