Miscellaneous changes. (#475)
* Miscellaneous changes. Replaced images with hand-drawn, added cover photos, corrected wording in rubric. * Small edits to 'Iteration' changes.
This commit is contained in:
@ -79,7 +79,7 @@ A helpful feature of Microsoft MakeCode is "Slo-Mo", or slow-motion mode.
|
||||
* Click on the snail icon under the micro:bit simulator.
|
||||
This will slow down the execution (running) of the program, and highlight parts of your code so you can see step-by-step, which line of code is being processed.
|
||||
|
||||

|
||||

|
||||
|
||||
Now run your program several more times. Do you see the different lines of your code highlighted as the program runs? Do you see the sprite move?
|
||||
|
||||
@ -189,6 +189,8 @@ We can use the default values for the rest of the parameters.
|
||||
|
||||
You should now see a light moving from left to right along the top row of the micro:bit simulator.
|
||||
|
||||

|
||||
|
||||
To make our pattern continue through all the leds, we can change the value of the y coordinate as well.
|
||||
|
||||
To do this efficiently, using the fewest lines of code, we can even put a loop inside a loop. Loops inside other loops are known as **nested loops**.
|
||||
@ -216,6 +218,8 @@ basic.forever(() => {
|
||||
|
||||
There! With only a half dozen or so lines of code, we have made our light travel through all the coordinates on the micro:bit screen.
|
||||
|
||||

|
||||
|
||||
**Check:** Make sure the students can read this code.
|
||||
|
||||
Here is what is happening to the values of the x & y coordinates as the program steps through each line and loop inside the forever block:
|
||||
|
Reference in New Issue
Block a user