Professional Documents
Culture Documents
Home
Home
pygame.init()
startpics = [pygame.image.load("start1.png"),
pygame.image.load("start2.png")]
while run:
for event in pygame.event.get(): # перебирание событий
if event.type == pygame.QUIT: # выход
run = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
run = False
if event.key == pygame.K_SPACE and pictures:
disp.blit(startpics[1])
pictures = False
disp.blit(startpics[0])
pygame.quit()