1 00:00:00,099 --> 00:00:04,839 Usually programming is all in text but we'll use Blockly which uses visual blocks that 2 00:00:04,839 --> 00:00:10,120 you drag and drop to write programs. Under the hood, you're still creating code. To start 3 00:00:10,120 --> 00:00:14,210 off, we're going to build code for a program that will help this Angry Bird move through 4 00:00:14,210 --> 00:00:19,460 a maze to get to the evil pigs that stole its eggs. Blockly is split into three main 5 00:00:19,460 --> 00:00:24,740 parts. On the left is the bird's maze, where your program will run. The instructions for 6 00:00:24,740 --> 00:00:30,810 each level are written below the maze. This middle area is the toolbox and each of these 7 00:00:30,810 --> 00:00:35,670 blocks is a command that the bird can understand. The white space on the right is called the 8 00:00:35,670 --> 00:00:41,649 workspace and this is where we'll build our program. If I drag the move block to our work 9 00:00:41,649 --> 00:00:47,870 space and press "run", what happens? The bird moves forward one box on the grid. And what 10 00:00:47,870 --> 00:00:52,909 if I want the bird to do something after it moves forward one box? I can add another block 11 00:00:52,909 --> 00:00:57,839 to our program. I'm going to choose the "turn right" block and I'll drag it under my move 12 00:00:57,839 --> 00:01:03,870 block until the yellow arrow appears. Then I'll drop it and the two blocks will snap 13 00:01:03,870 --> 00:01:08,729 together. When I press "run" again, the bird will perform the commands that are stacked 14 00:01:08,729 --> 00:01:13,320 from top to bottom on our work space. If you ever want to delete a block, just remove it 15 00:01:13,320 --> 00:01:18,460 from the stack and drag it to the trash can. After you've hit run, you can always hit the 16 00:01:18,460 --> 00:01:22,539 reset button to get the bird back to the start. Now let's get those pigs!