Skip to content

util pygame #197

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

util pygame #197

wants to merge 1 commit into from

Conversation

JaskRendix
Copy link
Contributor

@JaskRendix JaskRendix commented Feb 28, 2025

The pull request:

  • adds type hints throughout, uses f-strings and the correct type hinting for callables
  • makes colorkey handling more robust by checking for valid colorkey types and providing more informative error messages. It also improves the logic for deciding when to use RLEACCEL.
  • uses a more Pythonic and safer way to find tilesets and layers by name and adds better error checking for tileset types
  • optimizes the simplify function
  • adds a check to ensure tiles are square before attempting a diagonal flip to avoid errors
  • more consistent with the error messages.
  • adds unit tests (successfully before and after)

@JaskRendix JaskRendix force-pushed the util-pygame branch 2 times, most recently from ca41603 to 40117e6 Compare February 28, 2025 15:37
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.

1 participant