Release version guard test PR - #27
Closed
Natuworkguy wants to merge 25 commits into
Closed
Conversation
…tion for .absp files
Add Text.center(pos) to reposition text so it's centered on a given point, offsetting by half the rendered width/height and refreshing the text surface to keep text_rect in sync.
Move the centering math into Entity.center() so all entities get it, and have Text.center() delegate via super() before rebuilding its text surface. Removes the duplicated positioning logic.
Font.render only accepts keyword arguments on pygame-ce, not upstream pygame, causing a TypeError on systems with vanilla pygame installed. Switch to positional arguments, which are valid on both variants. Note that upstream pygame compatibility is not a requirement. The engine targets pygame-ce. This change is a low-cost portability improvement, not a supported configuration. (See #6)
…views if version not bumped
Contributor
There was a problem hiding this comment.
@Natuworkguy This release PR does not bump engine/version.py (still 0.2.5). Update __version__ before merging.
Contributor
There was a problem hiding this comment.
@Natuworkguy This release PR does not bump engine/version.py (still 0.2.5). Update __version__ before merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.