Answers for "clear function pygame"

3

clear pygame screen

ball = pygame.Rect(0,0,10,10)
while True:
    mainSurface.fill((0,0,0))
    pygame.draw.circle(display,(255,255,255),ball.center,5)
    ball.move_ip(1,1)
    pygame.display.update()
Posted by: Guest on January-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language