Pygame window not responding after a few seconds

后端 未结 3 2148
小蘑菇
小蘑菇 2020-11-22 09:35

This simple piece of code crashes (the window is not responding) after a few seconds (around 5).

import pygame
from pygame.locals import *

pygame.init()
sc         


        
3条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 10:11

    Call pygame.event.get() at the beginning of the while loop.

提交回复
热议问题