-
-
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
Move things, break loops #316
Conversation
Note: I know this code is all pygame-specific, but the way I figure, separating it out like this should make it easier to bundle it up into |
Ok, I think this is ready to go as soon as #306 merges. |
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.
Only one file I'd suggest a real change to, otherwise, this looks good.
import ppb.events as events | ||
import ppb.keycodes as keys | ||
from ppb.systems.base import System | ||
from ppb.systems.renderer import DEFAULT_RESOLUTION |
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.
Not blocking this, but we should probably move shared defaults to their own file somewhere.
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.
Possibly? If we had more than one?
I grouped it like this because resolution felt like a renderer concern, and the renderer is responsible for window management currently?
@pathunstrom can you take a second pass on this? |
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.
LGTM
bors r+
316: Move things, break loops r=pathunstrom a=astronouth7303 Grab a u-haul! 🚚 Generally moving things and reducing imports to improve the import loop situation * Break up "the machinery implementing a thing" and "a pile of things that use the thing" * Prefer module imports to individual imports, so any unavoidable loops don't wreck everything. Depends on #306 because I didn't feel like dealing with the merge conflict. No docs changes because this doesn't touch anything publicly documented. Co-authored-by: Jamie Bliss <jamie@ivyleav.es>
Timed out |
bors retry |
316: Move things, break loops r=pathunstrom a=astronouth7303 Grab a u-haul! 🚚 Generally moving things and reducing imports to improve the import loop situation * Break up "the machinery implementing a thing" and "a pile of things that use the thing" * Prefer module imports to individual imports, so any unavoidable loops don't wreck everything. Depends on #306 because I didn't feel like dealing with the merge conflict. No docs changes because this doesn't touch anything publicly documented. Co-authored-by: Jamie Bliss <jamie@ivyleav.es>
Timed out |
bors retry |
316: Move things, break loops r=pathunstrom a=astronouth7303 Grab a u-haul! 🚚 Generally moving things and reducing imports to improve the import loop situation * Break up "the machinery implementing a thing" and "a pile of things that use the thing" * Prefer module imports to individual imports, so any unavoidable loops don't wreck everything. Depends on #306 because I didn't feel like dealing with the merge conflict. No docs changes because this doesn't touch anything publicly documented. Co-authored-by: Jamie Bliss <jamie@ivyleav.es>
Timed out |
bors retry |
316: Move things, break loops r=pathunstrom a=astronouth7303 Grab a u-haul! 🚚 Generally moving things and reducing imports to improve the import loop situation * Break up "the machinery implementing a thing" and "a pile of things that use the thing" * Prefer module imports to individual imports, so any unavoidable loops don't wreck everything. Depends on #306 because I didn't feel like dealing with the merge conflict. No docs changes because this doesn't touch anything publicly documented. Co-authored-by: Jamie Bliss <jamie@ivyleav.es>
Timed out |
bors retry |
316: Move things, break loops r=pathunstrom a=astronouth7303 Grab a u-haul! 🚚 Generally moving things and reducing imports to improve the import loop situation * Break up "the machinery implementing a thing" and "a pile of things that use the thing" * Prefer module imports to individual imports, so any unavoidable loops don't wreck everything. Depends on #306 because I didn't feel like dealing with the merge conflict. No docs changes because this doesn't touch anything publicly documented. Co-authored-by: Jamie Bliss <jamie@ivyleav.es>
Build succeeded
|
Grab a u-haul! 🚚
Generally moving things and reducing imports to improve the import loop situation
Depends on #306 because I didn't feel like dealing with the merge conflict.
No docs changes because this doesn't touch anything publicly documented.