-
Notifications
You must be signed in to change notification settings - Fork 228
Conversation
I feel that the example is too long, could we reduce the components in the example objects? with sprite and pos should be enough |
Removed some components and text
So I updated and shortened some of the unneeded components. This brought up an interesting question to me " Why does it feel too long?", and I think that is because it is near the other examples that are short and don't need much explanation ( like move(), onClick(), fixed() etc.). I think the solution to this would be to only show the current example, or clicked on component from the sidebar, on its own page, so A) the explanation can be as long as needed. B) The user isn't seeing everything all at once ( doom scroll ). Here are some examples of what I mean: I know there are other issues that should be taken care of first, but maybe this can be considered for v4000-v5000. |
After removing scale, one of the sprites pos needed to be adjusted to overlap other sprite in demonstration. Also, area() is needed as well, because without area(), kaboom will throw an error "purpleBean is not a function" when using "purpleBean.onClick()". Not sure if this is a bug or intended like that, but might explain one of the reasons why people get errors often.
Does the code need to be adjusted any further, or is it good to go? |
src/types.ts
Outdated
* sprite("bean"), | ||
* pos(200,140), | ||
* color(255, 255, 255), | ||
* area(), |
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.
There's an extra indentation?
Is looking good for me, only that little thing |
Remove the extra indents
Indents should be removed now with recent commit |
Thank you for your contribution to documentation! 😇 |
Saw there was some confusion on how to use readd(), so I added some examples in jsDoc.