Skip to content

Commit

Permalink
Merge pull request #43742 from code-dot-org/nov21-shrinking-guard
Browse files Browse the repository at this point in the history
[Poetry] Don't let scale go past 0
  • Loading branch information
Madelyn Kasula committed Nov 22, 2021
2 parents b3c8179 + db34a93 commit 1674384
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/src/p5lab/poetry/commands/behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export const commands = {
return;
}
sprite.setScale(sprite.getScale() - 1 / 100);
if (sprite.scale < 0) {
sprite.scale = 0;
}
},

spinning_left(spriteArg) {
Expand Down

0 comments on commit 1674384

Please sign in to comment.