diff options
author | Oxore <oxore@protonmail.com> | 2018-06-25 15:50:58 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2018-06-25 15:50:58 +0300 |
commit | bf0e5690a31d4c3cecd2ba512729a0b73989bbda (patch) | |
tree | 5b95c5a52c8a9025593231ee0285d81d40890f0f /include/engine.h | |
parent | 63e929f7a23b44ff2b1e33ccf16307de20c2bdc8 (diff) |
Major refactoring
Fix memleak in KeyMap, fix memleak caused by loading a yaml file in
main.c. Change Copyright information. Rename functions.c and .h to
engine.c and .h. Take field and shape related functions to separate file
(still not all of them) and refactor them a lot. Refactor collision
detection. Add more warnings. Add sanitizer option commented out.
Diffstat (limited to 'include/engine.h')
-rw-r--r-- | include/engine.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/engine.h b/include/engine.h new file mode 100644 index 0000000..655eb01 --- /dev/null +++ b/include/engine.h @@ -0,0 +1,19 @@ +#define RIGHT 1 +#define DOWN 2 +#define UP 4 +#define LEFT 8 +#define RIGHTHOLD 16 +#define LEFTHOLD 128 + +void tKeyCtrl(); +void tTick(); +void checkLevelUp(struct game *game); +int getMoveLatencyOfLevel(int level); +int rmLines(); +void valueAfterTextDisplay(int value, List *texts, char *type); +void colorizeActive(); +void drawFld(sfRenderWindow *window); +void gameover(struct game *game); +void genNextShape(); +void drawNextShape(); +void freeFld(); |