diff --git a/src/racket.c b/src/racket.c index ccfb981..ce0c563 100644 --- a/src/racket.c +++ b/src/racket.c @@ -8,7 +8,7 @@ Racket_init(int screen_width, int screen_height, int posX, int posY, SDL_Keycode *(int *)&r->SCREEN_HEIGHT = screen_height; *(int *)&r->posX = posX; r->posY = posY; - r->score = Score_init(r->posX, RACKET_WIDTH); + r->score = Score_init(r->posX - SCORE_WIDTH/2 + RACKET_WIDTH/2, RACKET_WIDTH); if (r->score == NULL) { free(r); return NULL;