import pygame.image class Castle(pygame.sprite.Sprite): images = [] def __init__(self): super().__init__() self.image = pygame.image.load("./resources/textures/castle.png") self.image = pygame.transform.scale(self.image, (78, 78)) self.images.append(self.image) self.rect = self.image.get_rect() castle_list = pygame.sprite.Group() self.health = 80