madscimagic

Created by Leigh and Becky

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.

madscimagic's Code

Created by:

world

Events

When the world starts
Do:
world.my first method


When is clicked on blender
Do:
world.castspell spellobject = blender


When is clicked on mug
Do:
  Do in order
       Do together
       world.spellmug
  world.castspell spellobject = mug


When is clicked on toaster
Do:
world.castspell spellobject = toaster


Methods

  world.my first method ( )
    No variables
     Do Nothing


  world.castspell ( [Obj] spellobject)
    No variables
       madScientist turn to face spellobject
  madScientist.rightArm turn backward 0.3 revolutions
  spellobject move up .3 meters
  spellobject roll right 4 revolutions duration = 0.5 seconds
  spellobject move down 0.3 meters
  madScientist.rightArm turn forward 0.3 revolutions


  world.spellmug ( )
    No variables
       camera get a good look at mug
  mug.coffee set isShowing to false
  camera set point of view to Dummy

Alice Projects