Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wording for assignment is changed to match #435

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion do_now_32.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
* Move Dino up 1 unit at a time when you press the **arrow up** key. You must use the **change y by** block.
* Move Dino down 1 unit at a time when you press the **arrow down** key. You must use the **change y by** block.
* Don't let Dino leave the screen.
* Don't let Dino go through the platform.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not obvious to me that this is a necessary change. I think as written, the assignment is fine.

* Don't let Dino move down through the platform.
* Don't let Dino go underground.
10 changes: 7 additions & 3 deletions lab_32.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ Go to the starter project at [https://aka.ms/Intro-lab3-2](https://aka.ms/Intro-

Write a script for the Dino sprite so that:

1. Use one **when green flag is clicked** block to place Dino at the top of the stage. No animation, just use **set y to** block.
1. Use a **when green flag is clicked** block to place Dino at the top of the stage. No animation, just use a **set y to** block.

2. Use two more **when green flag is clicked**, to start two **forever** loops that make Dino fall to the bottom of the stage. One will model gravity by subtracting a constant amount from Dino's speed. The second will move Dino by his current speed.
2. Create a variable named **speed**. Set **speed** to zero **when green flag is clicked**.

3. When Dino touches the ground, Dino stops falling. "*Stops falling*" means Dino's speed is set to zero and stays zero as long as he is touching the ground. The **touching color ?** block can be used to detect the grass in the background layer.
3. Use two more **when green flag is clicked** blocks, to start two **forever** loops to make Dino fall.
* One will model gravity by subtracting a constant amount from Dino's speed. Initially try subtracting 0.5 from speed.
* The second will move Dino in the y-direction by the current speed.

4. When Dino touches the ground, Dino stops falling. "*Stops falling*" means Dino's speed is set to zero and stays zero if Dino is touching the ground. The **touching color ?** block can be used to detect the grass in the background layer.
Comment on lines +13 to +21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change this section, it should be completely rewritten. "Write a script for the Dino sprite so that:" is not an appropriate lead into "Use a when green flag is clicked ...".
Could you propose a change that makes this whole section clearer?


When using the **touching color** block, change the color by clicking on the color box, then select anything in the color palette or stage that has the desired color.

Expand Down