From 4eb214afe9a262d43a355260029868f2f6baf050 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 15 May 2021 17:49:15 -0400 Subject: [PATCH] Draw scores in center --- pong.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pong.c b/pong.c index 5b7b039..83d3647 100644 --- a/pong.c +++ b/pong.c @@ -86,8 +86,9 @@ main(void) { mvprintw(i, max_x/2, ":"); } - mvprintw(0, 2, "%d", a_score); - mvprintw(0, max_x - 1, "%d", b_score); + // Draw scrores + mvprintw(0, max_x/2 - 2, "%d", a_score); + mvprintw(0, max_x/2 + 2, "%d", b_score); // Move ball if enough time has elapsed gettimeofday(&stop, NULL); -- 2.39.2