Update Paddle.cpp
tranparent paddle bug fix.
This commit is contained in:
parent
ea4d2560cf
commit
b098d27d08
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ bool Paddle::Refresh() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//checks if it is in the position of the paddle
|
//checks if it is in the position of the paddle
|
||||||
if(BallY >= (PaddleBottomY + 16) && BallY <= (PaddleTopY - 8)){
|
if(BallY <= (PaddleBottomY + 16) && BallY >= (PaddleTopY - 8)){
|
||||||
if(BallX >= 0 && BallX < 4){
|
if(BallX >= 0 && BallX < 4){
|
||||||
lv_obj_set_pos(ball_image, 5, BallY);
|
lv_obj_set_pos(ball_image, 5, BallY);
|
||||||
dx *= -1;
|
dx *= -1;
|
||||||
|
|
Loading…
Reference in a new issue