📜  清除 pygame 屏幕 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:51.151000             🧑  作者: Mango

代码示例1
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()