test-world-code's Code

Created by: ljd18

world

Events

When the world starts
Do:
world.my first method


Methods

  world.my first method ( )
    No variables
       soccerBall turn to face soccerGoal
  soccerBall.realisticRoll distance = 5 direction = backward


soccerBall

Methods

  soccerBall.realisticRoll ( [123] distance, [Direction] direction)
    No variables
       Do together
       soccerBall move direction distance meters  asSeenBy = ground duration = 3.14 seconds 
  soccerBall turn direction ( soccerBall.numberOfRevolutions distance = distance ) duration = 3.14 seconds 


Functions

  Number soccerBall.numberOfRevolutions ( [123] distance)
    No variables
     Do Nothing
Return ( ( distance / ( ( 3.14 * ( subject = soccerBall 's width ) ) ) ) )