if((((ball_column < (5)) && (ball_row < paddle_row) && (ball_row > (paddle_row+20))) || (ball_column < (1)))) delta_column = 1; //note that the paddle is 5 pixels wide and it is 5 pixels from the //edge of the screen
It is supposed to look at the position of the ball. If it is between the 2 rows that are on top and bottom of the paddle AND is 1 column in front of the edge, then it bounces. Or, if it hits the edge of the screen, then it bounces. That line now always runs the OR statement. I can post more code if needed. Thanks for any help.


Sign In
Create Account


Back to top









