我想用卡片制作游戏,比如 Heartstone,但要简单得多(因为我不是专业程序员)。这只是程序的一部分
import pygame
class Card:
def AdCard(self, AdCard):
self.AdCard = AdCard
def HpCard(self, HpCard):
self.HpCard = HpCard
def Picture(self, Picture):
self.Picture = Picture
def Special(self, Special):
if Special == "Heal":
pass
pygame.init()
display = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
swordsman = Card()
swordsman_picture = pygame.image.load("Swordsman.png").convert()
swordsman.Picture(swordsman_picture)
print(type(swordsman.Picture))
现在的问题是它打印的图片类型是类'pygame.Surface',但我希望这张图片是精灵。怎么做。肿瘤坏死因子。