dodanie życia agenta + damage mobów
This commit is contained in:
parent
c5f00fc058
commit
f82c22c14b
1
agent.py
1
agent.py
@ -29,6 +29,7 @@ class Agent(pygame.sprite.Sprite):
|
|||||||
self.rect.y = self.y
|
self.rect.y = self.y
|
||||||
|
|
||||||
self.level = 1
|
self.level = 1
|
||||||
|
self.health = 100*self.level
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.movement()
|
self.movement()
|
||||||
|
@ -26,3 +26,4 @@ class Archer_ork(pygame.sprite.Sprite):
|
|||||||
self.rect.y = self.y
|
self.rect.y = self.y
|
||||||
|
|
||||||
self.level = 1
|
self.level = 1
|
||||||
|
self.damage = 50*self.level
|
@ -26,3 +26,4 @@ class Infantry_ork(pygame.sprite.Sprite):
|
|||||||
self.rect.y = self.y
|
self.rect.y = self.y
|
||||||
|
|
||||||
self.level = 2
|
self.level = 2
|
||||||
|
self.damage = 50*self.level
|
@ -26,3 +26,4 @@ class Infantry_ork2(pygame.sprite.Sprite):
|
|||||||
self.rect.y = self.y
|
self.rect.y = self.y
|
||||||
|
|
||||||
self.level = 3
|
self.level = 3
|
||||||
|
self.damage = 50*self.level
|
Loading…
Reference in New Issue
Block a user