干得好。它将图像变为0,0。另一个问题是您的pyimage似乎不是由png支持构建的
import pygamefrom pygame.locals import*img = pygame.image.load('clouds.bmp')white = (255, 64, 64)w = 640h = 480screen = pygame.display.set_mode((w, h))screen.fill((white))running = 1while running: screen.fill((white)) screen.blit(img,(0,0)) pygame.display.flip()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)