Skip to content Skip to sidebar Skip to footer

Pygame Window Not Showing In Macosx

I've been using pygame inside a conda environment. The installation went well, but whenever I call flip, it doesn't open any window from the terminal. Here's the code that's suppos

Solution 1:

(This answer is not directed to the original question but to anyone who might have the same problem)

In the game loop you have to process/check events so that pygame knows your game hasn't crashed:

screen = pygame.display.set_mode((1000, 500))

while True:
    foreventin pygame.event.get():
        # process events# Update your sprites

    pygame.display.update()

Post a Comment for "Pygame Window Not Showing In Macosx"