WMICraft/models/castle.py

16 lines
417 B
Python
Raw Normal View History

2022-03-24 16:32:14 +01:00
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