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

[Spritelab] New Blocks #37242

Merged
merged 5 commits into from Oct 14, 2020
Merged

[Spritelab] New Blocks #37242

merged 5 commits into from Oct 14, 2020

Conversation

ajpal
Copy link
Contributor

@ajpal ajpal commented Oct 14, 2020

  • Remove sin/cos blocks, which were added in [Spritelab] sin/cos blocks for prototyping #36885, because turns out those are blockly default blocks so we don't need to re-implement them

  • withPercentChance
    image
    image

  • ifVarEquals
    This is the first levelbuilder-defined block with a variable dropdown, so I also had to add a case for that (see block_utils change)
    image
    image

  • isCostumeEqual
    image
    Oct-14-2020 13-58-26

withPercentChance and ifVarEquals are implemented in the interpreter, not natively. I added comments to the interpreted library as well, but basically, they are functions with callbacks, but we want them to act like regular if statements. That is, we want the callback to finish executing before the function returns, which would not be the case if the function is implemented natively and has a callback into the interpreter.

See sprite lab block requests

@ajpal ajpal requested a review from a team October 14, 2020 20:52
@ajpal ajpal merged commit 3b0eaa5 into staging Oct 14, 2020
@ajpal ajpal deleted the oct13-spritelab-blocks branch October 14, 2020 23:58
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

2 participants