WMICraft/models/castle.py

11 lines
369 B
Python
Raw Normal View History

2022-03-24 16:32:14 +01:00
import pygame.image
class Castle(pygame.sprite.Sprite):
2022-04-10 20:28:50 +02:00
def __init__(self, position, group):
super().__init__(group)
self.image = pygame.image.load("./resources/textures/castle.png").convert_alpha()
2022-03-24 16:32:14 +01:00
self.image = pygame.transform.scale(self.image, (78, 78))
2022-04-10 20:28:50 +02:00
self.rect = self.image.get_rect(center=position)
2022-03-24 16:32:14 +01:00
self.health = 80