Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lab 18 structure.

Similar presentations


Presentation on theme: "Lab 18 structure."— Presentation transcript:

1 Lab 18 structure

2 BBall class instance data: circle direction methods: __init__(self, color, center, dir=1) draw(self,win) move(self, win)

3 main() Part II set up the window make a ball put the ball in the window move the ball (or move all of the balls)

4 self.circle.getCenter().getY()

5 main() Part IIIA set up the window make a ball put the ball in the window repeat forever move the ball (or move all of the balls)

6 main() {art IIIC set up the window make a ball put the ball in the window repeat until q key clicked move all the ball close window

7 main() Part IV set up the window make a ball put the ball in the window repeat until q key clicked if the mouse was clicked, change bouncyBall's color move all the ball close window

8 to slow things down import time
time.sleep(.03) #pause for 3/100 of a second


Download ppt "Lab 18 structure."

Similar presentations


Ads by Google