Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-07-12 | Introduce pause mechanics, refactor a little | Oxore | |
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-09 | Finish painter, refactor game logic & keys handling | Oxore | |
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. | |||
2017-12-03 | Change color scheme; add screenshots | Oxore | |
2017-12-02 | Rename yaml text resource file | Oxore | |