I am creating my first PyGame program.When I run my program a window should PyGame window should open but whenever I run the program a not-responding window is opened.
Here is my code:
import pygame
pygame.init()
screen = pygame.display.set_mode((500,500))
Whenever I run it a not-responding PyGame window opens. How do I fix it?
I have searched the net for solutions but none of them have worked.
Also:
When I add pygame.event.get() it opens the window and instantly closes it.
I am using Python 3.9.9 on Visual Studio Code in MacOS