How to draw a transparent image in pygame?

后端 未结 3 889
长情又很酷
长情又很酷 2021-01-06 03:38

Consider a chess board, i have a transparent image of queen(queen.png) of size 70x70 and i want to display it over a black rectangle. Code:

BLACK=(0,0,0)
que         


        
3条回答
  •  借酒劲吻你
    2021-01-06 04:03

    Try changing the line where you load in the queen to:

    queen = pygame.image.load('queen.png').convert_alpha()
    

提交回复
热议问题