-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Flip Y Axis #237
Flip Y Axis #237
Conversation
It was assuming that Vector.rotate() did an in-place mutation, which is not the case.
* Add facing setter * Remove redundant .rotate() definition
Co-Authored-By: astronouth7303 <jamie@ivyleav.es>
…pybear into immutable-vectors
Co-Authored-By: astronouth7303 <jamie@ivyleav.es>
Oh, this depends on #204. |
ppb/camera.py
Outdated
def translate_to_viewport(self, point:Vector) -> Vector: | ||
def translate_to_viewport(self, point: Vector) -> Vector: | ||
""" | ||
Converts a vector from in-game to PyGame coordinate space |
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.
This is more about screen space, not pygame specific (We'll have a similar pixel array context no matter which rendering library we use.)
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.
Umm... You don't have too? Taking to discord.
bors r+ |
237: Flip Y Axis r=pathunstrom a=astronouth7303 Per some discussions on discord, flip the Y axis so that PPB's concept of space & coordinates match those of traditional geometry & algebra. I think I'm going to write a full blog post explaining this. Co-authored-by: Jamie Bliss <jamie@ivyleav.es> Co-authored-by: Nicolas Braud-Santoni <nicolas@braud-santoni.eu>
Build succeeded
|
Per some discussions on discord, flip the Y axis so that PPB's concept of space & coordinates match those of traditional geometry & algebra.
I think I'm going to write a full blog post explaining this.