summaryrefslogtreecommitdiff
path: root/src/target/tetris.c
AgeCommit message (Collapse)Author
2019-09-23Refactor 4: ControlsOxore
Consolidate controls related variables in `controls` structure and put it into `game` structure.
2019-08-03Implement json parser for textsOxore
2019-08-03Destroy over_wait_tick sfClock at main cleanupOxore
2019-07-28Make game states exclusive trough one enum var onlyOxore
2019-07-28Refactor idlist, move all global vars to local scopeOxore
- Replace list_foreach with LIST_FOREACH macro. - Remove `game` global variable and make it local everywhere. - Move global vars `fld`, `nxt` and `texts` into `game` struct. - Add `static` qualifier to engine.c's specific global vars. - Move `sfRenderWindow window` global var to local scope
2018-12-06Implement "game over" state (scene)Oxore
Also rename arrKeys variable to keys.
2018-12-06Add simple documentation in comments, refactor.Oxore
Change all `unsigned int` and `unsigned long` types to `size_t`. Fix names alignment in headers. Add documentation and simple description: Painter - painter.h Main - tetris.c Unicode - unicode.h IDList - idlist.h Engine - engine.c Minor changes: tetris.c - fix indentation and code blocks separation with newlines, remove unused includes. idlist.h - fix structure field name alignment. field.h, engine.c - define aliases for ghost and active shapes indexes in the field. engine.c - rename menuTick to snake case, fix curly braces style of functions. Makefile - switch SFML deprecated warnings off.
2018-07-12Introduce testing with munit, refactorOxore
Split unicode routines from text. Testing: add munit submodule, move translation units with main functions to separate folder, make corresponding changes in Makefile. Make simple test for unicode handling routine. Remove _vimrc_local. test.c: optimize includes. Add test run to .travis.yml.