dodanie życia agenta + damage mobów

This commit is contained in:
Weranda 2023-03-31 10:56:43 +02:00
parent c5f00fc058
commit f82c22c14b
5 changed files with 10 additions and 5 deletions

View File

@ -29,6 +29,7 @@ class Agent(pygame.sprite.Sprite):
self.rect.y = self.y
self.level = 1
self.health = 100*self.level
def update(self):
self.movement()

View File

@ -26,3 +26,4 @@ class Archer_ork(pygame.sprite.Sprite):
self.rect.y = self.y
self.level = 1
self.damage = 50*self.level

View File

@ -26,3 +26,4 @@ class Infantry_ork(pygame.sprite.Sprite):
self.rect.y = self.y
self.level = 2
self.damage = 50*self.level

View File

@ -26,3 +26,4 @@ class Infantry_ork2(pygame.sprite.Sprite):
self.rect.y = self.y
self.level = 3
self.damage = 50*self.level

View File

@ -26,3 +26,4 @@ class Sauron(pygame.sprite.Sprite):
self.rect.y = self.y
self.level = 4
self.damage = 50*self.level