leopard-js / sb-edit

Javascript library for manipulating Scratch project files
MIT License
54 stars 15 forks source link

toLeopard: Serialize initial rotation style #118

Closed towerofnix closed 1 year ago

towerofnix commented 1 year ago

This PR makes toLeopard represent the initial rotation style (which is already represented in IR and loaded by fromSb3).

Implementation notes:

Tested with this project: https://scratch.mit.edu/projects/877138925/

And a "boring" project that makes sure the "set rotation style" blocks are still working.

Requested both @PullJosh and @adroitwhiz for review but an OK would be fine from either of you, this isn't a big pull request and improves Scratch compatibility for Leopard in a user-visible way!