Added ANGLE_MIN_OFFSET and ANGLE_MAX_OFFSET
This commit is contained in:
parent
0462b187b4
commit
30fc668684
|
@ -11,6 +11,8 @@ typedef struct Ball {
|
||||||
const int BALL_HEIGHT;
|
const int BALL_HEIGHT;
|
||||||
const int BALL_VELOCITY;
|
const int BALL_VELOCITY;
|
||||||
const int BALL_POSX_START;
|
const int BALL_POSX_START;
|
||||||
|
const int BALL_ANGLE_MIN_OFFSET;
|
||||||
|
const int BALL_ANGLE_MAX_OFFSET;
|
||||||
const int SCREEN_WIDTH;
|
const int SCREEN_WIDTH;
|
||||||
const int SCREEN_HEIGHT;
|
const int SCREEN_HEIGHT;
|
||||||
int posX;
|
int posX;
|
||||||
|
|
|
@ -109,7 +109,7 @@ Pong_run(Pong *p) {
|
||||||
Racket_move(p->racketL);
|
Racket_move(p->racketL);
|
||||||
Racket_move(p->racketR);
|
Racket_move(p->racketR);
|
||||||
Pong_render(p);
|
Pong_render(p);
|
||||||
Pong_score_run(p);
|
//Pong_score_run(p);
|
||||||
}
|
}
|
||||||
Pong_score_end(p);
|
Pong_score_end(p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue