-
Notifications
You must be signed in to change notification settings - Fork 28
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 lints and typechecking errors #207
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good except for the one question, and we opened #208 to follow this up with CI.
|
||
protected _costumeNumber: number; | ||
protected _layerOrder: number; | ||
public _layerOrder: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way we could avoid making this underscore-public? I guess you just added a similar TODO above for _project
, but it sounds like we should also avoid it for _layerOrder
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a TODO for removing _layerOrder
entirely--we should just store sprites in-order as Scratch does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we file that as an issue too LOL. Otherwise, again, awesome. Thanks!
Most of these seem to be from the "if on edge, bounce" PR.
In the future, we should consider setting up some CI for pull requests that lints and typechecks them automatically.