You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDLx getter methods are also setter methods. When you call them with no arguments, you get what you asked for. When you call them with arguments, you set it... but you don't get back anything useful in most cases. In these cases, the best thing to return is $self, so you can stack more setting, like:
$sprite->x(30)->y(40)->rotation->(90)
I'll do this unless there are any problems.
The text was updated successfully, but these errors were encountered:
SDLx getter methods are also setter methods. When you call them with no arguments, you get what you asked for. When you call them with arguments, you set it... but you don't get back anything useful in most cases. In these cases, the best thing to return is $self, so you can stack more setting, like:
$sprite->x(30)->y(40)->rotation->(90)
I'll do this unless there are any problems.
The text was updated successfully, but these errors were encountered: