-
Notifications
You must be signed in to change notification settings - Fork 135
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
base: master
Are you sure you want to change the base?
Conversation
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. |
There was a problem hiding this comment.
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.
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. |
There was a problem hiding this comment.
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?
Wording for assignment is changed to match the expected solution. See discussion
[https://github.com//discussions/344#discussioncomment-4118030].