This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Wording for assignment is changed to match#435
Open
jpfasano wants to merge 2 commits intoTEALSK12:masterfrom
Open
Wording for assignment is changed to match#435jpfasano wants to merge 2 commits intoTEALSK12:masterfrom
jpfasano wants to merge 2 commits intoTEALSK12:masterfrom
Conversation
the provided solution. See discussion TEALSK12#344
students. This in part includes instructions on creating and setting a speed variable.
jinglebiscuits
suggested changes
May 22, 2024
| * 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. |
Contributor
There was a problem hiding this comment.
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. |
Contributor
There was a problem hiding this comment.
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wording for assignment is changed to match the expected solution. See discussion
[https://github.com//discussions/344#discussioncomment-4118030].