|Giving Commands to Objects|
If you look on the left, you will see two robots. The one on the left is called zbot because it has a big "Z" on it. The one on the right is called tvbot because its head is a giant tv. Zbot and tvbot are both objects. You can give commands to them.
To give them commands, you first need to move your mouse inside the blue box of the Program Area and click.
And lastly, you should click on the Run button.
Go ahead and try getting zbot to wave. Remember, the steps are 1. click inside the blue box of the Program Area, 2. type "zbot.wave();", and then 3. click on Run. Make sure you type everything exactly right.
Now, try getting tvbot to wave. First, click on the Clear button to get rid of the old command. Click on Yes when the computer asks you if you want to clear your program.
Then, it's the same as before except instead of typing zbot, you type tvbot instead. (Tvbot has smaller arms, so it only waves a little bit.)
Zbot and tvbot know how to do lots of things. Here are some of the things you can tell them to do: "blink," "clap," and "jump." Tvbot does not have any legs, so it cannot jump. Try out these different commands.
You can also type more than one command in the Program Area.
The computer will follow the first command, and then do the next command, and then the next one, until it reaches the end. This list of instructions is called a "program."