diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-06-06 12:36:14 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-06-06 12:36:14 +0800 |
commit | e5711dbe6dc7f38314971e154b57f49450e68a7c (patch) | |
tree | ef085c6ad29e2067c428bf5c71bfd1947fa33553 /ui.c | |
parent | 5c43e5da6e3768b9c734fbd6a4a4b824f953d842 (diff) |
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,6 +67,14 @@ void printpieces(struct piece** hand, int y, int x, int nhand, int highlight) { refresh(); } +void printstats(int points, int combo, int y, int x) { + mvprintw(y, x, "Points: %d", points); + if (combo) + mvprintw(y + 1, x, "Combo: %d", combo); + + refresh(); +} + void printhelp(int y, int x) { mvprintw(y, x, "Press arrow keys / wasd / hjkl to navigate"); mvprintw(y + 1, x, "[ or ] to switch pieces"); |