Wolves_and_Wizard

Created by Patti

You need to download Java software in order to view this Alice world. Please visit this page: http://www.alice.org/applet/requirements/

Created with Alice, the easy-to-learn programming system. Provided free as a public service by Carnegie Mellon University


If you don't see 3d graphics on this page, click for help.

Wolves_and_Wizard's Code

Created by:

world

Events

When the world starts
Do:
world.my first method


Let orient the camera


Let move the camera


When is clicked on wolf
Do:
world.talk to wolf


Methods

  world.my first method ( )
    No variables
       Do together
       wolf2.neck turn right ( ( 0.25 * 0.25 ) )
  wolf.wolf walk
  wolf3.neck turn forward ( ( 0.25 * 0.25 ) )
  wolf3.neck turn left ( ( 0.25 * 0.25 ) )
  wolf3.neck.head.jaw turn backward ( ( 0.25 * 0.5 ) )
  Do in order
       wolf4.neck roll left ( ( 0.25 * 0.25 ) )
  wolf4.neck roll right ( ( 0.25 * 0.5 ) ) duration = 0.5 seconds
  wolf4.neck roll left ( ( 0.25 * 0.25 ) )
  Do together
       wolf.wolf walk
  wolf.neck turn to face camera
  wolf3.neck.head turn forward 0.05 revolutions
  Do in order
       Do in order
       Do together
       wolf3.frontRightLeg turn backward 0.05 revolutions
  wolf3.frontRightLeg.lowerLeg turn forward 0.05 revolutions
  Do together
       wolf3.frontRightLeg turn forward 0.05 revolutions
  wolf3.frontRightLeg.lowerLeg turn backward 0.05 revolutions
  Do in order
       Do together
       wolf3.frontRightLeg turn backward 0.05 revolutions
  wolf3.frontRightLeg.lowerLeg turn forward 0.05 revolutions
  Do together
       wolf3.frontRightLeg turn forward 0.05 revolutions
  wolf3.frontRightLeg.lowerLeg turn backward 0.05 revolutions
  wolf5.neck roll left ( ( 0.25 * 0.25 ) )
  wolf5.neck.head.jaw turn backward ( ( 0.25 * 0.25 ) )
  Do together
       wolf turn left ( ( 0.25 * 0.25 ) )
  wolf.wolf walk
  wolf.neck turn to face camera
  Do together
       wolf.neck roll left 0.05 revolutions
  wolf.neck.head.leftEar turn backward 0.25 revolutions
  wolf.neck.head.rightEar turn backward 0.25 revolutions
  wolf.neck.head.jaw turn forward 0.05 revolutions
  Do together
       Do in order
       wolf.wolf talk
  wolf.wolf talk
  wolf.neck.head say We shall feast on your bones tonight, human! ( ( 1 + 2 ) )
  Do together
       wolf.neck.head move up 0.5 meters duration = 15.0 seconds
  wolf.neck.head move down 0.5 meters duration = 15.0 seconds


  world.running ( )
    No variables
     Do Nothing


  world.talk to wolf ( )
    No variables
       camera say Help wolves! fontSize = 25
  Do together
       camera move backward ( ( 0.5 * 0.5 ) ) duration = 2 seconds
  world.wizard scare off wolves
  world.wolves react
  wizard say Begone, I said!
  wolf.neck.head say Grrrrr!
  wizard say I shall melt the ground beneath you!
  Do together
       wolf move down 5 meters ( ( 1 + 2 ) )
  wolf2 move down 5 meters ( ( 1 + 2 ) )
  wolf3 move down 5 meters ( ( 1 + 2 ) )
  wolf4 move down 5 meters ( ( 1 + 2 ) )
  wolf5 move down 5 meters ( ( 1 + 2 ) )
  wizard point at camera
  Do together
       wizard say You! Begone, as well!
  wizard.upperBody.leftArm turn forward ( ( 0.25 * 0.25 ) )
  camera move down ( ( 1 + 1 ) ) ( ( 1 + 2 ) )


  world.wizard scare off wolves ( )
    No variables
       wizard.wizard walk
  wizard.wizard walk
  Do together
       wizard.wizard walk
  camera point at wizard.upperBody
  Do together
       Do in order
       wizard.upperBody.leftArm turn backward 0.25 revolutions
  wizard say Begone wolves! duration = 1 second
  wizard say You are not wanted here!
  camera point at wizard.upperBody


  world.wolves react ( )
    No variables
       Do together
       wolf.neck.head point at wizard.upperBody.neck.head
  wolf2.neck point at wizard.upperBody.neck.head
  wolf3.neck point at wizard.upperBody.neck.head
  wolf4.neck point at wizard.upperBody.neck.head
  wolf5.neck point at wizard.upperBody.neck.head
  Do together
       wolf point at wizard.upperBody
  wolf.neck.head turn to face wizard.upperBody duration = 2 seconds
  wolf.neck.head say Grrrrr!