From 30fc668684e653eaa54103d562c79eda1c636387 Mon Sep 17 00:00:00 2001 From: Pradana AUMARS Date: Mon, 28 Jun 2021 16:01:49 +0200 Subject: [PATCH] Added ANGLE_MIN_OFFSET and ANGLE_MAX_OFFSET --- src/ball.h | 2 ++ src/pong.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ball.h b/src/ball.h index cd9b40d..bb2dc5e 100644 --- a/src/ball.h +++ b/src/ball.h @@ -11,6 +11,8 @@ typedef struct Ball { const int BALL_HEIGHT; const int BALL_VELOCITY; const int BALL_POSX_START; + const int BALL_ANGLE_MIN_OFFSET; + const int BALL_ANGLE_MAX_OFFSET; const int SCREEN_WIDTH; const int SCREEN_HEIGHT; int posX; diff --git a/src/pong.c b/src/pong.c index 9964da3..7352bd8 100644 --- a/src/pong.c +++ b/src/pong.c @@ -109,7 +109,7 @@ Pong_run(Pong *p) { Racket_move(p->racketL); Racket_move(p->racketR); Pong_render(p); - Pong_score_run(p); + //Pong_score_run(p); } Pong_score_end(p); }