Question: gradually until it is all white, and then changes its color gradually back to black. Only stop when the user presses ESCAPE. Hint: ( 0
gradually until it is all white, and then changes its color gradually back to black. Only stop when the user
presses ESCAPE.
Hint: is the color black while is the color white.
LabB: Create a Rxgame screen which is and then draw red squares, each at a corner of the
screen, and one red square at the exact center of the screen. All squares must be The game
must run until the user presses ESCAPE. Remember to account for the Surface's width and height!
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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
