Mummy_versus_Ra

Created by Laura Elise Biddle

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.

Mummy_versus_Ra's Code

Created by:

world

Events

When the world starts
Do:
world.my first method fight = true


Methods

  world.my first method ( [T/F] fight)
    No variables
       mummy say Let's Duel!! (1, 0.647, 0) duration = 2.5 seconds
  ra say I will tear you apart with my bare teeth! (1, 1, 0) duration = 2.5 seconds
  world.duel ( ask user for yes or no question = Yes or No? )
  shanty turn to face mummy
  world.jumpwhile
  mummy turn to face camera
  ra turn to face camera
  ra move amount = 5 meters toward target = camera
  mummy move amount = 5 meters toward target = camera
  ra say We confused the shanty with our excessive resizing!!! (0.753, 0.753, 0.753) duration = 3 seconds
  mummy say Thank you for watching... (1, 0, 1) duration = 3 seconds


  world.duel ( [T/F] fight!)
    No variables
       If fight!
       mummy turn right 3 revolutions style = abruptly
  ra resize 2 duration = 0.5 seconds
  ra resize 0.5 duration = 0.5 seconds
  Else
    ra turn forward 3 revolutions
  mummy roll left 3 revolutions


  world.jumpwhile ( )
    No variables
       Do together
       While ( shanty is larger than mummy )
       shanty move up 1 meter
  shanty turn left 1 revolution
  shanty move down 1 meter
  shanty resize 0.75
  Do in order
       Wait 3 seconds
  mummy think How can a shanty jump? (1, 0.686, 0.686) duration = 1.5 seconds
  ra think I don't know...let's go find out (0.502, 0, 0.502) duration = 1.5 seconds
  ra turn to face shanty
  mummy turn to face shanty
  mummy move amount = 2 meters toward target = shanty
  ra move amount = 2 meters toward target = shanty
  mummy move amount = 2 meters toward target = shanty
  ra move amount = 2 meters toward target = shanty
  Loop 3 times times
       ra resize 0.5
  mummy resize 2
  ra resize 2
  mummy resize 0.5