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

Conversation

jpfasano
Copy link

Wording for assignment is changed to match the expected solution. See discussion
[https://github.com//discussions/344#discussioncomment-4118030].

the provided solution.  See discussion
TEALSK12#344
students. This in part includes instructions
on creating and setting a speed variable.
@@ -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.

Comment on lines +13 to +21
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.
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants