From f18185930434d704f172a0c66f0195c7c4dc785d Mon Sep 17 00:00:00 2001 From: antoinemeyer5 <antoine.meyer54@gmail.com> Date: Thu, 30 Jun 2022 09:45:36 +0200 Subject: [PATCH] clean ball.c et ball.h --- travail_de_groupe/jeu_appren_par_renfo/src/ball.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/travail_de_groupe/jeu_appren_par_renfo/src/ball.c b/travail_de_groupe/jeu_appren_par_renfo/src/ball.c index 5c73891..e6ea79e 100644 --- a/travail_de_groupe/jeu_appren_par_renfo/src/ball.c +++ b/travail_de_groupe/jeu_appren_par_renfo/src/ball.c @@ -7,13 +7,12 @@ void initBall() { ball.x = 5 * BLOCK_SIZE; ball.y = 5 * BLOCK_SIZE; - ball.z = player.h/BLOCK_SIZE; + ball.z = player.h / BLOCK_SIZE; ball.h = 0.5 * BLOCK_SIZE; - ball.w = 0.5 * BLOCK_SIZE; + ball.w = 0.5 * BLOCK_SIZE; ball.isHit = 0; ball.angle = -pi; ball.speed = 0; - } float defineAngle(int canonX, int canonY, int xDropPoint, int yDropPoint) -- GitLab