Reduce ball velocity to 7
This commit is contained in:
parent
a70d61ca52
commit
039149a745
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user