Pygame

Latest version: v2.5.2

Safety actively analyzes 631215 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 10

2.1.1.dev4

Not secure
Full release notes will come in the full release.


What's Changed
* Fix pygame.version.SDL and pygame.version.vernum by MightyJosip in https://github.com/pygame/pygame/pull/2938
* SDL 2.0.18, skip some focus related tests by illume in https://github.com/pygame/pygame/pull/2939
* 2.1.1.dev2 by illume in https://github.com/pygame/pygame/pull/2942
* Reform colors across the examples by maxsteep in https://github.com/pygame/pygame/pull/2901
* fix GIL release in transform module by ankith26 in https://github.com/pygame/pygame/pull/2904
* Working gamma test on windows by MyreMylar in https://github.com/pygame/pygame/pull/2906
* Addressing set error inconsistencies in certain src_c/{base.c, rect.c} functions by anmallie in https://github.com/pygame/pygame/pull/2934
* Writing fixes, corrected audio device mistake by Starbuck5 in https://github.com/pygame/pygame/pull/2925
* freetype: Fix intermittent crash with test_font_file_not_found by illume in https://github.com/pygame/pygame/pull/2944

New Contributors
* maxsteep made their first contribution in https://github.com/pygame/pygame/pull/2901
* anmallie made their first contribution in https://github.com/pygame/pygame/pull/2934

**Full Changelog**: https://github.com/pygame/pygame/compare/2.1.0...2.1.1.dev4

2.1.1.dev2

Not secure
Full release notes will come in the full release.


What's Changed
* 2.1.0 and 2.1.0.dev2 by illume in https://github.com/pygame/pygame/pull/2825
* Minor Grammar Mistake by novialriptide in https://github.com/pygame/pygame/pull/2835
* Release GIL on SDL_Quit, fix deadlock by ankith26 in https://github.com/pygame/pygame/pull/2816
* neon optimisations default on arm64 by ankith26 in https://github.com/pygame/pygame/pull/2818
* Create a setup.py lint function by Pierre-Sassoulas in https://github.com/pygame/pygame/pull/2285
* remove old SDL1 and PY2 tests by bydariogamer in https://github.com/pygame/pygame/pull/2833
* The formatting all the C and Python code PR by illume in https://github.com/pygame/pygame/pull/2842
* Deprecate fastevent, compat shim based on event by ankith26 in https://github.com/pygame/pygame/pull/2843
* add sysfont path for macos by mingzhang96 in https://github.com/pygame/pygame/pull/2849
* remove pygame.compat and black tests and src_py by bydariogamer in https://github.com/pygame/pygame/pull/2845
* correct a spelling mistake by Radiicall in https://github.com/pygame/pygame/pull/2864
* Miscellaneous fixes by Starbuck5 in https://github.com/pygame/pygame/pull/2841
* Prepare math.enable/disable_swizzling for removal by zoldalma999 in https://github.com/pygame/pygame/pull/2856
* colordict.py is missing a few CSS standard colors 2850 by GustavoQuintero99 in https://github.com/pygame/pygame/pull/2865
* Fix some typehints, clean stubs by ankith26 in https://github.com/pygame/pygame/pull/2882
* Continue on Sdl compose custom blend mode by illume in https://github.com/pygame/pygame/pull/2790
* Add docs to the CI-generated wheels by Starbuck5 in https://github.com/pygame/pygame/pull/2826
* Fix weird MacOS display surf weirdness by Starbuck5 in https://github.com/pygame/pygame/pull/2859
* Added .copy() to Vector2 and Vector3 by novialriptide in https://github.com/pygame/pygame/pull/2894
* workaround for average_color due to bug in ppc gcc , update test+types by ankith26 in https://github.com/pygame/pygame/pull/2876
* Fix drawing of big ellipses by MightyJosip in https://github.com/pygame/pygame/pull/2880
* py2 code cleanups + doc updates by ankith26 in https://github.com/pygame/pygame/pull/2844
* Add \_\_contains\_\_ method to the Rect class by michaelasp in https://github.com/pygame/pygame/pull/2897
* Renamed some Vector methods to keep consistency by novialriptide in https://github.com/pygame/pygame/pull/2863
* Changed AbstractGroup.draw() to return List[Rect] by novialriptide in https://github.com/pygame/pygame/pull/2896
* Improve MacOS icon by Starbuck5 in https://github.com/pygame/pygame/pull/2858
* fix filenotfound errors on pathlib loading by ankith26 in https://github.com/pygame/pygame/pull/2840
* Fix misnamed class aliasing in init file by ankith26 in https://github.com/pygame/pygame/pull/2870
* add missing typehints to Vector2 and Vector3 by bydariogamer in https://github.com/pygame/pygame/pull/2908
* Fix for paused music and get_pos() by JoshuaShequin in https://github.com/pygame/pygame/pull/2899
* Fix docs building without config by Grimmys in https://github.com/pygame/pygame/pull/2907
* C cleanups to remove more old compat code by ankith26 in https://github.com/pygame/pygame/pull/2854
* Pylinting, format and lint check with setup.py lint by illume in https://github.com/pygame/pygame/pull/2857
* Cython code modernizations by Starbuck5 in https://github.com/pygame/pygame/pull/2920
* Fix some "it's" -> "its" in the docs by AvaxarXapaxa in https://github.com/pygame/pygame/pull/2923
* Renamed pygame.sprite.LayeredDirty.set_timing_treshold to pygame.sprite.LayeredDirty.set_timing_threshold by CAPTAIN1947 in https://github.com/pygame/pygame/pull/2921
* Recorrected typehint for AbstractGroup by novialriptide in https://github.com/pygame/pygame/pull/2930
* Fix rect drawing with width by MightyJosip in https://github.com/pygame/pygame/pull/2927
* Freetype FileNotFound by Starbuck5 in https://github.com/pygame/pygame/pull/2922

New Contributors
* novialriptide made their first contribution in https://github.com/pygame/pygame/pull/2835
* mingzhang96 made their first contribution in https://github.com/pygame/pygame/pull/2849
* Radiicall made their first contribution in https://github.com/pygame/pygame/pull/2864
* GustavoQuintero99 made their first contribution in https://github.com/pygame/pygame/pull/2865
* michaelasp made their first contribution in https://github.com/pygame/pygame/pull/2897
* JoshuaShequin made their first contribution in https://github.com/pygame/pygame/pull/2899
* CAPTAIN1947 made their first contribution in https://github.com/pygame/pygame/pull/2921

**Full Changelog**: https://github.com/pygame/pygame/compare/2.1.0...2.1.1.dev2

2.1.0

Not secure
This is a pretty minimal release in terms of user facing features.
If you're happy with 2.0.3, you probably can stick with that one.

You can probably ignore this release

- 7688 lines of source code were removed (more to come)
- There's no binary wheels for python2.7, or python3.5
- pygame no longer compiles from source with SDL1
- pygame 2.0.3 is there for python 2 users

What's changed

There were lots of internal changes removing old code related to backwards compatibility with SDL1, and python2.

* Officially drop python2 (and 3.5) and SDL1 support by Starbuck5 in https://github.com/pygame/pygame/pull/2817
* Remove most PY2/PY3 C compatibility code by Starbuck5 in https://github.com/pygame/pygame/pull/2819
* Simple fix to swap numpy.float type out in favour of float by MyreMylar in https://github.com/pygame/pygame/pull/2815
* Remove most SDL1/SDL2 compatibility c code by Starbuck5 in https://github.com/pygame/pygame/pull/2823
* Ubuntu 18/20 SDL2 sdist CI, mac CI pp36 drop by ankith26 in https://github.com/pygame/pygame/pull/2821
* SDL1 buildconfig removal by robertpfeiffer and illume in https://github.com/pygame/pygame/pull/2824


**Full Changelog**: https://github.com/pygame/pygame/compare/2.0.3...2.1.0

2.1.0.dev2

Not secure
This is a quick pre-release, which mainly contains python 2 and SDL 1 removal.

Please kick the wheels? Changes are very minimal over 2.0.3, except for python2 and SDL1 removal.

2.0.14

libsdl is a library pygame is built on. It had a new release after almost 9 months of development. The [2.0.14 release notes](https://discourse.libsdl.org/t/sdl-2-0-14-released/28470) detail things a little bit. More than 9 months worth of effort is a bit much to explain.

There's been a number of bugs fixed we reported in the pygame 2 series. One of which was pygame.display.update() updating the whole screen on windows. So, now 'dirty rect drawing' is faster again on windows. From the list you'll notice a lot of work went into joystick and game controller improvements. Including support for more than 4 xbox controllers at once on windows. But linux, android, mac, and even freebsd got joystick improvements. On linux the Kernel Mode Setting (KMSDRM) video driver was improved a lot. For retro computing fans, the OS2 port got a lot of love. Lots of portability things were improved, like fixing compilation for M1 CPUs, improving the build system. Raspberry Pi support has been improved, as have most video drivers for other platforms.



Xbox One port

Victor Lopez started on an Xbox one port, and has had some success.

> I can confirm Xbox One is able to run the aliens sample with joystick support, audio and sprites, it needs, however, heavy testing.

These are the relevant repositories:
- https://github.com/greentwip/cpython
- https://github.com/greentwip/pygame



pathlib support for image, sound, and font loading.

pathlib is an object oriented way of doing path handling in python 3 (there's also a backport to python2). Before pygame didn't handle these objects in resource loading functions for image and sound loading. Now it does pathlib!

python
path = pathlib.Path('.') / "data" / "house_lo.wav"
sound1 = mixer.Sound(path)


Thanks to ankith26 in 2366 and René Dudfield (illume) in 2387 .


Cursor object API

Starbuck5 worked on a new Cursor object in https://github.com/pygame/pygame/pull/2331

Now you can add system cursors, and color cursors out of surfaces along with the other ones you could draw with ascii art.

python
box = pygame.cursors.Cursor((10,10), pygame.Surface((20,20)))
pg.mouse.set_cursor(box)

pg.mouse.set_cursor(pg.SYSTEM_CURSOR_NO)
pg.mouse.get_cursor()
>>> <Cursor(type: system, constant: SYSTEM_CURSOR_NO)>


Starbuck5
- added a link to patreon on github in 2362
- Improved the README.rst by clarifying, restructuring and improving links. 2396
- Cleaned up 'import pygame._view' in packager_imports by removing it. 2384
- Docs build fixes + home for the Korean tutorial 2420


Starbuck5 added a deprecation warning for mouse.set_system_cursor() 2397 after a long discussion and research with a number of us on if we [should have deprecation warnings anyway?](https://github.com/pygame/pygame/issues/2197).

pygame.draw.rect fixes.

Another project Starbuck5 worked on was fixing some draw.rect issues in PR 2406 found by gummbum and dr0id

This script by dr0id made it much easier to spot the problems.
![2359-ex3](https://user-images.githubusercontent.com/46412508/102708240-5e33b600-4256-11eb-802e-b99182b682bd.PNG)



galexandreg worked on text_input documentation improvements on by default, needed for pygame.TEXTINPUT https://github.com/pygame/pygame/pull/2333

robertpfeiffer made a few fixes to issues with android support. Added K_AC_BACK key constant, fixed data_file pruning and "STRIPPED" install 2311

Ankith ankith26 merged these ones in (whilst also looking at some difficult event posting issues, and cleaning up some image loading code).
- Unittests for event module 2283
- Delete obsolete test/util files 2303
- Documented pygame.image load_basic, load_extended, save_extended. image.c code cleanups. https://github.com/pygame/pygame/pull/2270
- Pathlib support for most pygame functions 2366
- Drop PyLong_FromUnicode, removed in python 3.10 2385
- little music doc fix 2414


mcpalmer1980 Added experimental relative mouse motion support to video.Window in 2392 They have also been using the experimental _sdl2 features quite a lot and coming up with some good improvements and discussions on that (including a new package!).


Dan Lawrence ( MyreMylar ) was on a coding rampage and made a number of improvements:

- mixer.music.get_busy() return False when the music is paused 2295
- Small improvement to the get_locks() test 2281
- Interactive test for touch.get_finger() 2279
- Removed the link to the closed Discord server from GitHub 2296 😢
- pygame.midi pass the output buffersize down to portmidi 2272
- interactive test for set_gamma_ramp() 2278
- Rejiged the alpha blitter path logic to cover issue on mac 2345
- Account for mixer.init()/pre_init() returning more channels than asked 2372
- Fix typo in image.frombuffer() type hint 2383


Many many special Thanks go to

- everyone writing up issues, answering questions, sharing your work, or moderating discussions on different forums.
- reviewers including: illume, siggisv, ankith26, robertpfeiffer, MyreMylar, Starbuck5, pmp-p, and others.
- [patreon.com/pygame](https://patreon.com/pygame) sponsors: Christopher Cacho, Daniel Lawrence, Tommi Sinivuo, Leif Theden, zoldalma, and Bob Johnson. With their help half of the first patreon goal of covering the monthly hosting costs has been covered and a number of pygame tutorials have been made.
- the people supporting pygame financially by buying the pre-release of a [pygame book](https://pygame.itch.io/pygame-book). It's a book by a long time pygame contributor where all funds go towards pygame development.


See ya!


---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2020-10-28..2020-12-24+sort%3Acreated-desc+) since we started the pygame 2.0.0.
- [189 Commits since 2.0.0 stable release](https://github.com/pygame/pygame/compare/2.0.0...2.0.1)

2.0.3

Not secure
---

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed+merged%3A2021-10-10..2021-10-31+sort%3Aupdated-desc+) since we started the pygame 2.0.3 series on the 10th of October 2021.
- [114 Commits since 2.0.2 release](https://github.com/pygame/pygame/compare/2.0.2...2.0.3)

Page 4 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.