You are on page 1of 1

import pygame

pygame.init()

disp = pygame.display.set_mode((800, 600))


pygame.display.set_caption("The Pointless game")
run = True
pictures = True

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()

You might also like