python game over screen

Solutions on MaxInterview for python game over screen by the best coders in the world

showing results for - "python game over screen"
Leonardo
27 Apr 2017
1def show_go_screen():
2    screen.blit(background, background_rect)
3    draw_text(screen, "SHMUP!", 64, WIDTH / 2, HEIGHT / 4)
4    draw_text(screen, "Arrow keys move, Space to fire", 22,
5              WIDTH / 2, HEIGHT / 2)
6    draw_text(screen, "Press a key to begin", 18, WIDTH / 2, HEIGHT * 3 / 4)
7    pygame.display.flip()
8    waiting = True
9    while waiting:
10        clock.tick(FPS)
11        for event in pygame.event.get():
12            if event.type == pygame.QUIT:
13                pygame.quit()
14            if event.type == pygame.KEYUP:
15                waiting = False