Skip to content

3254 sprite group support source rect#3256

Closed
JovialKnoll wants to merge 7 commits intopygame-community:mainfrom
JovialKnoll:3254-sprite-group-support-source_rect
Closed

3254 sprite group support source rect#3256
JovialKnoll wants to merge 7 commits intopygame-community:mainfrom
JovialKnoll:3254-sprite-group-support-source_rect

Conversation

@JovialKnoll
Copy link
Copy Markdown
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