[Python] Pygame not responding when i run it

Discussão em 'Python' iniciado por Stack, Outubro 25, 2024.

  1. Stack

    Stack Membro Participativo

    Hello first time user to the site, i am having a problem with Pygame not responding and don't know what is wrong i would be most thankful for any kind of help.

    here is the code sorry if this is not proper formating

    import pygame
    pygame.init
    screen = pygame.display.set_mode((500, 500))

    while True:
    key = pygame.key.get_pressed()
    if key[pygame.K_a] == True:
    print('works')

    Continue reading...

Compartilhe esta Página