Skip to content

Add reset functionality to examples #487

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

Merged
merged 9 commits into from
Jun 2, 2022
Merged

Add reset functionality to examples #487

merged 9 commits into from
Jun 2, 2022

Conversation

AshirRashid
Copy link
Contributor

@AshirRashid AshirRashid commented Apr 8, 2022

Please check if the PR fulfills these requirements:

  • The commit message follows our guidelines.
  • For bug fixes and features:
    • I tested the changes.
    • I did not update the docs or changelog. The related issue was not in a milestone for a specific version. I need more information regarding how it should be added to these documents.

Related issue:
#445

Does this PR introduce a breaking change?
I do not expect it to and I wasn't able to find any breaks during testing.

Notes specific to lessons

Lesson 5 - Turtle Examples

There is a difference between the start position and the reset position of the turtle e.g. in the first example:

Start Position:

E__Obsidian_Ashir_Pasted image 20220408232441

Reset Position:

E__Obsidian_Ashir_Pasted image 20220408232554
I argue that the start position should be replaced by the reset position because when the code is run, the actual animation starts after "shifting" the turtle to the reset position. While there are very little chances of this "shifting" being confused with an actual command, it does look awkward especially in places where the difference between the reset position and the start position is small but noticeable(e.g. turtle square example with the size set to 40).

Lesson 15

No resetting functionality has been added for
E__Obsidian_Ashir_Pasted image 20220407230240

and

E__Obsidian_Ashir_Pasted image 20220407230250

Lesson 21

No resetting functionality has been added for the following example since it does not modify the state of the example in any way
E__Obsidian_Ashir_Pasted image 20220407230548

Lesson 24 - Inventory Examples

No resetting functionality has been added for any inventory example since they do not modify the state of the example in any way e.g.
E__Obsidian_Ashir_Pasted image 20220407230947

…scn) caused issues when the tween was run again

To Replicate the Bug: Navigate in Lesson 5 to the example in which the
turtle draws a square of variable(set by a "Size" slider) length. Click
the button labelled "draw_square()". While the animation is running,
change the "Size" slider to a new number and click the button labelled "Reset". Click the
"draw_square()" button again and let the animation complete. You should
be able to spot the bug in the form of the turtle making unexpected and
unwanted movements.
@NathanLovato
Copy link
Contributor

Thanks much for the contribution. Please excuse the time it took to review this but I've been working seven days a week until two days ago to finish our latest course in time. I unfortunately didn´t have much time for other projects

@NathanLovato NathanLovato merged commit aabe641 into GDQuest:main Jun 2, 2022
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