diff --git a/src/ball.c b/src/ball.c index 957b1d3..da6d7d5 100644 --- a/src/ball.c +++ b/src/ball.c @@ -16,8 +16,8 @@ Ball_init(int screen_width, int screen_height) void Ball_reset(Ball *b, int direction) { - b->posX = 100; - b->posY = 100; + b->posX = b->SCREEN_WIDTH/2; + b->posY = b->SCREEN_HEIGHT/2; b->velX = direction * 7; b->velY = 5; }