Answers for "pygame starter code"

0

pygame starter code

import pygame
pygame.init()

screen = pygame.display.set_mode([500, 500])


running = True
while running:


    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

  
    screen.fill((255, 255, 255))

    pygame.draw.circle(screen, (0, 0, 255), (250, 250), 75)

    pygame.display.flip()

pygame.quit()
Posted by: Guest on August-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language