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

Refactors sprites.BaseSprite #357

Merged
merged 25 commits into from
Aug 28, 2019
Merged

Refactors sprites.BaseSprite #357

merged 25 commits into from
Aug 28, 2019

Conversation

pathunstrom
Copy link
Collaborator

@pathunstrom pathunstrom commented Aug 24, 2019

I was just going to handle the rename, but decided to do all of this together with an okay from @astronouth7303. Not ready for merge, going to clean up the docs around Sprites and add tests for ppb.sprites.Sprite and ppb.BaseSprite. Additionally, would like to cleave out the various bits from the mixins into their own tests.

Resolves #347
Resolves #352
Resolves #353
Resolves #354
Resolves #355

@pathunstrom pathunstrom requested a review from a team as a code owner August 24, 2019 01:58
@pathunstrom pathunstrom changed the title Renames Rotatable to RotatableMixin Refactors sprites.BaseSprite Aug 24, 2019
ppb/__init__.py Show resolved Hide resolved
ppb/sprites.py Show resolved Hide resolved
ppb/sprites.py Outdated Show resolved Hide resolved
ppb/sprites.py Outdated Show resolved Hide resolved
@@ -15,6 +15,8 @@
DEFAULT_RESOLUTION = 800, 600


# TODO: Move Image out of the renderer so sprites can type hint
# appropriately.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been type-hinting with Asset to avoid this, but yeah, we have a circular dependency problem.

Copy link
Member

@AstraLuma AstraLuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot added a commit that referenced this pull request Aug 28, 2019
357: Refactors sprites.BaseSprite r=astronouth7303 a=pathunstrom

I was just going to handle the rename, but decided to do all of this together with an okay from @astronouth7303. Not ready for merge, going to clean up the docs around Sprites and add tests for ppb.sprites.Sprite and ppb.BaseSprite. Additionally, would like to cleave out the various bits from the mixins into their own tests.

Resolves #347 
Resolves #352 
Resolves #353 
Resolves #354 
Resolves #355 


Co-authored-by: Piper Thunstrom <pathunstrom@gmail.com>
@bors
Copy link
Contributor

bors bot commented Aug 28, 2019

Build succeeded

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

@bors bors bot merged commit 6c7c449 into ppb:master Aug 28, 2019
@pathunstrom pathunstrom deleted the rotatable-rename branch April 15, 2020 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants