Skip to content
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

Merged
merged 20 commits into from
May 5, 2019
Merged

Flip Y Axis #237

merged 20 commits into from
May 5, 2019

Conversation

AstraLuma
Copy link
Member

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.

@AstraLuma AstraLuma requested a review from a team as a code owner April 23, 2019 21:12
@AstraLuma
Copy link
Member Author

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
Copy link
Collaborator

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.)

Copy link
Member Author

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.

@pathunstrom
Copy link
Collaborator

bors r+

bors bot added a commit that referenced this pull request May 5, 2019
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>
@bors
Copy link
Contributor

bors bot commented May 5, 2019

Build succeeded

  • docs
  • Linux container:python:3.6-slim
  • Linux container:python:3.7-slim
  • macOS PYTHON:3.6.8
  • macOS PYTHON:3.7.2
  • Windows container:python:3.6-windowsservercore-1809
  • Windows container:python:3.7-windowsservercore-1809

@bors bors bot merged commit 3fc825b into ppb:master May 5, 2019
@AstraLuma AstraLuma mentioned this pull request May 6, 2019
@AstraLuma AstraLuma deleted the flip-axis branch May 19, 2019 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants