Question: Python Only Lab 7 C: Create 2 Rects that are 1 0 0 1 0 0 , one with starting coordinates at the top left

Python Only
Lab7C: Create 2 Rects that are 100100, one with starting coordinates at the top left of the screen and the other one with starting coordinates at the bottom left of the screen. Create 2 Surfaces, one green and one Blue, also 100100. Use the two Rects to blit the two Surfaces onto the Display.
Using move(), move the two Rects across the screen and, when they reach the border, have them return to where they started, repeating the cycle. The Rects should move at a speed of 5 pixels at a time. The Display must be 1000500. Only stop when the user presses ESCAPE.
Hint: You probably want to keep track of what direction the Rects are moving.
 Python Only Lab7C: Create 2 Rects that are 100100, one with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!