Skip to content

Generalize hazard failure#4805

Merged
islemaster merged 3 commits into
stagingfrom
generalize-hazard-failure
Oct 25, 2015
Merged

Generalize hazard failure#4805
islemaster merged 3 commits into
stagingfrom
generalize-hazard-failure

Conversation

@islemaster

Copy link
Copy Markdown
Contributor

We still have a concept of a "hazard" item but instead of triggering failure directly it does so through the new progressConditions system.

@breville

Copy link
Copy Markdown
Member

lgtm!

islemaster added a commit that referenced this pull request Oct 25, 2015
@islemaster islemaster merged commit 93399e3 into staging Oct 25, 2015
@islemaster islemaster deleted the generalize-hazard-failure branch October 25, 2015 18:57
deploy-code-org added a commit that referenced this pull request Oct 25, 2015
93399e3 Merge pull request #4805 from code-dot-org/generalize-hazard-failure (Brad Buchanan)
dbadfe7 Remove unnecessary quotes (Brad Buchanan)
4cc6cb3 Fix level reference in blockly hoc2015 level 3 (Brad Buchanan)
fc1ec2d Hazards use progressConditions to fail level. (Brad Buchanan)
Comment thread apps/src/studio/studio.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be good to use a name that is not specific to the interpreter, since we need this to impact both blockly/non-interpreter and droplet/interpreter modes. I think it probably already works for the blockly case, but the name is a little misleading.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There's an off-by-one error in the blockly case that I'm not sure how to
solve yet, where this failure is detected the command after the one that
moves you into the hazard's grid square. I suspect it's only working in
droplet-land because of that extra tick between steps.

On Mon, Oct 26, 2015 at 6:21 PM, Chris Pirich notifications@github.com
wrote:

In apps/src/studio/studio.js
#4805 (comment)
:

@@ -801,7 +801,7 @@ Studio.onTick = function() {

Studio.clearDebugElements();

  • var animationOnlyFrame = Studio.midExecutionFailure ||
  • var animationOnlyFrame = Studio.pauseInterpreter ||

Would be good to use a name that is not specific to the interpreter, since
we need this to impact both blockly/non-interpreter and droplet/interpreter
modes. I think it probably already works for the blockly case, but the
name is a little misleading.


Reply to this email directly or view it on GitHub
https://github.com/code-dot-org/code-dot-org/pull/4805/files#r43075472.

Brad Buchanan
Software Engineer, Code.org
brad@code.org

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.

3 participants