pip install pygame python import pygame python pygame.init() python width = 800 height = 600 window = pygame.display.set_mode((width, height)) python pygame.display.set_caption("My Game") python running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False pygame.quit()


上一篇:
下一篇:
切换中文