Skip to content

Commit 538596c

Browse files
author
Andrew Spiece
committed
Updates to lesson, lab and Do_Now for Lesson 1.4
1 parent 35c2e41 commit 538596c

18 files changed

+230
-72
lines changed
-502 KB
Binary file not shown.
6.8 KB
Binary file not shown.

add_a_new_sprite.PNG

844 Bytes
Loading

alonzo.svg

+55
Loading

do_now_14.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
# Do Now 1.4 Example Animation
22

3-
**Complete the following steps individually:**
3+
## Follow these steps on your own
44

55
1. Open this [starter project](https://snap.berkeley.edu/snapsource/snap.html#present:Username=instructor_resources&ProjectName=Do%20Now%201.4%20-%20Example%20Animation).
66

7-
2. Log into your Snap! account and save the starter project so you can refer back to it later. Name the project "Do Now 1.4 - Example Animation".
7+
2. Log into your Snap! account and save the starter project. Name the project `Do Now 1.4 - Example Animation`.
88

99
3. Press the space bar on your keyboard several times in a row. Notice what happens to the two bats on the screen.
1010

11-
>Hint: If a sprite moves completely off the Stage, you can bring the sprite back on the Stage by right-clicking its icon in the Sprite Corral and choosing "show".
11+
>Hint: If a sprite moves completely off the Stage, you can bring the sprite back on the Stage by right-clicking its icon in the Sprite Corral and choosing `show`.
1212
1313
4. Use your mouse to point the cursor at one of the bats. Then, click the mouse button several times. Notice what happens to the two bats on the screen.
1414

15-
5. Take a look at all of the parts of the Snap! window. Try to figure out how the project works. Be sure to explore the tabs at the top of the scripting area and the icons in the Sprite Corral.
15+
5. Take a look at all of the parts of the Snap! window. Read the comments in the script. Be sure to explore the tabs at the top of the scripting area and the icons in the Sprite Corral.
1616

17-
> Hint: It may be helpful to activate "visual steps" with the footprint icon near the middle of the top toolbar.
17+
> Hint: It may be helpful to activate "visual steps" with the footprint icon near the middle of the top tool bar.
18+
19+
## Respond to the following in your notebook
20+
21+
1. Write down the name of all of the blocks that you have never seen before.
22+
2. Write down every object has a script that executes.
-502 KB
Binary file not shown.
Binary file not shown.

docs/add_a_new_sprite.PNG

844 Bytes
Loading

docs/alonzo.svg

+55
Loading

docs/do_now_14.md.html

+10-5
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,25 @@
77

88
# Do Now 1.4 Example Animation
99

10-
**Complete the following steps individually:**
10+
## Follow these steps on your own
1111

1212
1. Open this [starter project](https://snap.berkeley.edu/snapsource/snap.html#present:Username=instructor_resources&ProjectName=Do%20Now%201.4%20-%20Example%20Animation).
1313

14-
2. Log into your Snap! account and save the starter project so you can refer back to it later. Name the project "Do Now 1.4 - Example Animation".
14+
2. Log into your Snap! account and save the starter project. Name the project `Do Now 1.4 - Example Animation`.
1515

1616
3. Press the space bar on your keyboard several times in a row. Notice what happens to the two bats on the screen.
1717

18-
>Hint: If a sprite moves completely off the Stage, you can bring the sprite back on the Stage by right-clicking its icon in the Sprite Corral and choosing "show".
18+
>Hint: If a sprite moves completely off the Stage, you can bring the sprite back on the Stage by right-clicking its icon in the Sprite Corral and choosing `show`.
1919

2020
4. Use your mouse to point the cursor at one of the bats. Then, click the mouse button several times. Notice what happens to the two bats on the screen.
2121

22-
5. Take a look at all of the parts of the Snap! window. Try to figure out how the project works. Be sure to explore the tabs at the top of the scripting area and the icons in the Sprite Corral.
22+
5. Take a look at all of the parts of the Snap! window. Read the comments in the script. Be sure to explore the tabs at the top of the scripting area and the icons in the Sprite Corral.
2323

24-
> Hint: It may be helpful to activate "visual steps" with the footprint icon near the middle of the top toolbar.
24+
> Hint: It may be helpful to activate "visual steps" with the footprint icon near the middle of the top tool bar.
25+
26+
## Respond to the following in your notebook
27+
28+
1. Write down the name of all of the blocks that you have never seen before.
29+
2. Write down every object has a script that executes.
2530

2631
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>

docs/lab_14.docx

122 KB
Binary file not shown.

docs/lab_14.md.html

+30-28
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,56 @@
99

1010
In this lab, you will use costumes and movement to create simple Snap! animations.
1111

12-
## Part 1 - Run, Spot, Run
12+
## Part 1: Run, Spot, Run
1313

14-
1. In a Snap! project, click on the file menu, then click costumes. Import the costumes "dog2 a" and "dog2 b".
14+
1.1) In a New Snap! project, click on the file menu, then click costumes. Import the costumes `dog2a` and `dog2b`.
1515

16-
![Menu->Costumes](menucostumes.png)
16+
1.2) Write a script to make the sprite change costume each time the space bar is pressed. (The sprite should switch back and forth between the two costumes.)
1717

18-
![Import Costumes](importcostumes.png)
18+
1.3) Add to your script so that the sprite will
1919

20-
2. Write a script to make the sprite change costume each time the space bar is pressed. The sprite should switch back and forth between the two costumes.
20+
1. Face to the left.
21+
2. Move a few steps.
22+
3. Change costume when the left arrow key is pressed.
2123

22-
3. Add code so that the sprite will face to the left, move a few steps, and change costume when the left arrow key is pressed. If you've done it right, it should look like the dog is walking when you press the left arrow key repeatedly.
24+
_In your window, the dog should look like it is walking when you press the left arrow key repeatedly._
2325

24-
4. Add code so that the dog can walk to the right as well.
26+
1.4) Enhance your script to look as though the dog can walk to the right with you click the `right arrow` key.
2527

26-
## Part 2 - Here be Dragons
28+
## Part 2: Here be Dragons
2729

28-
1. Create a new sprite. Following the same steps as in part 1.1, import the costumes "dragon1-a" and "dragon1-b".
30+
1.1) Create a new sprite. Following the same steps as in part 1.1, import the costumes `dragon1-a` and `dragon1-b`.
2931

30-
2. Write a script to make the sprite appear to breathe fire when the 'f' key is pressed. The sprite should switch to the "fire-breathing" costume for a few seconds, then switch back to the "normal" costume.
32+
1.2) Write a script to make the sprite appear to breathe fire when the `f` key is pressed. The sprite should switch to the `fire-breathing` costume for a few seconds, then switch back to the original costume.
3133

32-
3. Modify your code so that the dragon "attacks" the mouse pointer when the 'f' key is pressed. When the 'f' key is pressed, the dragon should take the following actions in order:
34+
1.3) Modify your script so that the dragon `attacks` the mouse pointer when the `f` key is pressed. When the `f` key is pressed, the dragon should take the following actions in order:
3335

34-
* Make sure it is in the "normal" costume
35-
* Point at the mouse pointer
36-
* Glide to the mouse pointer's position
37-
* Change to the "fire-breathing" costume
38-
* Pause to breathe fire
39-
* Change back to the "normal" costume
36+
1. Make sure it is in the "normal" costume
37+
2. Point at the mouse pointer
38+
3. Glide to the mouse pointer's position
39+
4. Change to the "fire-breathing" costume
40+
5. Pause to breathe fire
41+
6. Change back to the "normal" costume
4042

41-
## Part 3 - Run Away
43+
## Part 3: Run Away
4244

4345
3.1) Add another sprite to your program. (This sprite can have any costume you choose).
4446

45-
3.2) Write a script to make this new sprite point away from the dragon and move when the 'r' key is pressed. (You'll need more than one block to do this.).
47+
3.2) Write a script to make this new sprite point away from the dragon and move when the `r` key is pressed.
4648

47-
3.3) Modify your code so that instead of moving when the 'r' key is pressed, the new sprite moves when the dragon "attacks." The "fleeing" sprite should move when the dragon starts breathing fire.
49+
3.3) Modify your script so that instead of moving when the `r` key is pressed, the new sprite moves when the dragon `attacks.` The `fleeing` sprite should move when the dragon starts breathing fire.
4850

4951
3.4) Add a second sprite that runs away from the dragon as well.
5052

5153
## Grading Scheme/Rubric
5254

53-
| **Lab 1.4 Criteria** | Points |
54-
| ------------------------------------------------- | -------------- |
55-
| 2.2 Dragon breathes fire | 0.25 points |
56-
| 2.3 Dragon attacks mouse pointer correctly | 0.75 points |
57-
| 3.2 A sprite runs away from dragon | 0.25 points |
58-
| 3.3 Sprite runs away when dragon breathes fire | 0.5 points |
59-
| 3.4 Another sprite runs away too | 0.25 points |
60-
| **PROJECT TOTAL** | **2.0 points** |
55+
| **Lab 1.4 Criteria** | Points |
56+
| :------------------ | :--- |
57+
| 2.2 Dragon breathes fire | 0.25 |
58+
| 2.3 Dragon attacks mouse pointer correctly | 0.75 |
59+
| 3.2 A sprite runs away from dragon | 0.25 |
60+
| 3.3 Sprite runs away when dragon breathes fire | 0.5 |
61+
| 3.4 Another sprite runs away too | 0.25 |
62+
| **PROJECT TOTAL** | **2.0 points** |
6163

6264
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>

docs/lesson_14.docx

23.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)