Web Developer Snowman Crush
Languages Assistance The Developer
Code
  • World

    Events
    When the world starts
    Do:
    world.init


    Methods
      world.init ( )
        No variables
           SWoman turn right 0.5 revolutions duration = 3 seconds style = begin gently
      world.walk Obj = SWoman
      SMan turn left 0.5 revolutions duration = 3 seconds style = begin gently
      world.walk Obj = SMan
      SMan.rightArm turn right 0.25 revolutions
      Do together
           Do in order
           SMan.head.topHat set vehicle to SMan.rightArm
      SMan.rightArm turn left 1/8 revolutions
      SMan.rightArm turn right 1/8 revolutions
      SMan.head.topHat set vehicle to SMan.head
      SMan.rightArm turn left 0.25 revolutions
      SMan say Merry Christmas! duration = 3 seconds
      SWoman.head set color to (1, 0, 0) duration = 0.5 seconds style = end gently
      SWoman.head set color to (1, 1, 1) duration = 0.5 seconds


      world.walk ( [Obj] Obj)
        No variables
           If ( Obj == SWoman )
           SWoman move forward ( ( ( SWoman distance to SMan ) / 3 ) )
      Else
        SMan move forward ( ( ( SMan distance to SWoman ) / 2 ) )


Additional Resources
HomeView IndexGo to Top

Creative Commons License
This work by http://webdeveloper.50webs.com is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.