Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screen.fill not filling defined window fully #308

Open
willfrantz15 opened this issue Dec 22, 2022 · 1 comment
Open

screen.fill not filling defined window fully #308

willfrantz15 opened this issue Dec 22, 2022 · 1 comment

Comments

@willfrantz15
Copy link

Sorry I am new to pygame zero and not sure where to get help with my issue. Anyway, after setting a window of WIDTH 800 and HEIGHT 600 as per many online pygame zero tutorials when I use the screen.fill() method in the draw function to fill that window with colour it only fills about 800 X 480 and the remainder of 800 X 600 remains black. I am using Mu Editor but the same happened with IDLE editor. Is this an aspect ratio or screen scale issue? I am using the recommended settings on both a Windows 10 and Windows 11 laptop and get the same result. Sorry if this is the wrong forum. Any help much appreciated. Thanks!
Pygame_screenfill

@michaelrtm
Copy link

Hey! I know this is a bit of a necropost, but this is explained in the docs

Pygame Zero attempts to work out when the game screen needs to be redrawn to avoid redrawing if nothing has changed.
On each step of the game loop it will draw the screen in the following situations:

If you have defined an update() function (see below).
If a clock event fires.
If an input event has been triggered.
One way this can catch you out is if you attempt to

I had the same problem early on. Just create an update function and return True or pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants