forked from s464965/WMICraft
18 lines
588 B
Python
18 lines
588 B
Python
import pygame.image
|
|
|
|
|
|
class Monster(pygame.sprite.Sprite):
|
|
|
|
def __init__(self, screen, img):
|
|
super().__init__()
|
|
self.images = []
|
|
self.image = pygame.image.load("./resources/textures/dragon.png")
|
|
self.image = pygame.transform.scale(self.image, (40, 40))
|
|
self.images.append(self.image)
|
|
self.rect = self.image.get_rect()
|
|
monster_list = pygame.sprite.Group()
|
|
x = 337 + 41 * 5
|
|
y = 214 + 41 * 7
|
|
pygame.draw.rect(screen, (255, 255, 255), pygame.Rect(x, y, 40, 40), 0, 0)
|
|
screen.blit(self.image, (x, y))
|