Reduce ball velocity to 7

This commit is contained in:
Pradana AUMARS 2021-06-28 14:02:47 +02:00
parent a70d61ca52
commit 039149a745

View File

@ -11,7 +11,7 @@ Ball_init(int screen_width, int screen_height)
Ball *b = malloc(sizeof(Ball)); Ball *b = malloc(sizeof(Ball));
*(int *)&b->BALL_WIDTH = 20; *(int *)&b->BALL_WIDTH = 20;
*(int *)&b->BALL_HEIGHT = 20; *(int *)&b->BALL_HEIGHT = 20;
*(int *)&b->BALL_VELOCITY = 10; *(int *)&b->BALL_VELOCITY = 7;
*(int *)&b->SCREEN_WIDTH = screen_width; *(int *)&b->SCREEN_WIDTH = screen_width;
*(int *)&b->SCREEN_HEIGHT = screen_height; *(int *)&b->SCREEN_HEIGHT = screen_height;
Ball_reset(b, 1); Ball_reset(b, 1);