TORONTO KIDS COMPUTER CLUB | Monday 20:00 Python Practice 20.11.17.
18650
post-template-default,single,single-post,postid-18650,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

Monday 20:00 Python Practice 20.11.17.

17 Nov Monday 20:00 Python Practice 20.11.17.

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

Post A Comment