Web Developer Logo
Snowman Crush

Introduction

A snowman turns to a snow-woman and says "Merry Christmas" while tipping his hat and she blushes in return.

Demonstration

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 ) )

© 2002-2009 Some Rights Reserved Report an Error | Return to Top