2016-03-26 00:47:20 +01:00
|
|
|
# snowflake fall quiz answers
|
|
|
|
|
2016-04-02 01:22:47 +02:00
|
|
|
create a snowflake fall animation.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Use this activity document to guide your work in the [snowflake fall tutorial](/lessons/snowflake-fall/tutorial).
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
|
|
|
|
|
|
|
## 1. In reference to an animation, what is an "interval"?
|
|
|
|
|
|
|
|
The number of milliseconds to pause after each image frame.
|
|
|
|
|
|
|
|
## 2. Consider the following code
|
|
|
|
|
|
|
|
```
|
|
|
|
basic.showAnimation(`
|
|
|
|
. . . . .
|
|
|
|
. . # . .
|
|
|
|
. # # # .
|
|
|
|
. . # . .
|
|
|
|
. . . . .
|
|
|
|
`, 400)
|
|
|
|
```
|
|
|
|
|
|
|
|
What is the `interval` of the animation?
|
|
|
|
|
|
|
|
400
|
|
|
|
|
|
|
|
## 3. Consider the following image
|
|
|
|
|
|
|
|
![](/static/mb/lessons/snowflake-fall-0.png)
|
|
|
|
|
|
|
|
Write the code to create a `forever` loop that shows an animation. Change the interval from 400 to 200 to make the animation go twice as fast!
|
|
|
|
|
|
|
|
```
|
|
|
|
basic.forever(() => {
|
|
|
|
basic.showAnimation(`
|
|
|
|
. . . . . . . . . .
|
|
|
|
. . # . . . . . . .
|
|
|
|
. # # # . . . . . .
|
|
|
|
. . # . . . . . . .
|
|
|
|
. . . . . . . . . .
|
|
|
|
`, 200)
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
|
|
|
## 4. Consider the following images
|
|
|
|
|
|
|
|
![](/static/mb/lessons/snowflake-fall-1.png)
|
|
|
|
|
|
|
|
![](/static/mb/lessons/snowflake-fall-2.png)
|
|
|
|
|
|
|
|
Write the code to create a `forever` loop that shows an animation. Change the interval from 400 to 800 to make the animation go twice as slow!
|
|
|
|
|
|
|
|
```
|
|
|
|
basic.forever(() => {
|
|
|
|
basic.showAnimation(`
|
|
|
|
. . . . . # # # # #
|
|
|
|
. . # . . # # . # #
|
|
|
|
. # # # . # . # . #
|
|
|
|
. . # . . # # . # #
|
|
|
|
. . . . . # # # # #
|
|
|
|
`, 800)
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|