You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dashboard/config/locales/slides.en.yml
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1352,17 +1352,17 @@ en:
1352
1352
text: "To start off, we're going to work with Rey to program BB-8 to walk to collect all of the scrap parts. Your screen is split into three parts. On the left is the Star Wars game space, where code will run. The instructions for each level are written below the game space.This middle area is the toolbox and each of these blocks is a command that BB-8 can understand. The white space on the right is called the workspace and this is where we are going to build our program."
1353
1353
5:
1354
1354
image: 'notes/starwars_intro_5.png'
1355
-
text: "If I drag the move left block to our workspace and press run, what happens? BB-8 moves left one block on the grid. And what if I want BB-8 to do something after the move left block? I can add another block to our program. I'm going to choose the move up block and I'll drag it under my move left block until the highlight appears. Then I'll drop it and the two blocks will snap together."
1355
+
text: "If I drag the moveLeft(); block to our workspace and press run, what happens? BB-8 moves left one block on the grid. And what if I want BB-8 to do something after the moveLeft(); block? I can add another block to our program. I'm going to choose the moveUp(); block and I'll drag it under my moveLeft(); block until the highlight appears. Then I'll drop it and the two blocks will snap together."
1356
1356
6:
1357
1357
image: 'notes/starwars_intro_6.png'
1358
-
text: "When I press run again, BB-8 will perform the commands that are stacked from top to bottom on our workspace. If you ever want to delete a block, just remove it from the stack and drag it back into the tool box. After you've hit run, you can always hit the reset button to get BB-8 back to the start. Now let's get rolling!"
1358
+
text: "When I press run again, BB-8 will perform the commands that are stacked from top to bottom on our workspace. If you ever want to delete a block, just remove it from the stack and drag it back into the tool box. After you've hit Run, you can always hit the Reset button to get BB-8 back to the start. Now let's get rolling!"
1359
1359
starwars_typing:
1360
1360
1:
1361
1361
image: 'notes/starwars_typing_1.png'
1362
1362
text: "Inside the blocks we've been using are JavaScript commands. JavaScript is the most popular programming language for professional developers today. Blocks are a great way to get started learning to code and in fact, top universities like Harvard and Berkeley start teaching this way. But once we learn the basics, engineers write code by typing because it allows us to go faster."
1363
1363
2:
1364
1364
image: 'notes/starwars_typing_2.png'
1365
-
text: "We can type hundreds of commands without having to find them in the toolbox or drag them out. Because you're learning typing may be slower at first but we wanted you to give it a try. In the upper right corner on your workspace, you can click the show text button on any puzzle to switch from blocks to typing code as text."
1365
+
text: "We can type hundreds of commands without having to find them in the toolbox or drag them out. Because you're learning typing may be slower at first but we wanted you to give it a try. In the upper right corner on your workspace, you can click the Show Text button on any puzzle to switch from blocks to typing code as text."
1366
1366
3:
1367
1367
image: 'notes/starwars_typing_3.png'
1368
1368
text: "In the next lesson, we'll start you out in typing mode. Here you can still drag the block from the toolbox or you can type the command name. As you start to type, you'll see names of possible commands show below where you're typing. Instead of typing the whole command name, you can select one of these to move faster. In my job, I use this auto-complete feature all the time when writing code."
@@ -1371,7 +1371,7 @@ en:
1371
1371
text: "When you're typing code, the computer needs you to be very precise. You need to spell and capitalize the command name exactly correctly, including the parentheses and the semi-colon. Even with a small typing mistake, BB-8 cannot understand the code and won't be able to move. When you make an error on the line, the editor highlights it for you so that you can try changing your text to fix it."
1372
1372
5:
1373
1373
image: 'notes/starwars_typing_5.png'
1374
-
text: "If you get stuck, you can always start over with the start over button and you can switch back to block mode at any time by clicking in the top-right corner. Ok, let's give typing a try! And if you make mistakes, don't get frustrated. It takes everybody a few tries to get it right."
1374
+
text: "If you get stuck, you can always start over with the Start Over button and you can switch back to block mode at any time by clicking in the top-right corner. Ok, let's give typing a try! And if you make mistakes, don't get frustrated. It takes everybody a few tries to get it right."
1375
1375
starwars_events:
1376
1376
1:
1377
1377
image: 'notes/starwars_events_1.png'
@@ -1381,7 +1381,7 @@ en:
1381
1381
text: "Congratulations! You did it. You programmed BB-8. Now I think we're ready for something harder. Let's go for it. Now that you've learned the basics of programming, we're going to go back in time to build your own game, starring R2-D2 and C-3PO. To make a game, we need to learn about something that game programmers use every day: they're called events. Events tell your program to listen or wait for when something happens and then when it does, it performs an action. Some examples of events are listening for a mouse click, an arrow button or a tap on the screen."
1382
1382
3:
1383
1383
image: 'notes/starwars_events_3.png'
1384
-
text: "Here, we're going to make R2-D2 move up to deliver a message to a Rebel Pilot and then move down to the other Rebel Pilot. We'll use events to make him move. When the player uses the up/down arrow keys or the up/down buttons, we use the when event block and attach the go up block to it. When the player presses the up arrow key, the code attached to the when up block is run. And we'll do the same thing to make R2-D2 move down."
1384
+
text: "Here, we're going to make R2-D2 move up to deliver a message to a Rebel Pilot and then move down to the other Rebel Pilot. We'll use events to make him move. When the player uses the up/down arrow keys or the up/down buttons, we use the whenEvent() block and attach the go up block to it. When the player presses the up arrow key, the code attached to the when up block is run. And we'll do the same thing to make R2-D2 move down."
1385
1385
4:
1386
1386
image: 'notes/starwars_events_4.png'
1387
1387
text: "To do this, we'll use a command called when up. When you drag the command out of the toolbox, you'll see that it starts and ends with a curly bracket instead of a semi-colon. This gives us space to put other commands in the middle. Every command that we place inside these brackets will run when the player presses the up arrow. We want R2-D2 to go up so let's put a go up block inside the command. And we'll do the same thing to make R2-D2 go down."
@@ -1400,7 +1400,7 @@ en:
1400
1400
text: "[students speaking] We made a game where you can't lose and everything you kill gives you points. For my program, I reversed the keys so that whenever you click up, your character goes down and when you click right, your character goes left. It's really hard! Sometimes you just get an advantage, an inherent advantage if you're the developer of the game. Did I get it? Yay!"
1401
1401
4:
1402
1402
image: 'notes/starwars_congrats_4.png'
1403
-
text: "When you're done making your game, choose share to get a link you can share with friends or play your game on your phone. Have fun!"
1403
+
text: "When you're done making your game, choose share to get a link you can share with friends or play your game on your phone. Have fun!"
1404
1404
starwars_blocks_intro:
1405
1405
1:
1406
1406
image: 'notes/starwars_blocks_intro_1.png'
@@ -1416,10 +1416,10 @@ en:
1416
1416
text: "Your screen is split into three parts. On the left is the Star Wars game space where code will run. The instructions for each level are written below the game space. This middle area is the toolbox and each of these blocks is a command that BB-8 can understand. The white space on the right is called the work space and this is where we're going to build our program."
1417
1417
5:
1418
1418
image: 'notes/starwars_blocks_intro_5.png'
1419
-
text: "If I drag the moveLeft block to our workspace, what happens? BB-8 moves left one block on the grid. And what if I want BB-8 to do something after the move left block? I can add another block to our program. I'm going to choose the moveUp block and I'll drag it under my moveLeft block until the highlight appears. Then I'll drop it and the two blocks will snap together."
1419
+
text: "If I drag the moveLeft(); block to our workspace, what happens? BB-8 moves left one block on the grid. And what if I want BB-8 to do something after the moveLeft(); block? I can add another block to our program. I'm going to choose the moveUp(); block and I'll drag it under my moveLeft(); block until the highlight appears. Then I'll drop it and the two blocks will snap together."
1420
1420
6:
1421
1421
image: 'notes/starwars_blocks_intro_6.png'
1422
-
text: "When I press run again, BB-8 will perform the commands that are stacked top to bottom on our workspace. If you ever want to delete a block, just remove it from the stack and drag it back into the toolbox. After you hit run, you can always hit the reset button to get BB-8 back to the start. Now let's get rolling!"
1422
+
text: "When I press Run again, BB-8 will perform the commands that are stacked top to bottom on our workspace. If you ever want to delete a block, just remove it from the stack and drag it back into the toolbox. After you hit Run, you can always hit the Reset button to get BB-8 back to the start. Now let's get rolling!"
1423
1423
starwars_blocks_events:
1424
1424
1:
1425
1425
image: 'notes/starwars_blocks_events_1.png'
@@ -1432,7 +1432,7 @@ en:
1432
1432
text: "Events tell your program to listen or wait for when something happens and then when it does, it performs an action. Some examples of events are listening for a mouse click, an arrow button or a tap on the screen. Here we're going to make R2-D2 move up to deliver a message to a rebel pilot and then move down to the other rebel pilot."
1433
1433
4:
1434
1434
image: 'notes/starwars_blocks_events_4.png'
1435
-
text: "We'll use events to make him move. When the player uses the up/down arrow keys, or the up/down buttons. We use the when up event block and attach the go up block to it. When the player presses the up arrow key, the code attached to the when up block is run. And we'll do the same thing to make R2-D2 move down."
1435
+
text: "We'll use events to make him move. When the player uses the up/down arrow keys, or the up/down buttons. We use the whenUp() event block and attach the go up block to it. When the player presses the up arrow key, the code attached to the when up block is run. And we'll do the same thing to make R2-D2 move down."
1436
1436
5:
1437
1437
image: 'notes/starwars_blocks_events_5.png'
1438
1438
text: "Now instead of writing all the code to control our droid in advance, we can let R2-D2 react to button press events that move him around the screen. Step by step, your game is getting more interactive."
@@ -1448,7 +1448,7 @@ en:
1448
1448
text: "[students speaking] We made a game where you can't lose and everything you kill gives you points. For my program, I reversed the keys so that whenever you click up, your character goes down and when you click right, your character goes left. It's really hard! Sometimes you just get an advantage, an inherent advantage if you're the developer of the game. Did I get it? Yay!"
1449
1449
4:
1450
1450
image: 'notes/starwars_blocks_congrats_4.png'
1451
-
text: "When you're done making your game, choose share to get a link you can share with friends or play your game on your phone. Have fun!"
1451
+
text: "When you're done making your game, choose share to get a link you can share with friends or play your game on your phone. Have fun!"
1452
1452
mc_intro:
1453
1453
1:
1454
1454
image: 'notes/mc_intro_1.jpg'
@@ -1464,7 +1464,7 @@ en:
1464
1464
text: "Your screen is split into three main parts. On the left is the Minecraft playspace where your program will run. The instructions for each level are written below. This middle area is the toolbox and each of these blocks is a command that directs Alex's actions. The white space on the right is called the work space and this is where we'll build our program."
1465
1465
5:
1466
1466
image: 'notes/mc_intro_5.jpg'
1467
-
text: "If we drag the move forward block to our workspace and then click run, what happens? Alex moves forward one space on the grid. And what if we want to do something after she has moved forward one space? We can add another block to our program. I'm going to choose the turn right block and I'll drag it underneath my move block until this orange line appears. Then I'll drop it and the two blocks will snap together. When we press run again, Alex will perform the commands that are stacked from top to bottom in our workspace."
1467
+
text: "If we drag the moveForward(); block to our workspace and then click run, what happens? Alex moves forward one space on the grid. And what if we want to do something after she has moved forward one space? We can add another block to our program. I'm going to choose the turnRight(); block and I'll drag it underneath my moveForward(); block until this orange line appears. Then I'll drop it and the two blocks will snap together. When we press run again, Alex will perform the commands that are stacked from top to bottom in our workspace."
1468
1468
6:
1469
1469
image: 'notes/mc_intro_6.jpg'
1470
1470
text: "If you ever want to delete a block, just drag it from the stack back to the toolbox. To undo your changes and get back to how the level started, use the Start Over button in the top right corner of the workspace. One more thing: you see the little triangle on the turn blocks? Anytime you see these triangles, it means that you can pick a different option. Let's start coding!"
0 commit comments