diff --git a/breakout/bricks.c b/breakout/bricks.c index e25e696..bfcf413 100644 --- a/breakout/bricks.c +++ b/breakout/bricks.c @@ -1219,4 +1219,4 @@ void initialiseBricks(brick *bricks, int *brickCount, int level) { *brickCount = 112; break; } -} \ No newline at end of file +} diff --git a/breakout/paddleAndBall.c b/breakout/paddleAndBall.c index eb07764..ac26f1d 100644 --- a/breakout/paddleAndBall.c +++ b/breakout/paddleAndBall.c @@ -11,7 +11,7 @@ #include "include/utilityFunctions.h" void updatePaddle(Uint32 tickrate, paddle *thePaddle, char moveX, int winWidth, int winHeight) { - thePaddle->x += moveX * 0.5 * tickrate; + thePaddle->x += moveX * 0.3 * tickrate; if (thePaddle->x < 0 - (thePaddle->width / 2)) thePaddle->x = 0 - (thePaddle->width / 2); if (thePaddle->x > winWidth - (thePaddle->width / 2)) thePaddle->x = winWidth - (thePaddle->width / 2); } @@ -143,4 +143,4 @@ void updateBall(Uint32 tickrate, ball *theBall, paddle *thePaddle, int winWidth, theBall->x = thePaddle->x - (double)(winWidth / 2) + (thePaddle->width) / 2; theBall->y = 26 - (double)(winHeight / 2); } -} \ No newline at end of file +}