~lucymcphail/tic-tac-toe

94277e3856a2eb64072c32f047800db95066a233 — Lucy McPhail 3 months ago 7992def trunk
Add 'click to restart' message
1 files changed, 5 insertions(+), 0 deletions(-)

M src/main.c
M src/main.c => src/main.c +5 -0
@@ 125,6 125,11 @@ void draw_win_screen(State winner)
    int text_width = MeasureText(win_text, FONT_SIZE);
    DrawText(win_text, screen_width / 2 - text_width / 2,
             screen_height / 2 - FONT_SIZE / 2, FONT_SIZE, RAYWHITE);

    const char try_again_text[] = "click to restart";
    text_width = MeasureText(try_again_text, FONT_SIZE / 2);
    DrawText(try_again_text, (screen_width - text_width) / 2,
             (screen_height - FONT_SIZE) / 2 + 100, FONT_SIZE / 2, RAYWHITE);
}

int main(void)