Question: app.background = rgb ( 6 0 , 3 0 , 2 0 ) Rect ( 0 , 2 8 0 , 4 0 0 ,
app.background rgb
Rect fill'peru'
# spring and glove
spring Oval fillNone, border'grey'
spring Oval fillNone, border'grey'
spring Oval fillNone, border'grey'
spring Oval fillNone, border'grey'
spring Oval fillNone, border'grey'
glove Group
Oval fillgradientred 'crimson', start'righttop'
border'darkRed', rotateAngle
Oval fillgradientred 'crimson', start'rightbottom'
border'darkRed'
Oval fillgradientred 'crimson', start'righttop'
rotateAngle
Rect fillgradientred 'crimson', start'right'
border'darkRed', align'center'
Line fill'darkRed'
# punching bag
punchingBag Group
Oval fillgradientred 'crimson', start'left'
border'darkRed'
Rect fillgradientred 'crimson', start'left'
Oval fillgradientred 'crimson', start'left'
border'darkRed'
cord Line fill'white', lineWidth dashesTrue
# comicstyle hit symbol
hit Star fillgradientyellow 'orange'
border'darkRed', visibleFalse
def onMouseMovemouseX mouseY:
gapSize mouseX
# Move each of the springs the same distance from each other.
### HINT: All of the springs are related in a similar manner. A spring's
# centerX value is equal to the previous spring's centerX
# plus the gapSize.
### Place Your Code Here ###
glove.centerX mouseX
# If the glove's centerX value is too large, display the hit star and
# update the position of it and the punching bag appropriately.
### Place Your Code Here ###
# Otherwise, reset both the hit star and the punching bag.
### Place Your Code Here ###
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
