Skip to content

Commit b25e159

Browse files
committed
Merge pull request code-dot-org#5437 from code-dot-org/fixslides
fix show notes to use javascript style syntax when talking about blocks
2 parents 828665f + 4a423e9 commit b25e159

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

dashboard/config/locales/slides.en.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,17 +1352,17 @@ en:
13521352
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."
13531353
5:
13541354
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."
13561356
6:
13571357
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!"
13591359
starwars_typing:
13601360
1:
13611361
image: 'notes/starwars_typing_1.png'
13621362
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."
13631363
2:
13641364
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."
13661366
3:
13671367
image: 'notes/starwars_typing_3.png'
13681368
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:
13711371
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."
13721372
5:
13731373
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."
13751375
starwars_events:
13761376
1:
13771377
image: 'notes/starwars_events_1.png'
@@ -1381,7 +1381,7 @@ en:
13811381
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."
13821382
3:
13831383
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."
13851385
4:
13861386
image: 'notes/starwars_events_4.png'
13871387
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:
14001400
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!"
14011401
4:
14021402
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!"
14041404
starwars_blocks_intro:
14051405
1:
14061406
image: 'notes/starwars_blocks_intro_1.png'
@@ -1416,10 +1416,10 @@ en:
14161416
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."
14171417
5:
14181418
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."
14201420
6:
14211421
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!"
14231423
starwars_blocks_events:
14241424
1:
14251425
image: 'notes/starwars_blocks_events_1.png'
@@ -1432,7 +1432,7 @@ en:
14321432
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."
14331433
4:
14341434
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."
14361436
5:
14371437
image: 'notes/starwars_blocks_events_5.png'
14381438
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:
14481448
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!"
14491449
4:
14501450
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!"
14521452
mc_intro:
14531453
1:
14541454
image: 'notes/mc_intro_1.jpg'
@@ -1464,7 +1464,7 @@ en:
14641464
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."
14651465
5:
14661466
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."
14681468
6:
14691469
image: 'notes/mc_intro_6.jpg'
14701470
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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy