1 00:00:01,280 --> 00:00:03,940 Welcome to the Hour of Code... 2 00:00:14,070 --> 00:00:20,470 Hi I'm Kathleen Kennedy and I'm the producer of Star Wars: The Force Awakens. Today you'll 3 00:00:20,470 --> 00:00:27,910 be working with one of our stars, BB-8. BB-8 is a spherical droid. Everything he does and 4 00:00:27,910 --> 00:00:34,830 every movement that he makes is controlled by computer software. Computer science impacts 5 00:00:34,830 --> 00:00:41,220 every industry, from marketing to health care to film. In fact, hundreds of computer engineers 6 00:00:41,220 --> 00:00:45,290 worked together to make a film like The Force Awakens. 7 00:00:45,290 --> 00:00:51,899 Hi, I'm Rachel Rose. I'm a senior R&D engineer at ILM and I lead the animation and creature 8 00:00:51,899 --> 00:00:57,340 development team. In The Force Awakens, I'm responsible for helping the artist develop 9 00:00:57,340 --> 00:01:03,289 rigs, which are the parts of the character that move that allow the character to look 10 00:01:03,289 --> 00:01:08,630 very believable in a galaxy far, far away. In the next hour, we're going to build our 11 00:01:08,630 --> 00:01:13,679 own Star Wars game that will teach you the basic concepts of programming. Usually programming 12 00:01:13,679 --> 00:01:17,240 is all text but we're going to use blocks here so we can drag and drop to write the 13 00:01:17,240 --> 00:01:23,200 programs. To start off, we're going to work with Rey to program BB-8 to walk to collect 14 00:01:23,200 --> 00:01:27,700 all of the scrap parts. Your screen is split into three parts. On 15 00:01:27,700 --> 00:01:32,259 the left is the Star Wars game space where code will run. The instructions for each level 16 00:01:32,259 --> 00:01:37,259 are written below the game space. This middle area is the toolbox and each of these blocks 17 00:01:37,259 --> 00:01:42,009 is a command that BB-8 can understand. The white space on the right is called the work 18 00:01:42,009 --> 00:01:44,649 space and this is where we're going to build our program. 19 00:01:44,649 --> 00:01:51,860 If I drag the moveLeft block to our workspace, what happens? BB-8 moves left one block on 20 00:01:51,860 --> 00:01:56,990 the grid. And what if I want BB-8 to do something after the move left block? I can add another 21 00:01:56,990 --> 00:02:02,280 block to our program. I'm going to choose the moveUp block and I'll drag it under my 22 00:02:02,280 --> 00:02:06,180 moveLeft block until the highlight appears. Then I'll drop it and the two blocks will 23 00:02:06,180 --> 00:02:10,549 snap together. When I press run again, BB-8 will perform 24 00:02:10,549 --> 00:02:15,989 the commands that are stacked top to bottom on our workspace. If you ever want to delete 25 00:02:15,989 --> 00:02:20,560 a block, just remove it from the stack and drag it back into the toolbox. After you hit 26 00:02:20,580 --> 00:02:27,600 run, you can always hit the reset button to get BB-8 back to the start. Now let's get rolling!