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
[Enhancement] Crafty.attr({}) function? #1205
Comments
Having a separate method for setting x/y/w/h in one swoop would be reasonable, but I think (There's already an internal method called |
Huh, i did not know that. I see your point as the general setter, is it possible to "compact" it? |
Also, quick question. Where are the docs for the |
To be honest, using the
.attr
property(?) is sorta annoying to use. Why not have it a function? It only takes up to 4 integers, so I think using it as.attr(x, y, w, h)
would be much easier to use. Example:And then calling any additional properties as:
Would this work, or no?
The text was updated successfully, but these errors were encountered: