slayer_in_the_shadows.sprites.character#

Character class from

Module Contents#

Classes#

Character

Base enemy class from which the various enemy types are made

class slayer_in_the_shadows.sprites.character.Character(bottom, left, sprite: str | None, health: int, speed: int, attacks: list[slayer_in_the_shadows.sprites.attacks.AttackSpec], game, hit_box_alg: str | None = None, character_scaling=constants.CHARACTER_SCALING)[source]#

Bases: arcade.Sprite

Base enemy class from which the various enemy types are made

update()[source]#

Health bar

on_update(delta_time: float = 1 / 60)[source]#

Time related cooldowns like attack and invulnerability