TORONTO KIDS COMPUTER CLUB | Aurora Saturday 13:00 Python Practice 01.30.
18999
post-template-default,single,single-post,postid-18999,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Aurora Saturday 13:00 Python Practice 01.30.

03 Feb Aurora Saturday 13:00 Python Practice 01.30.

Question 1:

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.


Question 2:

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.

No Comments

Sorry, the comment form is closed at this time.