Add key info for protovac
This commit is contained in:
parent
67439255df
commit
4773cdb387
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ FILTERED_C_FILES := $(filter-out src/gfx%.c src/merge%.c, $(C_FILES))
|
||||||
all: terminal
|
all: terminal
|
||||||
|
|
||||||
curses: $(FILTERED_C_FILES) src/gfx_curses.c
|
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
|
terminal: $(FILTERED_C_FILES) src/gfx_terminal.c
|
||||||
$(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_terminal.c -o $(PROGRAM) $(LDFLAGS)
|
$(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_terminal.c -o $(PROGRAM) $(LDFLAGS)
|
||||||
|
|
|
@ -71,7 +71,7 @@ void gfx_draw(struct gfx_state *s, struct gamestate *g)
|
||||||
if (g->score >= g->score_high)
|
if (g->score >= g->score_high)
|
||||||
g->score_high = g->score;
|
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);
|
wattron(s->window, A_DIM);
|
||||||
iterate(g->opts->grid_width * (g->print_width + 2) + 1, waddch(s->window, '-'));
|
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, '-'));
|
iterate(g->opts->grid_height * (g->print_width + 2) + 1, waddch(s->window, '-'));
|
||||||
wattroff(s->window, A_DIM);
|
wattroff(s->window, A_DIM);
|
||||||
wrefresh(s->window);
|
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)
|
int gfx_getch(struct gfx_state *s)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user