pygame starter code

Solutions on MaxInterview for pygame starter code by the best coders in the world

showing results for - "pygame starter code"
Renata
14 Jan 2018
1import pygame
2pygame.init()
3
4screen = pygame.display.set_mode([500, 500])
5
6
7running = True
8while running:
9
10
11    for event in pygame.event.get():
12        if event.type == pygame.QUIT:
13            running = False
14
15  
16    screen.fill((255, 255, 255))
17
18    pygame.draw.circle(screen, (0, 0, 255), (250, 250), 75)
19
20    pygame.display.flip()
21
22pygame.quit()