Add key info for protovac

This commit is contained in:
Tanner 2023-11-13 01:28:42 +00:00
parent 67439255df
commit 4773cdb387
2 changed files with 8 additions and 2 deletions

View File

@ -11,7 +11,7 @@ FILTERED_C_FILES := $(filter-out src/gfx%.c src/merge%.c, $(C_FILES))
all: terminal
curses: $(FILTERED_C_FILES) src/gfx_curses.c
$(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lcurses
$(CC) $(CFLAGS) -I/usr/share/gettext $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lcurses
terminal: $(FILTERED_C_FILES) src/gfx_terminal.c
$(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_terminal.c -o $(PROGRAM) $(LDFLAGS)

View File

@ -71,7 +71,7 @@ void gfx_draw(struct gfx_state *s, struct gamestate *g)
if (g->score >= g->score_high)
g->score_high = g->score;
mvwprintw(s->window, 1, 0, gettext(" Hil: %d\n"), g->score_high);
mvwprintw(s->window, 1, 0, gettext(" Hi: %d\n"), g->score_high);
wattron(s->window, A_DIM);
iterate(g->opts->grid_width * (g->print_width + 2) + 1, waddch(s->window, '-'));
@ -112,6 +112,12 @@ void gfx_draw(struct gfx_state *s, struct gamestate *g)
iterate(g->opts->grid_height * (g->print_width + 2) + 1, waddch(s->window, '-'));
wattroff(s->window, A_DIM);
wrefresh(s->window);
mvwprintw(s->window, 12, 0, "2048");
mvwprintw(s->window, 13, 0, "----");
mvwprintw(s->window, 15, 0, "Use WASD for direction");
mvwprintw(s->window, 16, 0, "Q to quit.");
}
int gfx_getch(struct gfx_state *s)