slayer_in_the_shadows.sprites.player#

The player

Module Contents#

Classes#

Player

The main player The player sprite is 32x26

class slayer_in_the_shadows.sprites.player.Player(bottom, left, health: int, speed: int, game)[source]#

Bases: slayer_in_the_shadows.sprites.character.Character

The main player The player sprite is 32x26

setup_player()[source]#

Setup the player

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

Update the animation

use_dash()[source]#

Uses a dash Doesn’t implement it, just adjusts player values

slow_time()[source]#

Slows time Doesn’t implement it, just adjusts player values

update()[source]#

Updates player

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

Time related cooldowns like attack and invulnerability

take_damage(damage: int)[source]#

Handles damage taking