help overlay

This commit is contained in:
2023-11-26 21:32:19 +02:00
parent 63759ffa1b
commit 1ed67cb62a
8 changed files with 115 additions and 121 deletions
+10 -9
View File
@@ -151,11 +151,20 @@ int main(int argc, char *argv[]) {
last_t = now;
if (!use_texture) {
draw_grid(window_size);
draw_board(&game, window_size);
}
draw_timer(&game.timer);
if (timer_ended(&game.help_timer)) {
timer_stop(&game.help_timer);
game.should_draw_help = false;
}
if (game.should_draw_help) {
draw_help(&game.help_timer);
}
if (game.has_won) {
draw_win(&game);
}
@@ -222,14 +231,6 @@ int main(int argc, char *argv[]) {
/* /1* draw_text_at(font_shader, text, text_pos, text_scale, font_vao, font_vbo, (float *)projection.m, &text_color); *1/ */
/* /1* } *1/ */
/* if (timer_ended(&game.help_timer)) { */
/* timer_stop(&game.help_timer); */
/* game.should_draw_help = false; */
/* } */
/* /1* if (game.should_draw_help) *1/ */
/* /1* draw_help_overlay(selection_shader, font_shader, selection_vao, selection_vbo, font_vao, font_vbo, &projection, height, &game.help_timer); *1/ */
/* /1* glXSwapBuffers(display, window); *1/ */
/* } */