Update Game_V2.py
parent
a493b07760
commit
cb9ed69a60
|
@ -61,6 +61,7 @@ class Player(pygame.sprite.Sprite):
|
||||||
def get_health(self, amnount):
|
def get_health(self, amnount):
|
||||||
if self.target_health < self.maximum_health:
|
if self.target_health < self.maximum_health:
|
||||||
self.target_health += amnount
|
self.target_health += amnount
|
||||||
|
pygame.mixer.Sound("Sounds/health_plus.mp3")
|
||||||
if self.target_health >= self.maximum_health:
|
if self.target_health >= self.maximum_health:
|
||||||
self.target_health = self.maximum_health
|
self.target_health = self.maximum_health
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue