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

3254 sprite group support source rect #3256

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

JovialKnoll
Copy link
Contributor

This is my first stab at the changes I described in #3254

If it would be better to not move the source_rect into Sprite I'd be happy to take that out and just check for source_rect in the draw functions with something like getattr(spr, 'source_rect', None).

I'm sure there might be some tests or something that I've missed but I thought it would be better to get a go-ahead on this before I do more.

@Starbuck5 Starbuck5 added New API This pull request may need extra debate as it adds a new class or function to pygame sprite pygame.sprite labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New API This pull request may need extra debate as it adds a new class or function to pygame sprite pygame.sprite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants