Pygame

Latest version: v2.5.2

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

Scan your dependencies

Page 8 of 10

2.0.0.dev4

🎮👾👽🎮👾👽🎮👾👽🎮👾👽🎮👾
G'day! It's 2.0.0.dev4 time!
🎮👾👽🎮👾👽🎮👾👽🎮👾👽🎮👾


> `python3 -m pip install pygame==2.0.0.dev4 --pre --user`


What goodies do we have in store?

Firstly, some SDL2 compatibility issues were fixed. Like the window initially defaults to black, and the `unicode` field of keydown events is filled. Thanks to dlon.

Speaking of SDL2, we are now shipping [SDL 2.0.10](https://discourse.libsdl.org/t/sdl-2-0-10-released/26429) which includes stuff like batching renderer and lots of bug fixes, including to the Metal renderer on Mac, lots of other stuff. Thanks to all the libSDL people.

Many, many fixes thanks to charlesej and some static analysis tools.

Some new contributors deserve thanks 🎉 🎈 including
thiagojobson flaambe mampersat s0lst1ce

robertpfeiffer and dlon fixed some issues with the fancy SCALED feature, and robertpfeiffer got the toggle_fullscreen function working more reliably too!

And speaking of helping out, robertpfeiffer also helped out nhpackard with an optimization to transform.scale. When scaling to twice the width and height, a special optimized routine by nhpackard is used.

Lots of fixes and tests happened to the draw, and mask modules mostly thanks to charlesej (but also to thiagojobson)

Lots of infrastructure changes happened to our build system to make things easier for
developers. Firstly we started using LGTM which runs some lint tools on our code for us.
Secondly we started using lots of other testing tools. Thanks to Travis CI we have a
Power PC CPU robot building things. takluyver made a PR for the new manylinux2010 which
we sadly haven't started using yet. As usual a tiny bit more of the release process has been automated.

An article for developers on [contemporary C tools](http://renesd.blogspot.com/2019/09/post-modern-c-tooling.html) is still unfinished(but probably useful for developers of pygame). Here's some issues of those tools applied to pygame: https://github.com/pygame/pygame/labels/tooling

Again charlesej in particular has been amazing in going through mountains of issues uncovered.
The pygame code base is significantly cleaner, more portable, and less buggy because of it.

Indic Scripts including Hindi, Telugu, Tamil are closer to being rendered now thanks to the
work of new contributor peanutbutterandcrackers tracking down things and writing
some automated tests for it. This work is ready to be developed further and is moving forward! Thanks!

Thanks for all the people trying out the pygame 2.0.0.dev3 builds and (submitting issues) or patches including: larryhastings humanbeast7 Pololot64 mcpalmer1980
husano896 galexandreg mgedmin cgohlke cipri-tom noisnemid DudmasterUltra
agdt3 crowjdh JOHNIDnDNIW lordmauve dheerajakula

Speaking of bugs, as people have been using the 2.0.0.dev3 release, they've been finding various bugs. All SDL2/pygame 2 related compatibility issues reported by people are marked as `critical`.
https://github.com/pygame/pygame/labels/critical

These "[critical](https://github.com/pygame/pygame/labels/critical)" issues will be a focus as we move forward to shipping pygame 2.0.0.
If you feel like helping out with any of these "[critical](https://github.com/pygame/pygame/labels/critical)" issues, that would be highly appreciated.

- confirm the bug (on your platform).
- cheer people on in the issues
- write a minimal working example script so people can reproduce the issue.
- write a test case, or try and clarify the issue

https://github.com/pygame/pygame/labels/critical

- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed)
- [713 Commits since 1.9.6 stable release](https://github.com/pygame/pygame/compare/1.9.6...2.0.0.dev4)
- [299 Commits since 2.0.0.dev3 pre release](https://github.com/pygame/pygame/compare/2.0.0.dev3...2.0.0.dev4)


---

ps. DaFluffyPotato released a new commercial game using the pygame 2.0.0.dev3 release.
"Drawn Down Abyss" is getting good reviews... check it out:
https://www.pygame.org/project/4294
pps. Feels like progress? Happy hacking!

2.0.0.dev3

There are binaries for Mac, Windows, and Linux with SDL2.
> python3 -m pip install pygame==2.0.0.dev3 --pre --user

So... what's new? Here's a few things.

The documentation has been made more readable on big screens and small ones. It is also updating from github again. charlesej in particular has made a lot of documentation fixes. See https://www.pygame.org/docs/

It's easier to make custom types that will work with multiple GUI libraries.
python
FIRST = pygame.event.custom_type()

(No more USEREVENT+1 nonsense) Also with pygame 2.0.0.dev3 you can have 8192 custom events instead of 32.

Thanks to charlesoblack (first time contributor ya!) there is a pygame.Color.lerp() function now. It returns a linear interpolation.

python
>>> color.lerp(color2, 0.0) -> color
>>> color.lerp(color2, 0.5) -> halfway_color
>>> color.lerp(color2, 1.0) -> color2


dlon added support for some Modern OpenGL features. For more detail see: https://github.com/pygame/pygame/pull/1127

Now you can do one-shot timers like this: `pygame.time.set_timer(EVENT, 1000, 1)`

Thanks to bennuttall and the piwheels project, pygame has binary wheels for the raspberian linux. See https://www.piwheels.org/project/pygame/

The sound mixer has moved into the modern age and now defaults to a small low latency buffer size of 512 bytes, and uses CD quality audio by default.


Check these lists out for more detailed info on what's changed:
- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed)
- [414 Commits since 1.9.6 stable release](https://github.com/pygame/pygame/compare/1.9.6...2.0.0.dev3)
- [74 Commits since 2.0.0.dev2 pre release](https://github.com/pygame/pygame/compare/2.0.0.dev2...2.0.0.dev3)

2.0.0.dev2

There are binaries for Mac, Windows, and Linux with SDL2.

You can try it out with a command something like this:
`python3 -m pip install pygame==2.0.0.dev2 --pre --user`

Also, SDL2 is the default now when you compile from source. You can use `python setup.py install -sdl1` to compile against SDL 1.2.

Apart from lots and __LOTS__ of work on the Color, Mask, and pygame.draw stuff, there are a few more experimental things. Like the sprite module compiled with Cython into C code. Additionally there is the new SCALED mode, for automagically scaling your low resolution game into a viewable sized window (a 320x200 window is tiny on a 4k screen... so this makes it bigger and scales everything for you).

Check these lists out for more detailed info on what's changed:
- [merged PRs](https://github.com/pygame/pygame/pulls?q=is%3Apr+is%3Aclosed)
- [341 Commits since 1.9.6](https://github.com/pygame/pygame/compare/1.9.6...master)

2.0.0.dev1

This pre-release development build has some windows and mac binaries uploaded which use SDL2.

(plus a whole lot of other improvements over 1.9.5)

1.9.6

Not secure
Whilst we focus like a shark-lazer on pygame 2, here is a bonus pygame 1.9.6 with a couple of small regression bug fixes.

- mp3 via smpeg was missing in manylinux builds.
- mixer thread deadlock issue when controlling it from different threads.
- pygame.version.vernum now has major, minor, and patch attributes.

1.9.6.rc1

If anyone is able to test, that'd be wonderful... especially on linux.

`python3 -m pip install pygame==1.9.6.rc1 --user --pre`

- mp3 via smpeg was missing in manylinux builds.
- mixer thread deadlock issue when controlling it from different threads.

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.