lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
527 stars 191 forks source link

how to center window #285

Closed ghost closed 2 years ago

ghost commented 2 years ago

I saw my pygame zero window is not centered on my screen. Is there a way to center it in the screen and what code to use for this?

lordmauve commented 2 years ago

The window should be appearing in the centre. The fact it does not was fixed in https://github.com/lordmauve/pgzero/commit/bf48fc964b5168d8e1e101a32adc2ac6cb685c69, which has not yet been released.