my display does not open in pygame by vs code

Asked

Viewed 19 times

0

i made an initial script of my game in pygame and the code is as follows:

import pygame


pygame.init()

display = pygame.display.set_mode([840, 480])

running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    pygame.display.update()

but when I run with the extension code Runner it’s like it starts but n opens the display, it only appears in the output [Done] exited with code=127 in 0.008 seconds someone knows how to fix?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.