Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
LabC: Create Rects that are 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 Surfaces, one green and one Blue, also 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 pixels at a time. The Display must be Only stop when the user presses ESCAPE.
Hint: You probably want to keep track of what direction the Rects are moving.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started