1
0
Fork 0

Update Paddle.cpp

tranparent paddle bug fix.
This commit is contained in:
ZephyrLabs 2020-12-20 09:23:31 +05:30
parent ea4d2560cf
commit b098d27d08

View file

@ -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;