summaryrefslogtreecommitdiff
path: root/include/common.h
AgeCommit message (Collapse)Author
2018-07-03Refactor field, refactor next shape drawingOxore
Refactor field functions names. Transfer next shape drawing to painter. Introduce idlist struct with foreach function. Refactor config. Introduce color map array instead of "switch case" statement bloating while coloring rectangles. Decouple field and shape structs from SFML sfVector2 structs by introducing own vector2i and vector2ui structs. Also remove sfRectangleShape members form field an shape structs.
2018-07-02Introduce draw manager, refactor mainOxore
Move timers to struct game. Partially move field painting to draw manager.
2018-06-25Major refactoringOxore
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.
2017-12-09Implement NES Tetris scoring systemOxore
2017-12-09Level up condition removed lines countOxore
2017-12-09Extend playfield to 22, change game over condition, shrink fld from 25 to 22Oxore
2017-12-02Rearrange includes; replace uint8_t by charOxore
2017-12-02Yaml loader for text resources added, need to be involvedOxore
2017-12-01More structure wrapping, more refactoringOxore
2017-12-01Remove declaration under structureOxore
2017-12-01Wrap global variables into structuresOxore
2017-11-30Move includes to root dirOxore