forked from s464965/WMICraft
14 lines
406 B
Python
14 lines
406 B
Python
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()
|