1 00:00:02,280 --> 00:00:09,280 So what grade are you in? Second. Tenth grade. First grade. I was in eighth grade when I 2 00:00:09,820 --> 00:00:16,530 learned to program. I got my first computer when I was in sixth grade. What gets me excited 3 00:00:16,530 --> 00:00:21,490 is being able to fix people's problems. You can express yourself, you can build things 4 00:00:21,490 --> 00:00:26,930 from an idea. Computer science is the basis for a lot of the things that college students 5 00:00:26,930 --> 00:00:31,400 and professionals will do for the next twenty or thirty years. I like programming because 6 00:00:31,400 --> 00:00:36,989 I like helping people. I get the opportunity to build something that's gonna make people's 7 00:00:36,989 --> 00:00:41,249 lives easier. I think it's the closest thing we have to a superpower. Getting started is 8 00:00:41,249 --> 00:00:47,710 the most important part. I'm a beginner myself and I want you to learn with me. I'm John 9 00:00:47,710 --> 00:00:52,469 Vechey, I'm one of the co-founders of PopCap Games. We make games like Plants vs. Zombies, 10 00:00:52,469 --> 00:00:57,670 Bejeweled, and Peggle. A lot about games isn't how perfect your code is, it's not how perfect 11 00:00:57,670 --> 00:01:02,129 your art is, it's about how does it feel and how much fun it is. You can only get that 12 00:01:02,129 --> 00:01:06,280 sense by trying it, by doing it, by learning and adapting and iterating your own skills 13 00:01:06,280 --> 00:01:11,170 of making games. Do you have a favorite video game? Well, we're going to take one step towards 14 00:01:11,170 --> 00:01:17,110 creating games just like that using Play Lab. Good games have a story and every story has 15 00:01:17,110 --> 00:01:22,829 actors. Actors do things like speak, move, and interact with each other. Maybe even score 16 00:01:22,829 --> 00:01:27,979 points based on the rules of the game. Today we'll be learning how to do all these things, 17 00:01:27,979 --> 00:01:33,710 one by one, with Disney's characters like Anna, Elsa, Hiro, Baymax, and Rapunzel. We'll 18 00:01:33,710 --> 00:01:39,500 build a game from scratch that can be shared and played on a phone. Your screen is split 19 00:01:39,500 --> 00:01:44,509 into three main parts. On the left is the gamespace, where your program will run. The 20 00:01:44,509 --> 00:01:50,670 instructions for each level are written below. This middle area is the toolbox, and each 21 00:01:50,670 --> 00:01:55,670 of these blocks is a piece of code. The white space on the right is called the workspace, 22 00:01:55,670 --> 00:02:02,460 and this is where we'll build our program. To start off, you'll need to link your blocks 23 00:02:02,460 --> 00:02:07,240 to the orange "when run" block. You can link multiple blocks together by dragging them 24 00:02:07,240 --> 00:02:13,069 out until you see the yellow outline, and then they'll snap together. In this first 25 00:02:13,069 --> 00:02:19,090 puzzle, Hiro is Actor 1 and Baymax is Actor 2. We need to move Hiro to get to Baymax by 26 00:02:19,090 --> 00:02:24,909 dragging the "move right" block out and linking it to the "when run" block. Once you have 27 00:02:24,909 --> 00:02:29,819 your blocks in place, hit the "Run" button to see what you've programmed. Get started 28 00:02:29,819 --> 00:02:34,260 and by the end you'll be able to create your own game with these amazing actors that can 29 00:02:34,260 --> 00:02:40,620 interact, score points, throw microbots, cherries, saucepans, sparkles, and ice.. and vanish 30 00:02:40,620 --> 00:02:42,730 each other. It's all up to you!