summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2018-12-06Wrap PREFIX with conditions in MakefileOxore
2018-12-06Add prefix libs support in the MakefileOxore
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.
2018-07-12Introduce pause mechanics, refactor a littleOxore
Introduce Pause mechanics and mention it in README.md. Makefile: replace unnecessary "-MMD -MP" with just "-MD" flag, so it allows to compile with tcc too. Refactor: Rename game.isStarted field to game.started field. Move arrKeys container to engine.c and remove it from main.c. Refactor char iterator in utf8to32_strcpy function.
2018-07-09Fix hard drop when out of field boundaryv0.2.0Oxore
2018-07-09Remove ms anon tag warning for clangOxore
2018-07-09Finish painter, refactor game logic & keys handlingOxore
Add dependencies in Makefile: now it tracks headers too! Introduce texts in painter. Delegate all the window painting to the painter. Refactor texts from yaml parsing. Remove overcomplicated keymaps and lists of keymaps of... Whatever! Just let em go! Simple idlist with foreach is more than enough. Make displayable values be separate text objects which consists only of a number value that rendered every tick and then displayed. Refactor game logic: make state machine look much obvious with transition functions. Refactor long if-else and switch-case statement chains: replace them with arrays of values (it actually takes more lines of code :P) Refactor keys handling: shorten and separate shape moving code to functions.
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.
2018-06-22Refactor MakefileOxore
2017-12-02Yaml loader for text resources added, need to be involvedOxore
2017-12-01Make make to put all object files into "build" directoryOxore
2017-11-30Move includes to root dirOxore
2017-06-20Major refactoring!Oxore
2017-05-25Makefile added, README.md updatedOxore