lolo

Created by Jespa

Utiliza las teclas del cursor para que Lolo deje de pasear y pueda chutar la pelota. Utiliza las teclas 1 y 2 para que Lolo diga SI o NO con la cabeza.

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.

lolo's Code

Created by:

world

Events

When the world starts
Do:
world.my first method


When 1 is typed
Do:
lolo.yes


When 2 is typed
Do:
lolo.no


When is clicked on toyBall1
Do:
toyBall1.botar distancia = 4 altura = 0.5


Let move lolo


While ( toyBall1 is within 0.5 meters of lolo.LowerBody.RightThigh.RightShin.RightAnkle.RightFoot ) is true
Begin:
lolo.chutar
During: Nothing
End: Nothing


While ( toyBall1 is within 0.5 meters of lolo.LowerBody.LeftThigh.LeftShin.LeftAnkle.LeftFoot ) is true
Begin:
lolo.chutar
During: Nothing
End: Nothing


When any key is typed
Do:
lolo.paseando set value to false


Methods

  world.my first method ( )
    No variables
       Do together
       lolo.hello
  lolo say Hola
  lolo say Puedes pulsar la tecla 1 para decir SI
  lolo say Puedes pulsar la tecla 2 para decir NO
  While lolo.paseando
       Do together
       lolo move forward 2.5 meters duration = 2 seconds style = gently
  lolo.walk SetWalkTime = 2
  Do together
       lolo.walk SetWalkTime = 0.75
  lolo turn left 0.2 revolutions duration = 1 second