Alice 3.3: различия между версиями

80 байт добавлено ,  3 года назад
{
if (MoveForward) is true then
sphere move(direction = FORWARD, amount = Force, duration = Duration, animationStyle = BEGIN_AND_END_ARBUTLY)
else
sphere move(direction = BACKWARD, amount = Force, duration = Duration, animationStyle = BEGIN_AND_END_ARBUTLY)
if (MoveRight) is true
sphere move(direction = RIGHT, amount = Force, duration = Duration, animationStyle = BEGIN_AND_END_ARBUTLY)
else
sphere move(direction = LEFT, amount = Force, duration = Duration, animationStyle = BEGIN_AND_END_ARBUTLY)
}
MoveForward = nextRandomBoolean()