pygame-ce
pygame-ce copied to clipboard
🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
@rethanon was playing around with `_sdl2.video` and tried combining sprites and gpu rendering. Things went wrong, this is my attempt to add some basic intercompat between the two because it's...
Also improves error messaging when something goes wrong in `Group.draw`
This speeds up Rect.collideobjects and Rect.collideobjectsall. See https://docs.python.org/3/c-api/call.html#c.PyObject_Vectorcall This function is new in Python 3.9, but we get support for it on lower versions automatically using the recently vendored pythoncapi-compat...
Note: either this and #3000 will get merged separately, or if I merge this pull onto that one - depending if that pull request gets merged before I finish this...
Currently this code would fail at runtime ```py import pygame class MySprite(pygame.sprite.Sprite): ... my_group: pygame.sprite.Group[MySprite] = pygame.sprite.Group() ``` with ``` Traceback (most recent call last): File "C:\Users\Matiiss\PycharmProjects\Something\for_so.py", line 8, in...
pygame-ce 2.5.0 (SDL 2.30.3, Python 3.12.0) **Current behavior:** When using FRects there are instances when clipline does not return the correct line clip **Expected behavior:** Clipline to clip using floats...
This one of the few SDL Windows features we don't have ported in pygame.Window. https://wiki.libsdl.org/SDL2/SDL_FlashWindow (seems to be unchanged in SDL3) This seems a fun and relatively straightforward addition. API...
Hello, as part of #3005 plan, this PR *moves* ``pygame.gfxdraw.bezier`` to ``pygame.draw.bezier``.
**Environment:** pygame.print_debug_info() ``` pygame-ce 2.5.0 (SDL 2.30.3, Python 3.12.4) Platform: Windows-11-10.0.22631-SP0 System: Windows System Version: 10.0.22631 Processor: Intel64 Family 6 Model 167 Stepping 1, GenuineIntel Architecture: Bits: 64bit Linkage: WindowsPE...