我不明白如何在python中使用.convert和pygame.surface

时间:2019-02-11 23:55:49

标签: python pygame

我正在使用.convert上传图像。我在轻视它时遇到了麻烦。这是我的代码:

import pygame
import time
pygame.font.init()

pygame.init()
clock = pygame.time.Clock()

win = pygame.display.set_mode((500, 480))
start_button = [pygame.image.load('start#1.png').convert, pygame.image.load('click_start#1.png').convert] #find out more about .convert and delete when done
win.blit(start_button[1], 50,125)

我想知道是否仍然可以使用win.blit。如果不能,请告诉我可以做什么

0 个答案:

没有答案