WMICraft/models/knight.py

14 lines
406 B
Python
Raw Permalink Normal View History

2022-03-11 19:42:17 +01:00
import pygame.image
class Knight(pygame.sprite.Sprite):
def __init__(self, img):
super().__init__()
self.images = []
self.image = pygame.image.load("./resources/textures/knight.png")
self.image = pygame.transform.scale(self.image, (40, 40))
self.images.append(self.image)
self.rect = self.image.get_rect()
knights_list = pygame.sprite.Group()