diff options
-rw-r--r-- | src/game.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -93,6 +93,9 @@ draw_paddles(struct game *g) int pos; /* Player 1 horizontal paddle */ + for (pos = 0; pos < 79; ++pos) { + mvprintw(23, pos, " "); + } off = g->players[0]->paddle_h.pos; off -= g->players[0]->paddle_h.size / 2; for (pos = 0; pos < g->players[0]->paddle_h.size; ++pos) { @@ -102,6 +105,9 @@ draw_paddles(struct game *g) } /* Player 1 vertical paddle */ + for (pos = 0; pos < 24; ++pos) { + mvprintw(pos, 1, " "); + } off = g->players[0]->paddle_v.pos; off -= g->players[0]->paddle_v.size / 2; for (pos = 0; pos < g->players[0]->paddle_v.size; ++pos) { @@ -111,6 +117,9 @@ draw_paddles(struct game *g) } /* Player 2 horizontal paddle */ + for (pos = 0; pos < 79; ++pos) { + mvprintw(1, pos, " "); + } off = g->players[1]->paddle_h.pos; off -= g->players[1]->paddle_h.size / 2; for (pos = 0; pos < g->players[1]->paddle_h.size; ++pos) { @@ -120,6 +129,9 @@ draw_paddles(struct game *g) } /* Player 2 vertical paddle */ + for (pos = 0; pos < 24; ++pos) { + mvprintw(pos, 78, " "); + } off = g->players[1]->paddle_v.pos; off -= g->players[1]->paddle_v.size / 2; for (pos = 0; pos < g->players[1]->paddle_v.size; ++pos) { |