11 lines
369 B
Python
11 lines
369 B
Python
import pygame.image
|
|
|
|
|
|
class Castle(pygame.sprite.Sprite):
|
|
def __init__(self, position, group):
|
|
super().__init__(group)
|
|
self.image = pygame.image.load("./resources/textures/castle.png").convert_alpha()
|
|
self.image = pygame.transform.scale(self.image, (78, 78))
|
|
self.rect = self.image.get_rect(center=position)
|
|
self.health = 80
|