-
Notifications
You must be signed in to change notification settings - Fork 492
Add clipToWorldBounds and converters between: frame, world, view and game #3419
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
Conversation
rodney528
left a comment
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.
The only thing I have to say is... does overload really need to be used that much?
Is there a disadvantage to it? |
|
Idk much about overload besides being able to use the same function name multiple times. Just feels like too many versions of the same function. |
Why is it "too many"? What is the downside of more vs less? |
Just feels weird to me ig. |
Well, let me know when you find a reason, or if you have a suggestion |
Closes #2301 and #2898
FlxCamera: AddsworldToViewPosition,viewToWorldPosition,gameToViewPosition,viewToGamePositionas well as x and y specific methods for eachFlxObject: AddsgetViewPosition,getViewXandgetViewYFlxSprite:clipRect:clipToWorldRect,clipToViewRect,clipToWorldBoundsandclipToViewBoundsworldToFramePosition, worldToFramePositionSimple andviewToFramePositionFlxFrame: AddsgetPixelAtandtoSourcePositionFlxRect: Adds theabsmethodIFlxPooledandFlxDestroyUtil: AddsputWeakmethodsTo Do