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

fix frozen animation reset #20693

Merged
merged 2 commits into from Feb 17, 2018
Merged

fix frozen animation reset #20693

merged 2 commits into from Feb 17, 2018

Conversation

nkiruka
Copy link
Contributor

@nkiruka nkiruka commented Feb 16, 2018

This PR fixes the Frozen animation reset between runs.

Prior to fix, turtleFrame cycles through total number of frames before resetting to initial starting frame. Fix comprised of the following:

  • Add new resetTurtleFrame function to visualization class
  • Call resetTurtleFrame function in artist reset function (reset to initial state)

Copy link
Contributor

@joshlory joshlory left a comment

Choose a reason for hiding this comment

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

Nice find!

@@ -1078,6 +1082,9 @@ Artist.prototype.reset = function (ignore) {
this.level.startDirection : DEFAULT_DIRECTION;
this.visualization.penDownValue = true;
this.visualization.avatar.visible = true;
// reset turtle frame
// this.visualization.turtleFrame_ = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra comment?

@@ -1129,6 +1136,7 @@ Artist.prototype.reset = function (ignore) {
this.studioApp_.stopLoopingAudio('start');

this.resetStepInfo_();

Copy link
Contributor

Choose a reason for hiding this comment

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

Tiny nit: extra line in the diff.

Copy link
Contributor

@caleybrock caleybrock left a comment

Choose a reason for hiding this comment

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

nice work finding the fix for this!

@nkiruka nkiruka merged commit 78259ff into staging Feb 17, 2018
@nkiruka nkiruka deleted the frozen-animation branch February 17, 2018 03:06
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.

None yet

3 participants