Missing step in csintro making activity (#1627)
This commit is contained in:
parent
66b4e88b6a
commit
45a485e3f5
@ -14,14 +14,31 @@ Open a browser window to [makecode.com](https://makecode.com), and select the mi
|
||||
|
||||

|
||||
|
||||
At the right of **My Projects** on the home screen, click on the **Import** button and then click on **Import File** in the import dialog. Select the file that you saved on your computer in the previous step
|
||||
Create this program by dragging out blocks from the ``||basic:Basic||`` Toolbox category. Put the ``||basic:show icon||`` and ``||basic:pause||`` blocks in the ``||basic:forever||`` loop. Type in `5000` for the time in each ``||basic:pause||``. Set one icon to a ``Happy`` face and the other to a ``Sad`` face. It shows a repeating series of faces:
|
||||
|
||||
|
||||
```blocks
|
||||
basic.forever(() => {
|
||||
basic.showIcon(IconNames.Happy)
|
||||
basic.pause(5000)
|
||||
basic.showIcon(IconNames.Sad)
|
||||
basic.pause(5000)
|
||||
})
|
||||
```
|
||||
|
||||
At the bottom of of the editor, name the project as "Happy Sad Face" and click on the disk icon to save the project.
|
||||
|
||||

|
||||
|
||||
Now, click on **Home** to go back to the home screen.
|
||||
|
||||
At the right of **My Projects** on the home screen, click on the **Import** button and then click on **Import File** in the import dialog. Select the file that you just saved to your computer in the previous step.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
The program should look like the following in MakeCode.
|
||||
It shows a repeating series of faces:
|
||||
The program should again look like the following in MakeCode:
|
||||
|
||||
```blocks
|
||||
basic.forever(() => {
|
||||
|
BIN
docs/static/courses/csintro/making/happy-sad-file.jpg
vendored
Normal file
BIN
docs/static/courses/csintro/making/happy-sad-file.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
Loading…
x
Reference in New Issue
Block a user