17 Nov Monday 20:00 Python Practice 20.11.17.
We have learn how to make the picture bounce from left to right and right to left. Please make change of the program we made in the class to make the picture bounce up and down as well.
Hint: We made a variable named ‘xspeed’ to make picture move and change the direction when the image hits left or right edge of the window. You may create another variable called ‘yspeed’ to make picture move up and down.
Please make some modifications to the above code. Make ball appears on the top when the ball reaches the bottom, and appears at bottom when the ball reaches the top.