clear pygame screen

Solutions on MaxInterview for clear pygame screen by the best coders in the world

showing results for - "clear pygame screen"
Johanna
02 Apr 2017
1ball = pygame.Rect(0,0,10,10)
2while True:
3    mainSurface.fill((0,0,0))
4    pygame.draw.circle(display,(255,255,255),ball.center,5)
5    ball.move_ip(1,1)
6    pygame.display.update()
7