Skip to content

2.5.2

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 27 Oct 17:11
7a7dea3

โ˜€๏ธ๐ŸŽƒ๐Ÿ‘ป๐Ÿ•ธ๏ธ๐Ÿ•ท๏ธ๐Ÿง›๐ŸงŸโ€โ™‚๏ธ๐Ÿง™โ€โ™€๏ธ๐Ÿง™โ€โ™‚๏ธ๐Ÿ•ฏ๏ธ๐Ÿชฆ๐Ÿฌ๐Ÿญ๐Ÿซโ˜ ๏ธโšฐ๏ธ๐Ÿ”ฎ๐Ÿงน๐ŸŒ•๐Ÿˆโ€โฌ›๐Ÿฆ‡๐ŸŒŒ
pip uninstall pygame (if previously installed, to avoid package conflicts)
pip install pygame-ce --upgrade
โ˜€๏ธ๐ŸŽƒ๐Ÿ‘ป๐Ÿ•ธ๏ธ๐Ÿ•ท๏ธ๐Ÿง›๐ŸงŸโ€โ™‚๏ธ๐Ÿง™โ€โ™€๏ธ๐Ÿง™โ€โ™‚๏ธ๐Ÿ•ฏ๏ธ๐Ÿชฆ๐Ÿฌ๐Ÿญ๐Ÿซโ˜ ๏ธโšฐ๏ธ๐Ÿ”ฎ๐Ÿงน๐ŸŒ•๐Ÿˆโ€โฌ›๐Ÿฆ‡๐ŸŒŒ

We're pumped to drop another pygame-ce release, thanks to the awesome efforts of 30+ contributors in this release! In the last couple of months, we've together made 286 commits, updated 281 files, and merged 85 pull requests.

Now, let's dive into what's new!

New and improved API

Bugfixes

  • @Starbuck5 fixed an OpenGL issue in Window init in #3059

  • @oddbookworm fixed a break when the OS resizes the window in set_mode in #2992

  • @bilhox fixed segfault with antialiased draw functions with a depth different than 32bits in #3008

  • @pmp-p did some fixes for improved wasm support in #3137 and #3163

  • @MyreMylar fixed midi timer reset when quit in #3018

  • @mzivic7

    • Fixed aalines overlap issue in #2912
    • Fixed missing pixels in aalines when using integer coordinates in #3144
  • @ankith26

    • Fixed (F)Rect.scale_by(_ip) handling of the scale_by parameter in #3078
    • Updated FRect repr to handle larger values in #3077
    • Fixed pygame-ce editable install on windows in #3117

General Enhancements

  • @oddbookworm improved Vector{2,3}.__delattr__ messaging when deleting x, y, {z} and removed Vector4 zombies in #3069, and @ankith26 applied some more related updates in #3087
  • @bilhox made it so that too many arguments to Color.from_{colorspace} style methods now raise errors in #3125
  • @damusss added handling for all color types in transform.threshold in #3156

Performance Enhancements

  • @Starbuck5 updated more places in rect code to use PyObject_Vectorcall in #3048. The affected methods therefore see 15-22% improvements in speed.

  • @itzpr3d4t0r

    • Optimized Rect.clipline() in #3067. The performance is up by upto 50% in some of our test cases.
    • Optimized tuple creation for Rect getters in #3072

Docs and Type Hints

  • New contributor @MrValdez added example on how Window behaves with WINDOWCLOSE and QUIT events in #3115

  • New contributor @datapythonista clarified how Rect and positions relate in the intro tutorial in #3111

  • New contributor @hisa10 added a Japanese README in #3114

  • @oddbookworm fixed a couple of versionadded tags that should have been versionaddedold in display docs in #3046

  • @itzpr3d4t0r improved geometry docs in #3043

  • @Starbuck5 fixed transform.average_color docs and stubs to match implementation in #3076

  • @yunline updated the dependency section of zh-cn README in #3119

  • @zoldalma999 fix stubcheck typing error on windows in #3147

  • @bilhox

    • Made it so that some experimental API is not hidden in the docs anymore in #3068
    • Polished and reviewed french readme + note of when it was last reviewed in #3142
  • @damusss

    • Enhanced pygame.mouse.get_pressed docs in #3084
    • Made copy methods explicit for linting in #3129
    • Added Italian README in #3120
    • Improved color notation in the docs in #3165

Examples and Unit Tests

Code Quality and General Maintenance

New Contributors

Thanks all

A huge thank you to everyone who's been part of this journey! This goes beyond code contributors; we are grateful to the whole community - issue reporters, PR reviewers, tutorial creators, folks helping out on different platforms, developers of supporting libraries, and most importantly, all our users (yes, that also includes you, who is reading this!).

If you notice any mistakes in these notes, please let us know so we can fix them up.

Take care, and happy pygaming!

Full Changelog: 2.5.1...2.5.2