I want to make a game with cards, something like Heartstone, but a lot simplier (coz I am not pro programmer). This is just part of program
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))
Now the problem is that it prints that type of Picture is class 'pygame.Surface' but I want for this picture to be sprite. How to do that. Tnx.