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 5c73891b50def542e68ea0d99a4605d9871effb2..e6ea79eae9534ab61f1e3eb183735f88dd78c30c 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)