slayer_in_the_shadows.sprites.bars#

Character class from

Module Contents#

Classes#

HealthBar

Health bar

ChargeBar

Attack charge bar

class slayer_in_the_shadows.sprites.bars.HealthBar(character, width: int = 50, height: int = 10, border: int = 3, offset: int = 10)[source]#

Health bar

update_health()[source]#

Updates fill of health.

update()[source]#

Updates health bar position and health. (May impact performance)

class slayer_in_the_shadows.sprites.bars.ChargeBar(character, width: int = 10, height: int = 40, offset: int = 10)[source]#

Attack charge bar

update_charge()[source]#

Updates charge progress

update()[source]#

Updates charge bar