astronautHumvee's Code

Created by: Susan Rodger

world

Events

When the world starts
Do:
world.my first method


When W is typed
Do:
astronaut.wave


Let move humvee


Methods

  world.my first method ( )
    No variables
       astronaut say Hello from the moon
  astronaut.wave
  astronaut say Press w and I will wave again duration = 2 seconds
  astronaut say I will now get in the Humvee duration = 2 seconds
  astronaut say Use the arrow keys to move me around
  world.getInHumvee


  world.getInHumvee ( )
    No variables
       astronaut move to humvee
  astronaut move up .4 meters
  astronaut orient to humvee
  astronaut set vehicle to humvee


astronaut

Methods

  astronaut.wave ( )
    No variables
       astronaut.rightArm turn backward 0.5 revolutions
  astronaut.rightArm roll left 0.12 revolutions
  astronaut.rightArm roll right 0.12 revolutions
  astronaut.rightArm turn forward 0.5 revolutions