diff options
author | Oxore <oxore@protonmail.com> | 2017-11-30 17:42:15 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2017-11-30 17:42:15 +0300 |
commit | ae01c7fc02f17105f9e04af493f4dd8986fbcb8b (patch) | |
tree | ea40b11235633946b12b66aba56a412c5db800e4 /include/common.h | |
parent | 75d123b79dc894f2c2de43f25009b5fa84a00eec (diff) |
Move includes to root dir
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h new file mode 100644 index 0000000..5a3d63e --- /dev/null +++ b/include/common.h @@ -0,0 +1,42 @@ +#ifndef TCOMMON_H +#define TCOMMON_H + +#include <SFML/Audio.h> +#include <SFML/Graphics.h> +#include <SFML/System.h> +#include <SFML/Window/Keyboard.h> +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> +#include <string.h> +#include <time.h> +#include "tet_conf.h" + +typedef struct tCell { + uint8_t a; // active/empty state of cell + sfColor fColor; // fill color +} tCell; +tCell fldCAtt[25][10];// fld cells attributes + + +/* + * shape coords + * y + * ^. . . . + * |. . . . + * |. . . . + * |. . . . + * 0------->x + * + */ + +typedef struct shapeSt { + int x; // x coord of shape's left side + int y; // y coord of shape's bottom + int t; // shape type + sfColor fColor; // shape color + uint8_t c[4][4]; // array of shape cells +} shapeSt; +shapeSt actiSh, nxtShape; + +#endif |