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
530 stars 190 forks source link

Position window on screen #263

Closed was-dtech closed 2 years ago

was-dtech commented 2 years ago

I can make the window fullscreen. Is there a way to position the window on the screen? As the window always starts with the top left corner in the middle of the screen. Thank you for any help.

ntoll commented 2 years ago

This is a question we get a LOT via Mu related support channels. A sensible default of centre of the screen might be a helpful way to go with this..? In any case @was-dtech - you could probably configure the position of your game something like this: https://www.pygame.org/wiki/SettingWindowPosition (i.e. by dropping down to the underlying PyGame layer).

lordmauve commented 2 years ago

This was fixed in bf48fc964b5168d8e1e101a32adc2ac6cb685c69, pending release

ntoll commented 2 years ago

Perfect. Thanks @lordmauve - always one step ahead of the rest of us. ;-)

was-dtech commented 2 years ago

Thank you @lordmauve - my students will certainly appreciate the update 👍