Pygame Erasing Images on Backgrounds

后端 未结 3 890
北荒
北荒 2021-01-14 08:52

You blit an image onto your surface to use as your background. Then you press button X to blit an image on the same surface, how do you erase the image? I have this so far,

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 09:14

    I personally use

    pygame.draw.rect(screen, (RgbColorHere), (x, y, width, height))
    

提交回复
热议问题