Question: 6 . 4 Rotating tardis 4 1 4 2 4 3 4 4 - def onStep ( ) : # Move the Tardis right by

6.4 Rotating tardis
41
42
43
44- def onStep():
# Move the Tardis right by 25 pixels, rotate it clockwise 5 degrees, and # increase the size by 5.
#"# Place Your Code Here ###
tardis. center x+=25
tardis. rotateAngle +=5
tardis. width +=5
# If the width of the Tardis reaches 400 pixels make the Tardis upright,
# reset the width and height to 25 and 50, and center the Tardis
# vertically in the canvas.
### Place Your Code Here ###
if (tardis. width 400):
tardis, center x=app. height
tardis. height =50
tardis. width =25
tardis. rotateAngle =0
# Implement wraparound.
if (tardis. left >400):
tardis. right =0
#### Place your code above this line, code below is for testing purposes #### # test case:
onstep()
app. paused = True
Checklist
I need help with the part with the center of the tardis vertically in the canvas
 6.4 Rotating tardis 41 42 43 44- def onStep(): # Move

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!